diff --git a/.fern/replay.lock b/.fern/replay.lock
deleted file mode 100644
index 20eb6775..00000000
--- a/.fern/replay.lock
+++ /dev/null
@@ -1,10 +0,0 @@
-# DO NOT EDIT MANUALLY - Managed by Fern Replay
-version: "1.0"
-generations:
- - commit_sha: 23865bb996fac07fb520d04361b78c4f2e0dc25f
- tree_hash: 4112cf01c9a321bab1cd8a35c3ea89b992b8a99a
- timestamp: 2026-06-08T16:58:56.630Z
- cli_version: unknown
- generator_versions: {}
-current_generation: 23865bb996fac07fb520d04361b78c4f2e0dc25f
-patches: []
diff --git a/.fernignore b/.fernignore
index 5a4699af..27fee6f8 100644
--- a/.fernignore
+++ b/.fernignore
@@ -21,7 +21,4 @@ tests/custom/test_datetime_filters.py
tests/custom/test_error_response_handling.py
tests/custom/test_query_encoder_edges.py
tests/custom/test_enum_forward_compat_response.py
-tests/custom/test_enum_forward_compat_query.py
-.fern/replay.lock
-.fern/replay.yml
-.gitattributes
+tests/custom/test_enum_forward_compat_query.py
\ No newline at end of file
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 74928d6a..00000000
--- a/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-.fern/replay.lock linguist-generated=true
diff --git a/README.md b/README.md
index cc6b143c..54d94648 100644
--- a/README.md
+++ b/README.md
@@ -257,4 +257,3 @@ while response.next is not None:
-
diff --git a/pyproject.toml b/pyproject.toml
index fb4dc9ff..6cfdd25e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ name = "MergePythonClient"
[tool.poetry]
name = "MergePythonClient"
-version = "3.1.0"
+version = "3.0.1"
description = ""
readme = "README.md"
authors = []
diff --git a/reference.md b/reference.md
index b8cacd4f..d46addad 100644
--- a/reference.md
+++ b/reference.md
@@ -6505,85 +6505,6 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
-
-
-
-
-client.ats.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.ats.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
@@ -21304,7 +21225,8 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-client.accounting.linked_accounts.partial_update(...)
+## Accounting Passthrough
+client.accounting.passthrough.create(...)
-
@@ -21316,7 +21238,7 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `knowledgebase`, `mk
-
-Update a linked account.
+Pull data from an endpoint not currently supported by Merge.
@@ -21332,13 +21254,17 @@ Update a linked account.
```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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
+client.accounting.passthrough.create(
+ request=DataPassthroughRequest(
+ method=MethodEnum.GET,
+ path="/scooters",
+ ),
)
```
@@ -21355,7 +21281,7 @@ client.accounting.linked_accounts.partial_update(
-
-**linked_account_id:** `str`
+**request:** `DataPassthroughRequest`
@@ -21363,7 +21289,107 @@ client.accounting.linked_accounts.partial_update(
-
-**ekm_enabled:** `typing.Optional[bool]`
+**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. The maximum limit is 100.
@@ -21383,8 +21409,7 @@ client.accounting.linked_accounts.partial_update(
-## Accounting Passthrough
-client.accounting.passthrough.create(...)
+client.accounting.payment_methods.retrieve(...)
-
@@ -21396,7 +21421,7 @@ client.accounting.linked_accounts.partial_update(
-
-Pull data from an endpoint not currently supported by Merge.
+Returns a `PaymentMethod` object with the given `id`.
@@ -21412,17 +21437,15 @@ Pull data from an endpoint not currently supported by Merge.
```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",
- ),
+client.accounting.payment_methods.retrieve(
+ id="id",
+ include_remote_data=True,
+ include_shell_data=True,
)
```
@@ -21439,7 +21462,23 @@ client.accounting.passthrough.create(
-
-**request:** `DataPassthroughRequest`
+**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).
@@ -21459,8 +21498,8 @@ client.accounting.passthrough.create(
-## Accounting PaymentMethods
-client.accounting.payment_methods.list(...)
+## Accounting PaymentTerms
+client.accounting.payment_terms.list(...)
-
@@ -21472,7 +21511,7 @@ client.accounting.passthrough.create(
-
-Returns a list of `PaymentMethod` objects.
+Returns a list of `PaymentTerm` objects.
@@ -21493,7 +21532,7 @@ client = Merge(
account_token="YOUR_ACCOUNT_TOKEN",
api_key="YOUR_API_KEY",
)
-client.accounting.payment_methods.list(
+client.accounting.payment_terms.list(
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
include_deleted_data=True,
include_remote_data=True,
@@ -21523,6 +21562,18 @@ client.accounting.payment_methods.list(
-
+**expand:** `typing.Optional[
+ typing.Union[
+ typing.Literal["company"], typing.Sequence[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/).
@@ -21567,7 +21618,7 @@ client.accounting.payment_methods.list(
-client.accounting.payment_methods.retrieve(...)
+client.accounting.payment_terms.retrieve(...)
-
@@ -21579,7 +21630,7 @@ client.accounting.payment_methods.list(
-
-Returns a `PaymentMethod` object with the given `id`.
+Returns a `PaymentTerm` object with the given `id`.
@@ -21600,7 +21651,7 @@ client = Merge(
account_token="YOUR_ACCOUNT_TOKEN",
api_key="YOUR_API_KEY",
)
-client.accounting.payment_methods.retrieve(
+client.accounting.payment_terms.retrieve(
id="id",
include_remote_data=True,
include_shell_data=True,
@@ -21621,227 +21672,18 @@ client.accounting.payment_methods.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.
-
-
-
-
-
-
-
-
-
-
-
-## 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.Union[
- typing.Literal["company"], typing.Sequence[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. The maximum limit is 100.
-
-
-
-
-
--
-
-**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.Union[
- typing.Literal["company"], typing.Sequence[typing.Literal["company"]]
- ]
-]` β Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
+
+
+
+
+
+-
+
+**expand:** `typing.Optional[
+ typing.Union[
+ typing.Literal["company"], typing.Sequence[typing.Literal["company"]]
+ ]
+]` β Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
@@ -34085,85 +33927,6 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
-
-
-
-
-client.crm.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.crm.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
@@ -43040,85 +42803,6 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
-
-
-
-
-client.hris.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.hris.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
@@ -50292,85 +49976,6 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
-
-
-
-
-client.ticketing.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.ticketing.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
@@ -56317,85 +55922,6 @@ client.chat.linked_accounts.list(
-
-
-
-
-client.chat.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.chat.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
@@ -60581,85 +60107,6 @@ client.email.linked_accounts.list(
-
-
-
-
-client.email.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.email.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
@@ -65891,85 +65338,6 @@ Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
-
-
-
-
-client.filestorage.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.filestorage.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
@@ -70046,85 +69414,6 @@ client.knowledgebase.linked_accounts.list(
-
-
-
-
-client.knowledgebase.linked_accounts.partial_update(...)
-
--
-
-#### π Description
-
-
--
-
-
--
-
-Update a linked account.
-
-
-
-
-
-#### π Usage
-
-
--
-
-
--
-
-```python
-from merge import Merge
-
-client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
-)
-client.knowledgebase.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
-)
-
-```
-
-
-
-
-
-#### βοΈ Parameters
-
-
--
-
-
--
-
-**linked_account_id:** `str`
-
-
-
-
-
--
-
-**ekm_enabled:** `typing.Optional[bool]`
-
-
-
-
-
--
-
-**request_options:** `typing.Optional[RequestOptions]` β Request-specific configuration.
-
-
-
-
-
-
-
diff --git a/src/merge/core/client_wrapper.py b/src/merge/core/client_wrapper.py
index fb141371..b15f414b 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/3.1.0",
+ "User-Agent": "MergePythonClient/3.0.1",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "MergePythonClient",
- "X-Fern-SDK-Version": "3.1.0",
+ "X-Fern-SDK-Version": "3.0.1",
**(self.get_custom_headers() or {}),
}
if self._account_token is not None:
diff --git a/src/merge/resources/accounting/__init__.py b/src/merge/resources/accounting/__init__.py
index 9a306948..f7dd2938 100644
--- a/src/merge/resources/accounting/__init__.py
+++ b/src/merge/resources/accounting/__init__.py
@@ -391,7 +391,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
@@ -1162,7 +1161,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountStatus": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"MetaResponse": ".types",
@@ -1914,7 +1912,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
diff --git a/src/merge/resources/accounting/resources/linked_accounts/client.py b/src/merge/resources/accounting/resources/linked_accounts/client.py
index 537be369..d178f711 100644
--- a/src/merge/resources/accounting/resources/linked_accounts/client.py
+++ b/src/merge/resources/accounting/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -154,47 +150,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.accounting.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -344,52 +299,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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
index d9b77971..e4c24854 100644
--- a/src/merge/resources/accounting/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/accounting/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -137,57 +132,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"accounting/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -308,54 +252,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"accounting/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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
index f88ed369..f4086c27 100644
--- a/src/merge/resources/accounting/types/__init__.py
+++ b/src/merge/resources/accounting/types/__init__.py
@@ -400,7 +400,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .linked_account_status import LinkedAccountStatus
from .meta_response import MetaResponse
from .method_enum import MethodEnum
@@ -1030,7 +1029,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"LinkedAccountStatus": ".linked_account_status",
"MetaResponse": ".meta_response",
"MethodEnum": ".method_enum",
@@ -1680,7 +1678,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"MetaResponse",
"MethodEnum",
diff --git a/src/merge/resources/accounting/types/account.py b/src/merge/resources/accounting/types/account.py
index 938cd441..0c2f2c68 100644
--- a/src/merge/resources/accounting/types/account.py
+++ b/src/merge/resources/accounting/types/account.py
@@ -31,11 +31,6 @@ class Account(UncheckedBaseModel):
Fetch from the `LIST Accounts` endpoint and view a company's accounts.
"""
- account_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the account.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/account_details.py b/src/merge/resources/accounting/types/account_details.py
index 4d7bb370..98923cd8 100644
--- a/src/merge/resources/accounting/types/account_details.py
+++ b/src/merge/resources/accounting/types/account_details.py
@@ -30,9 +30,6 @@ class AccountDetails(UncheckedBaseModel):
The time at which account completes the linking flow.
"""
- instance_id: typing.Optional[str] = None
- instance_display_value: 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:
diff --git a/src/merge/resources/accounting/types/account_request.py b/src/merge/resources/accounting/types/account_request.py
index 35be1e07..8c333e61 100644
--- a/src/merge/resources/accounting/types/account_request.py
+++ b/src/merge/resources/accounting/types/account_request.py
@@ -29,11 +29,6 @@ class AccountRequest(UncheckedBaseModel):
Fetch from the `LIST Accounts` endpoint and view a company's accounts.
"""
- account_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the account.
- """
-
name: typing.Optional[str] = pydantic.Field(default=None)
"""
The account's name.
diff --git a/src/merge/resources/accounting/types/accounting_period.py b/src/merge/resources/accounting/types/accounting_period.py
index 8bba15b0..eed33108 100644
--- a/src/merge/resources/accounting/types/accounting_period.py
+++ b/src/merge/resources/accounting/types/accounting_period.py
@@ -20,11 +20,6 @@ class AccountingPeriod(UncheckedBaseModel):
Common models like `Invoice` and `Transaction` will have `AccountingPeriod` objects which will denote when they occurred.
"""
- accounting_period_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the accounting period.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/bank_feed_account.py b/src/merge/resources/accounting/types/bank_feed_account.py
index 9e7c035c..be06f45e 100644
--- a/src/merge/resources/accounting/types/bank_feed_account.py
+++ b/src/merge/resources/accounting/types/bank_feed_account.py
@@ -22,11 +22,6 @@ class BankFeedAccount(UncheckedBaseModel):
Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account.
"""
- bank_feed_account_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the bank feed account.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/bank_feed_account_request.py b/src/merge/resources/accounting/types/bank_feed_account_request.py
index 3f298bcb..c87b7395 100644
--- a/src/merge/resources/accounting/types/bank_feed_account_request.py
+++ b/src/merge/resources/accounting/types/bank_feed_account_request.py
@@ -21,11 +21,6 @@ class BankFeedAccountRequest(UncheckedBaseModel):
Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account.
"""
- bank_feed_account_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the 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.
diff --git a/src/merge/resources/accounting/types/bank_feed_transaction.py b/src/merge/resources/accounting/types/bank_feed_transaction.py
index 3e55a253..aace57db 100644
--- a/src/merge/resources/accounting/types/bank_feed_transaction.py
+++ b/src/merge/resources/accounting/types/bank_feed_transaction.py
@@ -20,11 +20,6 @@ class BankFeedTransaction(UncheckedBaseModel):
Fetch from the `GET BankFeedTransaction` endpoint to view details of a transaction associated with a bank feed account.
"""
- bank_feed_transaction_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the bank feed transaction.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/company_info.py b/src/merge/resources/accounting/types/company_info.py
index fea08c22..d4ed2d01 100644
--- a/src/merge/resources/accounting/types/company_info.py
+++ b/src/merge/resources/accounting/types/company_info.py
@@ -22,11 +22,6 @@ class CompanyInfo(UncheckedBaseModel):
Fetch from the `GET CompanyInfo` endpoint and view a company's information.
"""
- company_info_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the company info.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/contact.py b/src/merge/resources/accounting/types/contact.py
index da851755..1c549242 100644
--- a/src/merge/resources/accounting/types/contact.py
+++ b/src/merge/resources/accounting/types/contact.py
@@ -26,11 +26,6 @@ class Contact(UncheckedBaseModel):
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
"""
- contact_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the contact.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/contact_request.py b/src/merge/resources/accounting/types/contact_request.py
index 979e04c7..e9daca97 100644
--- a/src/merge/resources/accounting/types/contact_request.py
+++ b/src/merge/resources/accounting/types/contact_request.py
@@ -24,11 +24,6 @@ class ContactRequest(UncheckedBaseModel):
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
"""
- contact_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the contact.
- """
-
name: typing.Optional[str] = pydantic.Field(default=None)
"""
The contact's name.
diff --git a/src/merge/resources/accounting/types/credit_note.py b/src/merge/resources/accounting/types/credit_note.py
index 6211e1f3..1b9909a1 100644
--- a/src/merge/resources/accounting/types/credit_note.py
+++ b/src/merge/resources/accounting/types/credit_note.py
@@ -30,11 +30,6 @@ class CreditNote(UncheckedBaseModel):
Fetch from the `LIST CreditNotes` endpoint and view a company's credit notes.
"""
- credit_note_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the credit note.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/employee.py b/src/merge/resources/accounting/types/employee.py
index aeab0e44..145497c2 100644
--- a/src/merge/resources/accounting/types/employee.py
+++ b/src/merge/resources/accounting/types/employee.py
@@ -23,11 +23,6 @@ class Employee(UncheckedBaseModel):
Fetch from the `LIST Employees` endpoint and view a company's employees.
"""
- employee_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the employee.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/expense_report.py b/src/merge/resources/accounting/types/expense_report.py
index 707c4104..696ff2d3 100644
--- a/src/merge/resources/accounting/types/expense_report.py
+++ b/src/merge/resources/accounting/types/expense_report.py
@@ -27,11 +27,6 @@ class ExpenseReport(UncheckedBaseModel):
Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items.
"""
- expense_report_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the expense report.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/accounting/types/expense_report_request.py b/src/merge/resources/accounting/types/expense_report_request.py
index b3a7c343..4eda8fa3 100644
--- a/src/merge/resources/accounting/types/expense_report_request.py
+++ b/src/merge/resources/accounting/types/expense_report_request.py
@@ -25,11 +25,6 @@ class ExpenseReportRequest(UncheckedBaseModel):
Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items.
"""
- expense_report_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the expense report.
- """
-
report_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
"""
The date of the expense report.
diff --git a/src/merge/resources/accounting/types/invoice.py b/src/merge/resources/accounting/types/invoice.py
index 2b060f8f..85d5dedf 100644
--- a/src/merge/resources/accounting/types/invoice.py
+++ b/src/merge/resources/accounting/types/invoice.py
@@ -40,11 +40,6 @@ class Invoice(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- invoice_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the invoice.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/item.py b/src/merge/resources/accounting/types/item.py
index d894ccd5..f42e396e 100644
--- a/src/merge/resources/accounting/types/item.py
+++ b/src/merge/resources/accounting/types/item.py
@@ -27,11 +27,6 @@ class Item(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- item_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the item.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/item_fulfillment.py b/src/merge/resources/accounting/types/item_fulfillment.py
index b61371b8..16a1c7e4 100644
--- a/src/merge/resources/accounting/types/item_fulfillment.py
+++ b/src/merge/resources/accounting/types/item_fulfillment.py
@@ -26,11 +26,6 @@ class ItemFulfillment(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- item_fulfillment_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the item fulfillment.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/journal_entry.py b/src/merge/resources/accounting/types/journal_entry.py
index 547cb158..d0c1fffe 100644
--- a/src/merge/resources/accounting/types/journal_entry.py
+++ b/src/merge/resources/accounting/types/journal_entry.py
@@ -33,11 +33,6 @@ class JournalEntry(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- journal_entry_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the journal entry.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/linked_account_patch_response.py b/src/merge/resources/accounting/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/accounting/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/patched_contact_request.py b/src/merge/resources/accounting/types/patched_contact_request.py
index 806df980..d9399b72 100644
--- a/src/merge/resources/accounting/types/patched_contact_request.py
+++ b/src/merge/resources/accounting/types/patched_contact_request.py
@@ -24,11 +24,6 @@ class PatchedContactRequest(UncheckedBaseModel):
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
"""
- contact_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the contact.
- """
-
name: typing.Optional[str] = pydantic.Field(default=None)
"""
The contact's name.
diff --git a/src/merge/resources/accounting/types/patched_payment_request.py b/src/merge/resources/accounting/types/patched_payment_request.py
index 19b730f9..4ac6bc63 100644
--- a/src/merge/resources/accounting/types/patched_payment_request.py
+++ b/src/merge/resources/accounting/types/patched_payment_request.py
@@ -28,11 +28,6 @@ class PatchedPaymentRequest(UncheckedBaseModel):
Fetch from the `GET Payment` endpoint and view an invoice's payment.
"""
- payment_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the payment.
- """
-
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
"""
The payment's transaction date.
diff --git a/src/merge/resources/accounting/types/patched_vendor_credit_request.py b/src/merge/resources/accounting/types/patched_vendor_credit_request.py
index b9ac7532..020ea6a5 100644
--- a/src/merge/resources/accounting/types/patched_vendor_credit_request.py
+++ b/src/merge/resources/accounting/types/patched_vendor_credit_request.py
@@ -367,10 +367,6 @@ class PatchedVendorCreditRequest(UncheckedBaseModel):
tracking_categories: typing.Optional[typing.List[PatchedVendorCreditRequestTrackingCategoriesItem]] = 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
- vendor_credit_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the vendor credit.
- """
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/accounting/types/payment.py b/src/merge/resources/accounting/types/payment.py
index 18e5f5fd..c005cf14 100644
--- a/src/merge/resources/accounting/types/payment.py
+++ b/src/merge/resources/accounting/types/payment.py
@@ -30,11 +30,6 @@ class Payment(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- payment_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the payment.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/payment_method.py b/src/merge/resources/accounting/types/payment_method.py
index 4a1239b0..7d4483d9 100644
--- a/src/merge/resources/accounting/types/payment_method.py
+++ b/src/merge/resources/accounting/types/payment_method.py
@@ -21,11 +21,6 @@ class PaymentMethod(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- payment_method_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the payment method.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/payment_request.py b/src/merge/resources/accounting/types/payment_request.py
index 886e0531..9896b109 100644
--- a/src/merge/resources/accounting/types/payment_request.py
+++ b/src/merge/resources/accounting/types/payment_request.py
@@ -28,11 +28,6 @@ class PaymentRequest(UncheckedBaseModel):
Fetch from the `GET Payment` endpoint and view an invoice's payment.
"""
- payment_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the payment.
- """
-
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
"""
The payment's transaction date.
diff --git a/src/merge/resources/accounting/types/payment_term.py b/src/merge/resources/accounting/types/payment_term.py
index 3ff34540..9c4209b4 100644
--- a/src/merge/resources/accounting/types/payment_term.py
+++ b/src/merge/resources/accounting/types/payment_term.py
@@ -22,11 +22,6 @@ class PaymentTerm(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- payment_term_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the payment term.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/project.py b/src/merge/resources/accounting/types/project.py
index 1bf9cab0..6cc2cbf1 100644
--- a/src/merge/resources/accounting/types/project.py
+++ b/src/merge/resources/accounting/types/project.py
@@ -23,11 +23,6 @@ class Project(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- project_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the project.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/purchase_order.py b/src/merge/resources/accounting/types/purchase_order.py
index 2b5bd281..6d0e5e07 100644
--- a/src/merge/resources/accounting/types/purchase_order.py
+++ b/src/merge/resources/accounting/types/purchase_order.py
@@ -32,11 +32,6 @@ class PurchaseOrder(UncheckedBaseModel):
"""
id: typing.Optional[str] = None
- purchase_order_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the purchase order.
- """
-
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The third-party API ID of the matching object.
diff --git a/src/merge/resources/accounting/types/sales_order.py b/src/merge/resources/accounting/types/sales_order.py
index c7df3bdb..2b4ccc27 100644
--- a/src/merge/resources/accounting/types/sales_order.py
+++ b/src/merge/resources/accounting/types/sales_order.py
@@ -371,11 +371,6 @@ class SalesOrder(UncheckedBaseModel):
The subsidiary associated with the order.
"""
- sales_order_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the sales order.
- """
-
status: typing.Optional[SalesOrderStatus] = pydantic.Field(default=None)
"""
The status of the sales order.
diff --git a/src/merge/resources/accounting/types/tracking_category.py b/src/merge/resources/accounting/types/tracking_category.py
index 19bc0364..f4d2e0ba 100644
--- a/src/merge/resources/accounting/types/tracking_category.py
+++ b/src/merge/resources/accounting/types/tracking_category.py
@@ -70,10 +70,6 @@ class TrackingCategory(UncheckedBaseModel):
"""
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
- tracking_category_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the tracking category.
- """
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/accounting/types/transaction.py b/src/merge/resources/accounting/types/transaction.py
index 6c06bac6..fe5a54b2 100644
--- a/src/merge/resources/accounting/types/transaction.py
+++ b/src/merge/resources/accounting/types/transaction.py
@@ -420,10 +420,6 @@ class Transaction(UncheckedBaseModel):
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
remote_data: typing.Optional[typing.List[RemoteData]] = None
- transaction_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the transaction.
- """
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/accounting/types/vendor_credit.py b/src/merge/resources/accounting/types/vendor_credit.py
index d40294e3..b99c8e41 100644
--- a/src/merge/resources/accounting/types/vendor_credit.py
+++ b/src/merge/resources/accounting/types/vendor_credit.py
@@ -411,10 +411,6 @@ class VendorCredit(UncheckedBaseModel):
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
remote_data: typing.Optional[typing.List[RemoteData]] = None
- vendor_credit_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the vendor credit.
- """
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/accounting/types/vendor_credit_request.py b/src/merge/resources/accounting/types/vendor_credit_request.py
index 12dad306..d8b7d4dd 100644
--- a/src/merge/resources/accounting/types/vendor_credit_request.py
+++ b/src/merge/resources/accounting/types/vendor_credit_request.py
@@ -388,10 +388,6 @@ class VendorCreditRequest(UncheckedBaseModel):
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
- vendor_credit_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the vendor credit.
- """
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/ats/__init__.py b/src/merge/resources/ats/__init__.py
index 07441545..53301946 100644
--- a/src/merge/resources/ats/__init__.py
+++ b/src/merge/resources/ats/__init__.py
@@ -125,7 +125,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
@@ -437,7 +436,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountStatus": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"MetaResponse": ".types",
@@ -746,7 +744,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
diff --git a/src/merge/resources/ats/resources/linked_accounts/client.py b/src/merge/resources/ats/resources/linked_accounts/client.py
index 91ca9c65..0e6d19ba 100644
--- a/src/merge/resources/ats/resources/linked_accounts/client.py
+++ b/src/merge/resources/ats/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -150,47 +146,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.ats.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -336,52 +291,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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
index c3728061..24f3b5ac 100644
--- a/src/merge/resources/ats/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/ats/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -133,57 +128,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"ats/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -300,54 +244,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"ats/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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
index 189607e9..bd98b22f 100644
--- a/src/merge/resources/ats/types/__init__.py
+++ b/src/merge/resources/ats/types/__init__.py
@@ -126,7 +126,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .linked_account_status import LinkedAccountStatus
from .meta_response import MetaResponse
from .method_enum import MethodEnum
@@ -352,7 +351,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"LinkedAccountStatus": ".linked_account_status",
"MetaResponse": ".meta_response",
"MethodEnum": ".method_enum",
@@ -600,7 +598,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"MetaResponse",
"MethodEnum",
diff --git a/src/merge/resources/ats/types/account_details.py b/src/merge/resources/ats/types/account_details.py
index 4d7bb370..98923cd8 100644
--- a/src/merge/resources/ats/types/account_details.py
+++ b/src/merge/resources/ats/types/account_details.py
@@ -30,9 +30,6 @@ class AccountDetails(UncheckedBaseModel):
The time at which account completes the linking flow.
"""
- instance_id: typing.Optional[str] = None
- instance_display_value: 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:
diff --git a/src/merge/resources/ats/types/linked_account_patch_response.py b/src/merge/resources/ats/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/ats/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/__init__.py b/src/merge/resources/chat/__init__.py
index 75b23cf3..d4abb34d 100644
--- a/src/merge/resources/chat/__init__.py
+++ b/src/merge/resources/chat/__init__.py
@@ -61,7 +61,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
Member,
MemberFieldMappings,
MemberGroup,
@@ -199,7 +198,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"Member": ".types",
"MemberFieldMappings": ".types",
@@ -351,7 +349,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountsListRequestCategory",
"Member",
"MemberFieldMappings",
diff --git a/src/merge/resources/chat/resources/linked_accounts/client.py b/src/merge/resources/chat/resources/linked_accounts/client.py
index 2ff2c8d9..ec8e46ae 100644
--- a/src/merge/resources/chat/resources/linked_accounts/client.py
+++ b/src/merge/resources/chat/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -142,47 +138,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.chat.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -320,52 +275,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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
index 27eefa75..dc0b1eb3 100644
--- a/src/merge/resources/chat/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/chat/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -125,57 +120,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"chat/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -284,54 +228,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"chat/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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
index 9aa6579f..ce79b882 100644
--- a/src/merge/resources/chat/types/__init__.py
+++ b/src/merge/resources/chat/types/__init__.py
@@ -62,7 +62,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .member import Member
from .member_field_mappings import MemberFieldMappings
from .member_group import MemberGroup
@@ -163,7 +162,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"Member": ".member",
"MemberFieldMappings": ".member_field_mappings",
"MemberGroup": ".member_group",
@@ -286,7 +284,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"Member",
"MemberFieldMappings",
"MemberGroup",
diff --git a/src/merge/resources/chat/types/linked_account_patch_response.py b/src/merge/resources/chat/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/chat/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/__init__.py b/src/merge/resources/crm/__init__.py
index 7d8bd46b..07d3d95a 100644
--- a/src/merge/resources/crm/__init__.py
+++ b/src/merge/resources/crm/__init__.py
@@ -123,7 +123,6 @@
LeadStatus,
LeadStatusEnum,
LinkToken,
- LinkedAccountPatchResponse,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
@@ -427,7 +426,6 @@
"LeadsListRequestExpandItem": ".resources",
"LeadsRetrieveRequestExpandItem": ".resources",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountStatus": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"MetaResponse": ".types",
@@ -741,7 +739,6 @@ def __dir__():
"LeadsListRequestExpandItem",
"LeadsRetrieveRequestExpandItem",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
diff --git a/src/merge/resources/crm/resources/linked_accounts/client.py b/src/merge/resources/crm/resources/linked_accounts/client.py
index c0691965..27c56425 100644
--- a/src/merge/resources/crm/resources/linked_accounts/client.py
+++ b/src/merge/resources/crm/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -150,47 +146,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.crm.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -336,52 +291,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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
index b8f9df7e..443e75e0 100644
--- a/src/merge/resources/crm/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/crm/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -133,57 +128,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"crm/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -300,54 +244,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"crm/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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
index d809061b..45eaff6a 100644
--- a/src/merge/resources/crm/types/__init__.py
+++ b/src/merge/resources/crm/types/__init__.py
@@ -126,7 +126,6 @@
from .lead_status import LeadStatus
from .lead_status_enum import LeadStatusEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .linked_account_status import LinkedAccountStatus
from .meta_response import MetaResponse
from .method_enum import MethodEnum
@@ -372,7 +371,6 @@
"LeadStatus": ".lead_status",
"LeadStatusEnum": ".lead_status_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"LinkedAccountStatus": ".linked_account_status",
"MetaResponse": ".meta_response",
"MethodEnum": ".method_enum",
@@ -638,7 +636,6 @@ def __dir__():
"LeadStatus",
"LeadStatusEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"MetaResponse",
"MethodEnum",
diff --git a/src/merge/resources/crm/types/account_details.py b/src/merge/resources/crm/types/account_details.py
index 4d7bb370..98923cd8 100644
--- a/src/merge/resources/crm/types/account_details.py
+++ b/src/merge/resources/crm/types/account_details.py
@@ -30,9 +30,6 @@ class AccountDetails(UncheckedBaseModel):
The time at which account completes the linking flow.
"""
- instance_id: typing.Optional[str] = None
- instance_display_value: 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:
diff --git a/src/merge/resources/crm/types/linked_account_patch_response.py b/src/merge/resources/crm/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/crm/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/email/__init__.py b/src/merge/resources/email/__init__.py
index 2bfebb9a..94abbf81 100644
--- a/src/merge/resources/email/__init__.py
+++ b/src/merge/resources/email/__init__.py
@@ -62,7 +62,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
Mailbox,
MailboxFieldMappings,
MailboxType,
@@ -221,7 +220,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"Mailbox": ".types",
"MailboxFieldMappings": ".types",
@@ -389,7 +387,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountsListRequestCategory",
"Mailbox",
"MailboxFieldMappings",
diff --git a/src/merge/resources/email/resources/linked_accounts/client.py b/src/merge/resources/email/resources/linked_accounts/client.py
index 149d5fd2..3170bb97 100644
--- a/src/merge/resources/email/resources/linked_accounts/client.py
+++ b/src/merge/resources/email/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -142,47 +138,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.email.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -320,52 +275,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- import asyncio
-
- from merge import AsyncMerge
-
- client = AsyncMerge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
-
-
- async def main() -> None:
- await client.email.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
diff --git a/src/merge/resources/email/resources/linked_accounts/raw_client.py b/src/merge/resources/email/resources/linked_accounts/raw_client.py
index 15373605..a72a3011 100644
--- a/src/merge/resources/email/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/email/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -125,57 +120,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"email/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -284,54 +228,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"email/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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/email/types/__init__.py b/src/merge/resources/email/types/__init__.py
index 601f2f05..0a3239df 100644
--- a/src/merge/resources/email/types/__init__.py
+++ b/src/merge/resources/email/types/__init__.py
@@ -63,7 +63,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .mailbox import Mailbox
from .mailbox_field_mappings import MailboxFieldMappings
from .mailbox_type import MailboxType
@@ -169,7 +168,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"Mailbox": ".mailbox",
"MailboxFieldMappings": ".mailbox_field_mappings",
"MailboxType": ".mailbox_type",
@@ -297,7 +295,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"Mailbox",
"MailboxFieldMappings",
"MailboxType",
diff --git a/src/merge/resources/email/types/linked_account_patch_response.py b/src/merge/resources/email/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/email/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/filestorage/__init__.py b/src/merge/resources/filestorage/__init__.py
index ce1e022c..123c50fb 100644
--- a/src/merge/resources/filestorage/__init__.py
+++ b/src/merge/resources/filestorage/__init__.py
@@ -78,7 +78,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
@@ -248,7 +247,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountStatus": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"MetaResponse": ".types",
@@ -427,7 +425,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
diff --git a/src/merge/resources/filestorage/resources/linked_accounts/client.py b/src/merge/resources/filestorage/resources/linked_accounts/client.py
index 2b952ab7..3f6c9a99 100644
--- a/src/merge/resources/filestorage/resources/linked_accounts/client.py
+++ b/src/merge/resources/filestorage/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -150,47 +146,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.filestorage.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -336,52 +291,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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 cf577368..d0e67c0f 100644
--- a/src/merge/resources/filestorage/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/filestorage/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -133,57 +128,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"filestorage/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -300,54 +244,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"filestorage/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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/types/__init__.py b/src/merge/resources/filestorage/types/__init__.py
index 3c59a4cc..129f24c9 100644
--- a/src/merge/resources/filestorage/types/__init__.py
+++ b/src/merge/resources/filestorage/types/__init__.py
@@ -79,7 +79,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .linked_account_status import LinkedAccountStatus
from .meta_response import MetaResponse
from .method_enum import MethodEnum
@@ -203,7 +202,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"LinkedAccountStatus": ".linked_account_status",
"MetaResponse": ".meta_response",
"MethodEnum": ".method_enum",
@@ -349,7 +347,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"MetaResponse",
"MethodEnum",
diff --git a/src/merge/resources/filestorage/types/account_details.py b/src/merge/resources/filestorage/types/account_details.py
index 4d7bb370..98923cd8 100644
--- a/src/merge/resources/filestorage/types/account_details.py
+++ b/src/merge/resources/filestorage/types/account_details.py
@@ -30,9 +30,6 @@ class AccountDetails(UncheckedBaseModel):
The time at which account completes the linking flow.
"""
- instance_id: typing.Optional[str] = None
- instance_display_value: 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:
diff --git a/src/merge/resources/filestorage/types/linked_account_patch_response.py b/src/merge/resources/filestorage/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/filestorage/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/__init__.py b/src/merge/resources/hris/__init__.py
index a7f3323a..c03d5493 100644
--- a/src/merge/resources/hris/__init__.py
+++ b/src/merge/resources/hris/__init__.py
@@ -117,7 +117,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
LinkedAccountStatus,
Location,
LocationCountry,
@@ -422,7 +421,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountStatus": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"Location": ".types",
@@ -724,7 +722,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"Location",
diff --git a/src/merge/resources/hris/resources/linked_accounts/client.py b/src/merge/resources/hris/resources/linked_accounts/client.py
index f7ee3f05..ada41b71 100644
--- a/src/merge/resources/hris/resources/linked_accounts/client.py
+++ b/src/merge/resources/hris/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -150,47 +146,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.hris.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -336,52 +291,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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
index 819b8873..cd2639e5 100644
--- a/src/merge/resources/hris/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/hris/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -133,57 +128,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"hris/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -300,54 +244,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"hris/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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
index 829b90d8..78d9efdc 100644
--- a/src/merge/resources/hris/types/__init__.py
+++ b/src/merge/resources/hris/types/__init__.py
@@ -118,7 +118,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .linked_account_status import LinkedAccountStatus
from .location import Location
from .location_country import LocationCountry
@@ -322,7 +321,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"LinkedAccountStatus": ".linked_account_status",
"Location": ".location",
"LocationCountry": ".location_country",
@@ -548,7 +546,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"Location",
"LocationCountry",
diff --git a/src/merge/resources/hris/types/account_details.py b/src/merge/resources/hris/types/account_details.py
index 4d7bb370..98923cd8 100644
--- a/src/merge/resources/hris/types/account_details.py
+++ b/src/merge/resources/hris/types/account_details.py
@@ -30,9 +30,6 @@ class AccountDetails(UncheckedBaseModel):
The time at which account completes the linking flow.
"""
- instance_id: typing.Optional[str] = None
- instance_display_value: 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:
diff --git a/src/merge/resources/hris/types/employee.py b/src/merge/resources/hris/types/employee.py
index 8de1927d..2c7d8d1c 100644
--- a/src/merge/resources/hris/types/employee.py
+++ b/src/merge/resources/hris/types/employee.py
@@ -31,11 +31,6 @@ class Employee(UncheckedBaseModel):
Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees.
"""
- employee_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the employee.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/hris/types/employee_request.py b/src/merge/resources/hris/types/employee_request.py
index 0476ab6b..47c055f1 100644
--- a/src/merge/resources/hris/types/employee_request.py
+++ b/src/merge/resources/hris/types/employee_request.py
@@ -42,11 +42,6 @@ class EmployeeRequest(UncheckedBaseModel):
The ID of the employee's company.
"""
- employee_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the employee.
- """
-
first_name: typing.Optional[str] = pydantic.Field(default=None)
"""
The employee's first name.
diff --git a/src/merge/resources/hris/types/group.py b/src/merge/resources/hris/types/group.py
index 1e694fa9..d52c68d4 100644
--- a/src/merge/resources/hris/types/group.py
+++ b/src/merge/resources/hris/types/group.py
@@ -20,11 +20,6 @@ class Group(UncheckedBaseModel):
Fetch from the `LIST Employee` endpoint and expand groups to view an employee's groups.
"""
- group_url: typing.Optional[str] = pydantic.Field(default=None)
- """
- The 3rd party URL of the group.
- """
-
id: typing.Optional[str] = None
remote_id: typing.Optional[str] = pydantic.Field(default=None)
"""
diff --git a/src/merge/resources/hris/types/linked_account_patch_response.py b/src/merge/resources/hris/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/hris/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/__init__.py b/src/merge/resources/knowledgebase/__init__.py
index 9b9c8654..4e37f26c 100644
--- a/src/merge/resources/knowledgebase/__init__.py
+++ b/src/merge/resources/knowledgebase/__init__.py
@@ -80,7 +80,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
MethodEnum,
ModelOperation,
ModelPermissionDeserializer,
@@ -252,7 +251,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"MethodEnum": ".types",
"ModelOperation": ".types",
@@ -431,7 +429,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountsListRequestCategory",
"MethodEnum",
"ModelOperation",
diff --git a/src/merge/resources/knowledgebase/resources/linked_accounts/client.py b/src/merge/resources/knowledgebase/resources/linked_accounts/client.py
index 8973b7b6..8b389f48 100644
--- a/src/merge/resources/knowledgebase/resources/linked_accounts/client.py
+++ b/src/merge/resources/knowledgebase/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -142,47 +138,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.knowledgebase.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -320,52 +275,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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
index c828d000..991575d6 100644
--- a/src/merge/resources/knowledgebase/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/knowledgebase/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -125,57 +120,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"knowledgebase/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -284,54 +228,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"knowledgebase/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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
index 0a8fa1d8..cb392a79 100644
--- a/src/merge/resources/knowledgebase/types/__init__.py
+++ b/src/merge/resources/knowledgebase/types/__init__.py
@@ -81,7 +81,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .method_enum import MethodEnum
from .model_operation import ModelOperation
from .model_permission_deserializer import ModelPermissionDeserializer
@@ -203,7 +202,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"MethodEnum": ".method_enum",
"ModelOperation": ".model_operation",
"ModelPermissionDeserializer": ".model_permission_deserializer",
@@ -347,7 +345,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"MethodEnum",
"ModelOperation",
"ModelPermissionDeserializer",
diff --git a/src/merge/resources/knowledgebase/types/linked_account_patch_response.py b/src/merge/resources/knowledgebase/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/knowledgebase/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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/__init__.py b/src/merge/resources/ticketing/__init__.py
index 01865f55..6bd3327c 100644
--- a/src/merge/resources/ticketing/__init__.py
+++ b/src/merge/resources/ticketing/__init__.py
@@ -83,7 +83,6 @@
LanguageEnum,
LastSyncResultEnum,
LinkToken,
- LinkedAccountPatchResponse,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
@@ -335,7 +334,6 @@
"LanguageEnum": ".types",
"LastSyncResultEnum": ".types",
"LinkToken": ".types",
- "LinkedAccountPatchResponse": ".types",
"LinkedAccountStatus": ".types",
"LinkedAccountsListRequestCategory": ".resources",
"MetaResponse": ".types",
@@ -597,7 +595,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
diff --git a/src/merge/resources/ticketing/resources/linked_accounts/client.py b/src/merge/resources/ticketing/resources/linked_accounts/client.py
index 669af215..59ed7936 100644
--- a/src/merge/resources/ticketing/resources/linked_accounts/client.py
+++ b/src/merge/resources/ticketing/resources/linked_accounts/client.py
@@ -4,14 +4,10 @@
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .....core.request_options import RequestOptions
-from ...types.linked_account_patch_response import LinkedAccountPatchResponse
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
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class LinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -150,47 +146,6 @@ def list(
)
return _response.data
- def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- from merge import Merge
-
- client = Merge(
- account_token="YOUR_ACCOUNT_TOKEN",
- api_key="YOUR_API_KEY",
- )
- client.ticketing.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
- """
- _response = self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, request_options=request_options
- )
- return _response.data
-
class AsyncLinkedAccountsClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
@@ -336,52 +291,3 @@ async def main() -> None:
request_options=request_options,
)
return _response.data
-
- async def partial_update(
- self,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> LinkedAccountPatchResponse:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- LinkedAccountPatchResponse
-
-
- Examples
- --------
- 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.linked_accounts.partial_update(
- linked_account_id="linked_account_id",
- )
-
-
- asyncio.run(main())
- """
- _response = await self._raw_client.partial_update(
- linked_account_id, ekm_enabled=ekm_enabled, 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
index f3e0b26d..5526d4f8 100644
--- a/src/merge/resources/ticketing/resources/linked_accounts/raw_client.py
+++ b/src/merge/resources/ticketing/resources/linked_accounts/raw_client.py
@@ -6,16 +6,11 @@
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.linked_account_patch_response import LinkedAccountPatchResponse
from ...types.paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .types.linked_accounts_list_request_category import LinkedAccountsListRequestCategory
-# this is used as the default value for optional parameters
-OMIT = typing.cast(typing.Any, ...)
-
class RawLinkedAccountsClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
@@ -133,57 +128,6 @@ def list(
raise ApiError(status_code=_response.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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> HttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- HttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = self._client_wrapper.httpx_client.request(
- f"ticketing/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return HttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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):
@@ -300,54 +244,3 @@ async def list(
except JSONDecodeError:
raise ApiError(status_code=_response.status_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,
- linked_account_id: str,
- *,
- ekm_enabled: typing.Optional[bool] = OMIT,
- request_options: typing.Optional[RequestOptions] = None,
- ) -> AsyncHttpResponse[LinkedAccountPatchResponse]:
- """
- Update a linked account.
-
- Parameters
- ----------
- linked_account_id : str
-
- ekm_enabled : typing.Optional[bool]
-
- request_options : typing.Optional[RequestOptions]
- Request-specific configuration.
-
- Returns
- -------
- AsyncHttpResponse[LinkedAccountPatchResponse]
-
- """
- _response = await self._client_wrapper.httpx_client.request(
- f"ticketing/v1/linked-accounts/{jsonable_encoder(linked_account_id)}",
- method="PATCH",
- json={
- "ekm_enabled": ekm_enabled,
- },
- headers={
- "content-type": "application/json",
- },
- request_options=request_options,
- omit=OMIT,
- )
- try:
- if 200 <= _response.status_code < 300:
- _data = typing.cast(
- LinkedAccountPatchResponse,
- construct_type(
- type_=LinkedAccountPatchResponse, # type: ignore
- object_=_response.json(),
- ),
- )
- return AsyncHttpResponse(response=_response, data=_data)
- _response_json = _response.json()
- except JSONDecodeError:
- raise ApiError(status_code=_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
index 6874c967..1fe855e6 100644
--- a/src/merge/resources/ticketing/types/__init__.py
+++ b/src/merge/resources/ticketing/types/__init__.py
@@ -84,7 +84,6 @@
from .language_enum import LanguageEnum
from .last_sync_result_enum import LastSyncResultEnum
from .link_token import LinkToken
- from .linked_account_patch_response import LinkedAccountPatchResponse
from .linked_account_status import LinkedAccountStatus
from .meta_response import MetaResponse
from .method_enum import MethodEnum
@@ -272,7 +271,6 @@
"LanguageEnum": ".language_enum",
"LastSyncResultEnum": ".last_sync_result_enum",
"LinkToken": ".link_token",
- "LinkedAccountPatchResponse": ".linked_account_patch_response",
"LinkedAccountStatus": ".linked_account_status",
"MetaResponse": ".meta_response",
"MethodEnum": ".method_enum",
@@ -482,7 +480,6 @@ def __dir__():
"LanguageEnum",
"LastSyncResultEnum",
"LinkToken",
- "LinkedAccountPatchResponse",
"LinkedAccountStatus",
"MetaResponse",
"MethodEnum",
diff --git a/src/merge/resources/ticketing/types/account_details.py b/src/merge/resources/ticketing/types/account_details.py
index 4d7bb370..98923cd8 100644
--- a/src/merge/resources/ticketing/types/account_details.py
+++ b/src/merge/resources/ticketing/types/account_details.py
@@ -30,9 +30,6 @@ class AccountDetails(UncheckedBaseModel):
The time at which account completes the linking flow.
"""
- instance_id: typing.Optional[str] = None
- instance_display_value: 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:
diff --git a/src/merge/resources/ticketing/types/linked_account_patch_response.py b/src/merge/resources/ticketing/types/linked_account_patch_response.py
deleted file mode 100644
index ef604b94..00000000
--- a/src/merge/resources/ticketing/types/linked_account_patch_response.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 LinkedAccountPatchResponse(UncheckedBaseModel):
- id: str
- ekm_enabled: 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