Skip to content

Commit

Permalink
May 2024 SDK bump (#88)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
fern-api[bot] authored May 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d021dd3 commit cce82ff
Showing 267 changed files with 1,275 additions and 4,754 deletions.
230 changes: 115 additions & 115 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "MergePythonClient"
version = "1.0.8"
version = "1.0.9"
description = ""
readme = "README.md"
authors = []
4 changes: 2 additions & 2 deletions src/merge/client.py
Original file line number Diff line number Diff line change
@@ -34,8 +34,8 @@ def __init__(
self.ats = AtsClient(client_wrapper=self._client_wrapper)
self.crm = CrmClient(client_wrapper=self._client_wrapper)
self.filestorage = FilestorageClient(client_wrapper=self._client_wrapper)
self.hris = HrisClient(client_wrapper=self._client_wrapper)
self.ticketing = TicketingClient(client_wrapper=self._client_wrapper)
self.hris = HrisClient(client_wrapper=self._client_wrapper)
self.accounting = AccountingClient(client_wrapper=self._client_wrapper)


@@ -59,8 +59,8 @@ def __init__(
self.ats = AsyncAtsClient(client_wrapper=self._client_wrapper)
self.crm = AsyncCrmClient(client_wrapper=self._client_wrapper)
self.filestorage = AsyncFilestorageClient(client_wrapper=self._client_wrapper)
self.hris = AsyncHrisClient(client_wrapper=self._client_wrapper)
self.ticketing = AsyncTicketingClient(client_wrapper=self._client_wrapper)
self.hris = AsyncHrisClient(client_wrapper=self._client_wrapper)
self.accounting = AsyncAccountingClient(client_wrapper=self._client_wrapper)


2 changes: 1 addition & 1 deletion src/merge/core/client_wrapper.py
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "MergePythonClient",
"X-Fern-SDK-Version": "1.0.8",
"X-Fern-SDK-Version": "1.0.9",
}
if self._account_token is not None:
headers["X-Account-Token"] = self._account_token
30 changes: 10 additions & 20 deletions src/merge/resources/accounting/__init__.py
Original file line number Diff line number Diff line change
@@ -52,9 +52,6 @@
CommonModelScopesBodyRequest,
CompanyInfo,
CompanyInfoCurrency,
ConditionSchema,
ConditionSchemaConditionType,
ConditionTypeEnum,
Contact,
ContactAddressesItem,
ContactRequest,
@@ -197,10 +194,6 @@
JournalLineTrackingCategoriesItem,
JournalLineTrackingCategory,
LinkToken,
LinkedAccountCondition,
LinkedAccountConditionRequest,
LinkedAccountSelectiveSyncConfiguration,
LinkedAccountSelectiveSyncConfigurationRequest,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
@@ -209,7 +202,6 @@
ModelPermissionDeserializerRequest,
MultipartFormFieldRequest,
MultipartFormFieldRequestEncoding,
OperatorSchema,
PaginatedAccountDetailsAndActionsList,
PaginatedAccountList,
PaginatedAccountingAttachmentList,
@@ -218,7 +210,6 @@
PaginatedBalanceSheetList,
PaginatedCashFlowStatementList,
PaginatedCompanyInfoList,
PaginatedConditionSchemaList,
PaginatedContactList,
PaginatedCreditNoteList,
PaginatedExpenseList,
@@ -242,6 +233,7 @@
PatchedPaymentRequestContact,
PatchedPaymentRequestCurrency,
PatchedPaymentRequestTrackingCategoriesItem,
PatchedPaymentRequestType,
Payment,
PaymentAccount,
PaymentAccountingPeriod,
@@ -259,8 +251,11 @@
PaymentRequestContact,
PaymentRequestCurrency,
PaymentRequestTrackingCategoriesItem,
PaymentRequestType,
PaymentResponse,
PaymentTrackingCategoriesItem,
PaymentType,
PaymentTypeEnum,
PostingStatusEnum,
PurchaseOrder,
PurchaseOrderAccountingPeriod,
@@ -288,6 +283,7 @@
RemoteData,
RemoteEndpointInfo,
RemoteFieldApi,
RemoteFieldApiCoverage,
RemoteFieldApiResponse,
RemoteKey,
RemoteResponse,
@@ -392,7 +388,6 @@
purchase_orders,
regenerate_key,
scopes,
selective_sync,
sync_status,
tax_rates,
tracking_categories,
@@ -459,9 +454,6 @@
"CompanyInfoCurrency",
"CompanyInfoListRequestExpand",
"CompanyInfoRetrieveRequestExpand",
"ConditionSchema",
"ConditionSchemaConditionType",
"ConditionTypeEnum",
"Contact",
"ContactAddressesItem",
"ContactRequest",
@@ -622,10 +614,6 @@
"JournalLineTrackingCategoriesItem",
"JournalLineTrackingCategory",
"LinkToken",
"LinkedAccountCondition",
"LinkedAccountConditionRequest",
"LinkedAccountSelectiveSyncConfiguration",
"LinkedAccountSelectiveSyncConfigurationRequest",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
@@ -635,7 +623,6 @@
"ModelPermissionDeserializerRequest",
"MultipartFormFieldRequest",
"MultipartFormFieldRequestEncoding",
"OperatorSchema",
"PaginatedAccountDetailsAndActionsList",
"PaginatedAccountList",
"PaginatedAccountingAttachmentList",
@@ -644,7 +631,6 @@
"PaginatedBalanceSheetList",
"PaginatedCashFlowStatementList",
"PaginatedCompanyInfoList",
"PaginatedConditionSchemaList",
"PaginatedContactList",
"PaginatedCreditNoteList",
"PaginatedExpenseList",
@@ -668,6 +654,7 @@
"PatchedPaymentRequestContact",
"PatchedPaymentRequestCurrency",
"PatchedPaymentRequestTrackingCategoriesItem",
"PatchedPaymentRequestType",
"Payment",
"PaymentAccount",
"PaymentAccountingPeriod",
@@ -685,8 +672,11 @@
"PaymentRequestContact",
"PaymentRequestCurrency",
"PaymentRequestTrackingCategoriesItem",
"PaymentRequestType",
"PaymentResponse",
"PaymentTrackingCategoriesItem",
"PaymentType",
"PaymentTypeEnum",
"PaymentsListRequestExpand",
"PaymentsRetrieveRequestExpand",
"PostingStatusEnum",
@@ -718,6 +708,7 @@
"RemoteData",
"RemoteEndpointInfo",
"RemoteFieldApi",
"RemoteFieldApiCoverage",
"RemoteFieldApiResponse",
"RemoteKey",
"RemoteResponse",
@@ -791,7 +782,6 @@
"purchase_orders",
"regenerate_key",
"scopes",
"selective_sync",
"sync_status",
"tax_rates",
"tracking_categories",
3 changes: 0 additions & 3 deletions src/merge/resources/accounting/client.py
Original file line number Diff line number Diff line change
@@ -39,7 +39,6 @@
from .resources.purchase_orders.client import AsyncPurchaseOrdersClient, PurchaseOrdersClient
from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient
from .resources.scopes.client import AsyncScopesClient, ScopesClient
from .resources.selective_sync.client import AsyncSelectiveSyncClient, SelectiveSyncClient
from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient
from .resources.tax_rates.client import AsyncTaxRatesClient, TaxRatesClient
from .resources.tracking_categories.client import AsyncTrackingCategoriesClient, TrackingCategoriesClient
@@ -84,7 +83,6 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
self.phone_numbers = PhoneNumbersClient(client_wrapper=self._client_wrapper)
self.purchase_orders = PurchaseOrdersClient(client_wrapper=self._client_wrapper)
self.regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper)
self.selective_sync = SelectiveSyncClient(client_wrapper=self._client_wrapper)
self.sync_status = SyncStatusClient(client_wrapper=self._client_wrapper)
self.force_resync = ForceResyncClient(client_wrapper=self._client_wrapper)
self.tax_rates = TaxRatesClient(client_wrapper=self._client_wrapper)
@@ -130,7 +128,6 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
self.phone_numbers = AsyncPhoneNumbersClient(client_wrapper=self._client_wrapper)
self.purchase_orders = AsyncPurchaseOrdersClient(client_wrapper=self._client_wrapper)
self.regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper)
self.selective_sync = AsyncSelectiveSyncClient(client_wrapper=self._client_wrapper)
self.sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper)
self.force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper)
self.tax_rates = AsyncTaxRatesClient(client_wrapper=self._client_wrapper)
2 changes: 0 additions & 2 deletions src/merge/resources/accounting/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@
purchase_orders,
regenerate_key,
scopes,
selective_sync,
sync_status,
tax_rates,
tracking_categories,
@@ -134,7 +133,6 @@
"purchase_orders",
"regenerate_key",
"scopes",
"selective_sync",
"sync_status",
"tax_rates",
"tracking_categories",
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ def list(
- end_date: typing.Optional[str]. If included, will only include audit trail events that occurred before this time
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`
- page_size: typing.Optional[int]. Number of results to return per page.
@@ -122,7 +122,7 @@ async def list(
- end_date: typing.Optional[str]. If included, will only include audit trail events that occurred before this time
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`
- page_size: typing.Optional[int]. Number of results to return per page.
Original file line number Diff line number Diff line change
@@ -244,8 +244,6 @@ def field_mappings_partial_update(
)
client.accounting.field_mapping.field_mappings_partial_update(
field_mapping_id="field_mapping_id",
remote_method="GET",
remote_url_path="/example-url-path",
)
"""
_request: typing.Dict[str, typing.Any] = {}
@@ -615,8 +613,6 @@ async def field_mappings_partial_update(
)
await client.accounting.field_mapping.field_mappings_partial_update(
field_mapping_id="field_mapping_id",
remote_method="GET",
remote_url_path="/example-url-path",
)
"""
_request: typing.Dict[str, typing.Any] = {}
10 changes: 10 additions & 0 deletions src/merge/resources/accounting/resources/link_token/client.py
Original file line number Diff line number Diff line change
@@ -42,6 +42,7 @@ def create(
typing.Dict[str, typing.Optional[typing.List[IndividualCommonModelScopeDeserializerRequest]]]
] = OMIT,
language: typing.Optional[str] = OMIT,
integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> LinkToken:
"""
@@ -68,6 +69,8 @@ def create(
- language: typing.Optional[str]. The language code for the language to localize Merge Link to.
- integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]]. A JSON object containing integration-specific configuration options.
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
---
from merge.client import Merge
@@ -102,6 +105,8 @@ def create(
_request["category_common_model_scopes"] = category_common_model_scopes
if language is not OMIT:
_request["language"] = language
if integration_specific_config is not OMIT:
_request["integration_specific_config"] = integration_specific_config
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "accounting/v1/link-token"),
@@ -154,6 +159,7 @@ async def create(
typing.Dict[str, typing.Optional[typing.List[IndividualCommonModelScopeDeserializerRequest]]]
] = OMIT,
language: typing.Optional[str] = OMIT,
integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> LinkToken:
"""
@@ -180,6 +186,8 @@ async def create(
- language: typing.Optional[str]. The language code for the language to localize Merge Link to.
- integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]]. A JSON object containing integration-specific configuration options.
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
---
from merge.client import AsyncMerge
@@ -214,6 +222,8 @@ async def create(
_request["category_common_model_scopes"] = category_common_model_scopes
if language is not OMIT:
_request["language"] = language
if integration_specific_config is not OMIT:
_request["integration_specific_config"] = integration_specific_config
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "accounting/v1/link-token"),
382 changes: 0 additions & 382 deletions src/merge/resources/accounting/resources/selective_sync/client.py

This file was deleted.

28 changes: 10 additions & 18 deletions src/merge/resources/accounting/types/__init__.py
Original file line number Diff line number Diff line change
@@ -51,9 +51,6 @@
from .common_model_scopes_body_request import CommonModelScopesBodyRequest
from .company_info import CompanyInfo
from .company_info_currency import CompanyInfoCurrency
from .condition_schema import ConditionSchema
from .condition_schema_condition_type import ConditionSchemaConditionType
from .condition_type_enum import ConditionTypeEnum
from .contact import Contact
from .contact_addresses_item import ContactAddressesItem
from .contact_request import ContactRequest
@@ -198,10 +195,6 @@
from .journal_line_tracking_categories_item import JournalLineTrackingCategoriesItem
from .journal_line_tracking_category import JournalLineTrackingCategory
from .link_token import LinkToken
from .linked_account_condition import LinkedAccountCondition
from .linked_account_condition_request import LinkedAccountConditionRequest
from .linked_account_selective_sync_configuration import LinkedAccountSelectiveSyncConfiguration
from .linked_account_selective_sync_configuration_request import LinkedAccountSelectiveSyncConfigurationRequest
from .linked_account_status import LinkedAccountStatus
from .meta_response import MetaResponse
from .method_enum import MethodEnum
@@ -210,7 +203,6 @@
from .model_permission_deserializer_request import ModelPermissionDeserializerRequest
from .multipart_form_field_request import MultipartFormFieldRequest
from .multipart_form_field_request_encoding import MultipartFormFieldRequestEncoding
from .operator_schema import OperatorSchema
from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .paginated_account_list import PaginatedAccountList
from .paginated_accounting_attachment_list import PaginatedAccountingAttachmentList
@@ -219,7 +211,6 @@
from .paginated_balance_sheet_list import PaginatedBalanceSheetList
from .paginated_cash_flow_statement_list import PaginatedCashFlowStatementList
from .paginated_company_info_list import PaginatedCompanyInfoList
from .paginated_condition_schema_list import PaginatedConditionSchemaList
from .paginated_contact_list import PaginatedContactList
from .paginated_credit_note_list import PaginatedCreditNoteList
from .paginated_expense_list import PaginatedExpenseList
@@ -243,6 +234,7 @@
from .patched_payment_request_contact import PatchedPaymentRequestContact
from .patched_payment_request_currency import PatchedPaymentRequestCurrency
from .patched_payment_request_tracking_categories_item import PatchedPaymentRequestTrackingCategoriesItem
from .patched_payment_request_type import PatchedPaymentRequestType
from .payment import Payment
from .payment_account import PaymentAccount
from .payment_accounting_period import PaymentAccountingPeriod
@@ -260,8 +252,11 @@
from .payment_request_contact import PaymentRequestContact
from .payment_request_currency import PaymentRequestCurrency
from .payment_request_tracking_categories_item import PaymentRequestTrackingCategoriesItem
from .payment_request_type import PaymentRequestType
from .payment_response import PaymentResponse
from .payment_tracking_categories_item import PaymentTrackingCategoriesItem
from .payment_type import PaymentType
from .payment_type_enum import PaymentTypeEnum
from .posting_status_enum import PostingStatusEnum
from .purchase_order import PurchaseOrder
from .purchase_order_accounting_period import PurchaseOrderAccountingPeriod
@@ -289,6 +284,7 @@
from .remote_data import RemoteData
from .remote_endpoint_info import RemoteEndpointInfo
from .remote_field_api import RemoteFieldApi
from .remote_field_api_coverage import RemoteFieldApiCoverage
from .remote_field_api_response import RemoteFieldApiResponse
from .remote_key import RemoteKey
from .remote_response import RemoteResponse
@@ -379,9 +375,6 @@
"CommonModelScopesBodyRequest",
"CompanyInfo",
"CompanyInfoCurrency",
"ConditionSchema",
"ConditionSchemaConditionType",
"ConditionTypeEnum",
"Contact",
"ContactAddressesItem",
"ContactRequest",
@@ -524,10 +517,6 @@
"JournalLineTrackingCategoriesItem",
"JournalLineTrackingCategory",
"LinkToken",
"LinkedAccountCondition",
"LinkedAccountConditionRequest",
"LinkedAccountSelectiveSyncConfiguration",
"LinkedAccountSelectiveSyncConfigurationRequest",
"LinkedAccountStatus",
"MetaResponse",
"MethodEnum",
@@ -536,7 +525,6 @@
"ModelPermissionDeserializerRequest",
"MultipartFormFieldRequest",
"MultipartFormFieldRequestEncoding",
"OperatorSchema",
"PaginatedAccountDetailsAndActionsList",
"PaginatedAccountList",
"PaginatedAccountingAttachmentList",
@@ -545,7 +533,6 @@
"PaginatedBalanceSheetList",
"PaginatedCashFlowStatementList",
"PaginatedCompanyInfoList",
"PaginatedConditionSchemaList",
"PaginatedContactList",
"PaginatedCreditNoteList",
"PaginatedExpenseList",
@@ -569,6 +556,7 @@
"PatchedPaymentRequestContact",
"PatchedPaymentRequestCurrency",
"PatchedPaymentRequestTrackingCategoriesItem",
"PatchedPaymentRequestType",
"Payment",
"PaymentAccount",
"PaymentAccountingPeriod",
@@ -586,8 +574,11 @@
"PaymentRequestContact",
"PaymentRequestCurrency",
"PaymentRequestTrackingCategoriesItem",
"PaymentRequestType",
"PaymentResponse",
"PaymentTrackingCategoriesItem",
"PaymentType",
"PaymentTypeEnum",
"PostingStatusEnum",
"PurchaseOrder",
"PurchaseOrderAccountingPeriod",
@@ -615,6 +606,7 @@
"RemoteData",
"RemoteEndpointInfo",
"RemoteFieldApi",
"RemoteFieldApiCoverage",
"RemoteFieldApiResponse",
"RemoteKey",
"RemoteResponse",
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/account.py
Original file line number Diff line number Diff line change
@@ -38,9 +38,11 @@ class Account(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The account's name.")
description: typing.Optional[str] = pydantic.Field(description="The account's description.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/accounting_attachment.py
Original file line number Diff line number Diff line change
@@ -27,9 +27,11 @@ class AccountingAttachment(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
file_name: typing.Optional[str] = pydantic.Field(description="The attachment's name.")
file_url: typing.Optional[str] = pydantic.Field(description="The attachment's url.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/accounting_period.py
Original file line number Diff line number Diff line change
@@ -26,9 +26,11 @@ class AccountingPeriod(pydantic.BaseModel):
"""

id: typing.Optional[str]
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
start_date: typing.Optional[dt.datetime] = pydantic.Field(description="Beginning date of the period")
end_date: typing.Optional[dt.datetime] = pydantic.Field(description="End date of the period")
Original file line number Diff line number Diff line change
@@ -24,9 +24,11 @@ class AccountingPhoneNumber(pydantic.BaseModel):
Fetch from the `GET CompanyInfo` endpoint and view the company's phone numbers.
"""

created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
number: typing.Optional[str] = pydantic.Field(description="The phone number.")
type: typing.Optional[str] = pydantic.Field(description="The phone number's type.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/address.py
Original file line number Diff line number Diff line change
@@ -26,9 +26,11 @@ class Address(pydantic.BaseModel):
Fetch from the `GET CompanyInfo` endpoint and view the company's addresses.
"""

created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
type: typing.Optional[AddressType] = pydantic.Field(
description=("The address type.\n" "\n" "- `BILLING` - BILLING\n" "- `SHIPPING` - SHIPPING\n")
3 changes: 3 additions & 0 deletions src/merge/resources/accounting/types/audit_log_event.py
Original file line number Diff line number Diff line change
@@ -72,6 +72,9 @@ class AuditLogEvent(pydantic.BaseModel):
"- `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC\n"
"- `MUTED_ISSUE` - MUTED_ISSUE\n"
"- `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK\n"
"- `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK\n"
"- `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK\n"
"- `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED\n"
)
)
event_description: str
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/balance_sheet.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class BalanceSheet(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The balance sheet's name.")
currency: typing.Optional[BalanceSheetCurrency] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/cash_flow_statement.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class CashFlowStatement(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The cash flow statement's name.")
currency: typing.Optional[CashFlowStatementCurrency] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/company_info.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class CompanyInfo(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The company's name.")
legal_name: typing.Optional[str] = pydantic.Field(description="The company's legal name.")
56 changes: 0 additions & 56 deletions src/merge/resources/accounting/types/condition_schema.py

This file was deleted.

This file was deleted.

51 changes: 0 additions & 51 deletions src/merge/resources/accounting/types/condition_type_enum.py

This file was deleted.

6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/contact.py
Original file line number Diff line number Diff line change
@@ -33,9 +33,11 @@ class Contact(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The contact's name.")
is_supplier: typing.Optional[bool] = pydantic.Field(description="Whether the contact is a supplier.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/credit_note.py
Original file line number Diff line number Diff line change
@@ -36,9 +36,11 @@ class CreditNote(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(description="The credit note's transaction date.")
status: typing.Optional[CreditNoteStatus] = pydantic.Field(
7 changes: 4 additions & 3 deletions src/merge/resources/accounting/types/credit_note_line_item.py
Original file line number Diff line number Diff line change
@@ -16,17 +16,18 @@
class CreditNoteLineItem(pydantic.BaseModel):
id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
item: typing.Optional[CreditNoteLineItemItem]
name: typing.Optional[str] = pydantic.Field(description="The credit note line item's name.")
description: typing.Optional[str] = pydantic.Field(description="The description of the item that is owed.")
quantity: typing.Optional[str] = pydantic.Field(description="The credit note line item's quantity.")
memo: typing.Optional[str] = pydantic.Field(description="The credit note line item's memo.")
unit_price: typing.Optional[str] = pydantic.Field(description="The credit note line item's unit price.")
tax_rate: typing.Optional[str] = pydantic.Field(description="The credit note line item's tax rate.")
total_line_amount: typing.Optional[str] = pydantic.Field(description="The credit note line item's total.")
tracking_category: typing.Optional[str] = pydantic.Field(
description="The credit note line item's associated tracking category."
4 changes: 2 additions & 2 deletions src/merge/resources/accounting/types/currency_enum.py
Original file line number Diff line number Diff line change
@@ -628,7 +628,7 @@ def visit(
xua: typing.Callable[[], T_Result],
afn: typing.Callable[[], T_Result],
afa: typing.Callable[[], T_Result],
all: typing.Callable[[], T_Result],
all_: typing.Callable[[], T_Result],
alk: typing.Callable[[], T_Result],
dzd: typing.Callable[[], T_Result],
adp: typing.Callable[[], T_Result],
@@ -939,7 +939,7 @@ def visit(
if self is CurrencyEnum.AFA:
return afa()
if self is CurrencyEnum.ALL:
return all()
return all_()
if self is CurrencyEnum.ALK:
return alk()
if self is CurrencyEnum.DZD:
15 changes: 15 additions & 0 deletions src/merge/resources/accounting/types/event_type_enum.py
Original file line number Diff line number Diff line change
@@ -42,6 +42,9 @@ class EventTypeEnum(str, enum.Enum):
- `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC
- `MUTED_ISSUE` - MUTED_ISSUE
- `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK
- `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
- `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
- `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
"""

CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY"
@@ -78,6 +81,9 @@ class EventTypeEnum(str, enum.Enum):
FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC"
MUTED_ISSUE = "MUTED_ISSUE"
GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK"
ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK"
DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK"
MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED"

def visit(
self,
@@ -115,6 +121,9 @@ def visit(
forced_linked_account_resync: typing.Callable[[], T_Result],
muted_issue: typing.Callable[[], T_Result],
generated_magic_link: typing.Callable[[], T_Result],
enabled_merge_webhook: typing.Callable[[], T_Result],
disabled_merge_webhook: typing.Callable[[], T_Result],
merge_webhook_target_changed: typing.Callable[[], T_Result],
) -> T_Result:
if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY:
return created_remote_production_api_key()
@@ -184,3 +193,9 @@ def visit(
return muted_issue()
if self is EventTypeEnum.GENERATED_MAGIC_LINK:
return generated_magic_link()
if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK:
return enabled_merge_webhook()
if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK:
return disabled_merge_webhook()
if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED:
return merge_webhook_target_changed()
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/expense.py
Original file line number Diff line number Diff line change
@@ -36,9 +36,11 @@ class Expense(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(description="When the transaction occurred.")
remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(description="When the expense was created.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/expense_line.py
Original file line number Diff line number Diff line change
@@ -32,9 +32,11 @@ class ExpenseLine(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
item: typing.Optional[ExpenseLineItem] = pydantic.Field(description="The line's item.")
net_amount: typing.Optional[float] = pydantic.Field(description="The line's net amount.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/income_statement.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class IncomeStatement(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The income statement's name.")
currency: typing.Optional[IncomeStatementCurrency] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/invoice.py
Original file line number Diff line number Diff line change
@@ -38,9 +38,11 @@ class Invoice(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
type: typing.Optional[InvoiceType] = pydantic.Field(
description=(
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/invoice_line_item.py
Original file line number Diff line number Diff line change
@@ -31,9 +31,11 @@ class InvoiceLineItem(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
description: typing.Optional[str] = pydantic.Field(description="The line item's description.")
unit_price: typing.Optional[float] = pydantic.Field(description="The line item's unit price.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/item.py
Original file line number Diff line number Diff line change
@@ -31,9 +31,11 @@ class Item(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The item's name.")
status: typing.Optional[ItemStatus] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/journal_entry.py
Original file line number Diff line number Diff line change
@@ -39,9 +39,11 @@ class JournalEntry(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(description="The journal entry's transaction date.")
remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/journal_line.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class JournalLine(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
account: typing.Optional[JournalLineAccount]
net_amount: typing.Optional[float] = pydantic.Field(
35 changes: 0 additions & 35 deletions src/merge/resources/accounting/types/linked_account_condition.py

This file was deleted.

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions src/merge/resources/accounting/types/operator_schema.py

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
from .patched_payment_request_contact import PatchedPaymentRequestContact
from .patched_payment_request_currency import PatchedPaymentRequestCurrency
from .patched_payment_request_tracking_categories_item import PatchedPaymentRequestTrackingCategoriesItem
from .patched_payment_request_type import PatchedPaymentRequestType

try:
import pydantic.v1 as pydantic # type: ignore
@@ -357,6 +358,14 @@ class PatchedPaymentRequest(pydantic.BaseModel):
total_amount: typing.Optional[float] = pydantic.Field(
description="The total amount of money being paid to the supplier, or customer, after taxes."
)
type: typing.Optional[PatchedPaymentRequestType] = pydantic.Field(
description=(
"The type of the invoice.\n"
"\n"
"- `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE\n"
"- `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE\n"
)
)
tracking_categories: typing.Optional[typing.List[typing.Optional[PatchedPaymentRequestTrackingCategoriesItem]]]
accounting_period: typing.Optional[PatchedPaymentRequestAccountingPeriod] = pydantic.Field(
description="The accounting period that the Payment was generated in."
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing

from .payment_type_enum import PaymentTypeEnum

PatchedPaymentRequestType = typing.Union[PaymentTypeEnum, str]
15 changes: 13 additions & 2 deletions src/merge/resources/accounting/types/payment.py
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
from .payment_contact import PaymentContact
from .payment_currency import PaymentCurrency
from .payment_tracking_categories_item import PaymentTrackingCategoriesItem
from .payment_type import PaymentType
from .remote_data import RemoteData

try:
@@ -34,9 +35,11 @@ class Payment(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(description="The payment's transaction date.")
contact: typing.Optional[PaymentContact] = pydantic.Field(
@@ -362,6 +365,14 @@ class Payment(pydantic.BaseModel):
total_amount: typing.Optional[float] = pydantic.Field(
description="The total amount of money being paid to the supplier, or customer, after taxes."
)
type: typing.Optional[PaymentType] = pydantic.Field(
description=(
"The type of the invoice.\n"
"\n"
"- `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE\n"
"- `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE\n"
)
)
tracking_categories: typing.Optional[typing.List[typing.Optional[PaymentTrackingCategoriesItem]]]
remote_updated_at: typing.Optional[dt.datetime] = pydantic.Field(
description="When the third party's payment entry was updated."
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/payment_line_item.py
Original file line number Diff line number Diff line change
@@ -26,9 +26,11 @@ class PaymentLineItem(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
applied_amount: typing.Optional[str] = pydantic.Field(description="The amount being applied to the transaction.")
applied_date: typing.Optional[dt.datetime] = pydantic.Field(description="The date the payment portion is applied.")
9 changes: 9 additions & 0 deletions src/merge/resources/accounting/types/payment_request.py
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
from .payment_request_contact import PaymentRequestContact
from .payment_request_currency import PaymentRequestCurrency
from .payment_request_tracking_categories_item import PaymentRequestTrackingCategoriesItem
from .payment_request_type import PaymentRequestType

try:
import pydantic.v1 as pydantic # type: ignore
@@ -355,6 +356,14 @@ class PaymentRequest(pydantic.BaseModel):
total_amount: typing.Optional[float] = pydantic.Field(
description="The total amount of money being paid to the supplier, or customer, after taxes."
)
type: typing.Optional[PaymentRequestType] = pydantic.Field(
description=(
"The type of the invoice.\n"
"\n"
"- `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE\n"
"- `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE\n"
)
)
tracking_categories: typing.Optional[typing.List[typing.Optional[PaymentRequestTrackingCategoriesItem]]]
accounting_period: typing.Optional[PaymentRequestAccountingPeriod] = pydantic.Field(
description="The accounting period that the Payment was generated in."
7 changes: 7 additions & 0 deletions src/merge/resources/accounting/types/payment_request_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing

from .payment_type_enum import PaymentTypeEnum

PaymentRequestType = typing.Union[PaymentTypeEnum, str]
7 changes: 7 additions & 0 deletions src/merge/resources/accounting/types/payment_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

import typing

from .payment_type_enum import PaymentTypeEnum

PaymentType = typing.Union[PaymentTypeEnum, str]
24 changes: 24 additions & 0 deletions src/merge/resources/accounting/types/payment_type_enum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class PaymentTypeEnum(str, enum.Enum):
"""
- `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE
- `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE
"""

ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE"
ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE"

def visit(
self, accounts_payable: typing.Callable[[], T_Result], accounts_receivable: typing.Callable[[], T_Result]
) -> T_Result:
if self is PaymentTypeEnum.ACCOUNTS_PAYABLE:
return accounts_payable()
if self is PaymentTypeEnum.ACCOUNTS_RECEIVABLE:
return accounts_receivable()
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/purchase_order.py
Original file line number Diff line number Diff line change
@@ -37,9 +37,11 @@ class PurchaseOrder(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
status: typing.Optional[PurchaseOrderStatus] = pydantic.Field(
description=(
Original file line number Diff line number Diff line change
@@ -28,9 +28,11 @@ class PurchaseOrderLineItem(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
description: typing.Optional[str] = pydantic.Field(description="A description of the good being purchased.")
unit_price: typing.Optional[float] = pydantic.Field(description="The line item's unit price.")
2 changes: 2 additions & 0 deletions src/merge/resources/accounting/types/remote_field_api.py
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
from ....core.datetime_utils import serialize_datetime
from .advanced_metadata import AdvancedMetadata
from .remote_endpoint_info import RemoteEndpointInfo
from .remote_field_api_coverage import RemoteFieldApiCoverage

try:
import pydantic.v1 as pydantic # type: ignore
@@ -19,6 +20,7 @@ class RemoteFieldApi(pydantic.BaseModel):
remote_endpoint_info: RemoteEndpointInfo
example_values: typing.List[typing.Any]
advanced_metadata: typing.Optional[AdvancedMetadata]
coverage: typing.Optional[RemoteFieldApiCoverage]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

RemoteFieldApiCoverage = typing.Union[int, float]
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/report_item.py
Original file line number Diff line number Diff line change
@@ -25,9 +25,11 @@ class ReportItem(pydantic.BaseModel):
"""

remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The report item's name.")
value: typing.Optional[float] = pydantic.Field(description="The report item's value.")
18 changes: 13 additions & 5 deletions src/merge/resources/accounting/types/tax_rate.py
Original file line number Diff line number Diff line change
@@ -28,14 +28,22 @@ class TaxRate(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
description: typing.Optional[str] = pydantic.Field(description="The tax rate's description.")
total_tax_rate: typing.Optional[float] = pydantic.Field(description="The tax rate's total tax rate.")
effective_tax_rate: typing.Optional[float] = pydantic.Field(description="The tax rate's effective tax rate.")
company: typing.Optional[TaxRateCompany] = pydantic.Field(description="The company the tax rate belongs to.")
total_tax_rate: typing.Optional[float] = pydantic.Field(
description="The tax’s total tax rate - sum of the tax components (not compounded)."
)
effective_tax_rate: typing.Optional[float] = pydantic.Field(
description="The tax rate’s effective tax rate - total amount of tax with compounding."
)
company: typing.Optional[TaxRateCompany] = pydantic.Field(
description="The subsidiary that the tax rate belongs to (in the case of multi-entity systems)."
)
remote_was_deleted: typing.Optional[bool] = pydantic.Field(
description="Indicates whether or not this object has been deleted in the third party platform."
)
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/tracking_category.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class TrackingCategory(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The tracking category's name.")
status: typing.Optional[TrackingCategoryStatus] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/transaction.py
Original file line number Diff line number Diff line change
@@ -41,9 +41,11 @@ class Transaction(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
transaction_type: typing.Optional[str] = pydantic.Field(
description="The type of transaction, which can by any transaction object not already included in Merge’s common model."
8 changes: 5 additions & 3 deletions src/merge/resources/accounting/types/transaction_line_item.py
Original file line number Diff line number Diff line change
@@ -28,9 +28,11 @@ class TransactionLineItem(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
memo: typing.Optional[str] = pydantic.Field(
description="An internal note used by the business to clarify purpose of the transaction."
@@ -42,7 +44,7 @@ class TransactionLineItem(pydantic.BaseModel):
tracking_category: typing.Optional[str] = pydantic.Field(description="The line's associated tracking category.")
tracking_categories: typing.List[str] = pydantic.Field(description="The line's associated tracking categories.")
total_line_amount: typing.Optional[str] = pydantic.Field(description="The line item's total.")
tax_rate: typing.Optional[str] = pydantic.Field(description="The line item's tax rate.")
tax_rate: typing.Optional[str]
currency: typing.Optional[TransactionLineItemCurrency] = pydantic.Field(
description=(
"The line item's currency.\n"
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/vendor_credit.py
Original file line number Diff line number Diff line change
@@ -33,9 +33,11 @@ class VendorCredit(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
number: typing.Optional[str] = pydantic.Field(description="The vendor credit's number.")
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(description="The vendor credit's transaction date.")
6 changes: 4 additions & 2 deletions src/merge/resources/accounting/types/vendor_credit_line.py
Original file line number Diff line number Diff line change
@@ -27,9 +27,11 @@ class VendorCreditLine(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
net_amount: typing.Optional[float] = pydantic.Field(description="The full value of the credit.")
tracking_category: typing.Optional[str] = pydantic.Field(description="The line's associated tracking category.")
22 changes: 2 additions & 20 deletions src/merge/resources/ats/__init__.py
Original file line number Diff line number Diff line change
@@ -56,9 +56,6 @@
CategoryEnum,
CommonModelScopeApi,
CommonModelScopesBodyRequest,
ConditionSchema,
ConditionSchemaConditionType,
ConditionTypeEnum,
DataPassthroughRequest,
DebugModeLog,
DebugModelLogSummary,
@@ -110,10 +107,6 @@
JobStatusEnum,
JobTypeEnum,
LinkToken,
LinkedAccountCondition,
LinkedAccountConditionRequest,
LinkedAccountSelectiveSyncConfiguration,
LinkedAccountSelectiveSyncConfigurationRequest,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
@@ -128,15 +121,13 @@
OfferStatus,
OfferStatusEnum,
Office,
OperatorSchema,
OverallRecommendationEnum,
PaginatedAccountDetailsAndActionsList,
PaginatedActivityList,
PaginatedApplicationList,
PaginatedAttachmentList,
PaginatedAuditLogEventList,
PaginatedCandidateList,
PaginatedConditionSchemaList,
PaginatedDepartmentList,
PaginatedEeocList,
PaginatedIssueList,
@@ -164,6 +155,7 @@
RemoteData,
RemoteEndpointInfo,
RemoteFieldApi,
RemoteFieldApiCoverage,
RemoteFieldApiResponse,
RemoteKey,
RemoteResponse,
@@ -267,7 +259,6 @@
reject_reasons,
scopes,
scorecards,
selective_sync,
sync_status,
tags,
users,
@@ -338,9 +329,6 @@
"CategoryEnum",
"CommonModelScopeApi",
"CommonModelScopesBodyRequest",
"ConditionSchema",
"ConditionSchemaConditionType",
"ConditionTypeEnum",
"DataPassthroughRequest",
"DebugModeLog",
"DebugModelLogSummary",
@@ -404,10 +392,6 @@
"JobsRetrieveRequestExpand",
"JobsScreeningQuestionsListRequestExpand",
"LinkToken",
"LinkedAccountCondition",
"LinkedAccountConditionRequest",
"LinkedAccountSelectiveSyncConfiguration",
"LinkedAccountSelectiveSyncConfigurationRequest",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
@@ -425,15 +409,13 @@
"OffersListRequestExpand",
"OffersRetrieveRequestExpand",
"Office",
"OperatorSchema",
"OverallRecommendationEnum",
"PaginatedAccountDetailsAndActionsList",
"PaginatedActivityList",
"PaginatedApplicationList",
"PaginatedAttachmentList",
"PaginatedAuditLogEventList",
"PaginatedCandidateList",
"PaginatedConditionSchemaList",
"PaginatedDepartmentList",
"PaginatedEeocList",
"PaginatedIssueList",
@@ -461,6 +443,7 @@
"RemoteData",
"RemoteEndpointInfo",
"RemoteFieldApi",
"RemoteFieldApiCoverage",
"RemoteFieldApiResponse",
"RemoteKey",
"RemoteResponse",
@@ -539,7 +522,6 @@
"reject_reasons",
"scopes",
"scorecards",
"selective_sync",
"sync_status",
"tags",
"users",
3 changes: 0 additions & 3 deletions src/merge/resources/ats/client.py
Original file line number Diff line number Diff line change
@@ -36,7 +36,6 @@
from .resources.reject_reasons.client import AsyncRejectReasonsClient, RejectReasonsClient
from .resources.scopes.client import AsyncScopesClient, ScopesClient
from .resources.scorecards.client import AsyncScorecardsClient, ScorecardsClient
from .resources.selective_sync.client import AsyncSelectiveSyncClient, SelectiveSyncClient
from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient
from .resources.tags.client import AsyncTagsClient, TagsClient
from .resources.users.client import AsyncUsersClient, UsersClient
@@ -76,7 +75,6 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
self.regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper)
self.reject_reasons = RejectReasonsClient(client_wrapper=self._client_wrapper)
self.scorecards = ScorecardsClient(client_wrapper=self._client_wrapper)
self.selective_sync = SelectiveSyncClient(client_wrapper=self._client_wrapper)
self.sync_status = SyncStatusClient(client_wrapper=self._client_wrapper)
self.force_resync = ForceResyncClient(client_wrapper=self._client_wrapper)
self.tags = TagsClient(client_wrapper=self._client_wrapper)
@@ -117,7 +115,6 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
self.regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper)
self.reject_reasons = AsyncRejectReasonsClient(client_wrapper=self._client_wrapper)
self.scorecards = AsyncScorecardsClient(client_wrapper=self._client_wrapper)
self.selective_sync = AsyncSelectiveSyncClient(client_wrapper=self._client_wrapper)
self.sync_status = AsyncSyncStatusClient(client_wrapper=self._client_wrapper)
self.force_resync = AsyncForceResyncClient(client_wrapper=self._client_wrapper)
self.tags = AsyncTagsClient(client_wrapper=self._client_wrapper)
2 changes: 0 additions & 2 deletions src/merge/resources/ats/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@
reject_reasons,
scopes,
scorecards,
selective_sync,
sync_status,
tags,
users,
@@ -118,7 +117,6 @@
"reject_reasons",
"scopes",
"scorecards",
"selective_sync",
"sync_status",
"tags",
"users",
4 changes: 2 additions & 2 deletions src/merge/resources/ats/resources/audit_trail/client.py
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ def list(
- end_date: typing.Optional[str]. If included, will only include audit trail events that occurred before this time
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`
- page_size: typing.Optional[int]. Number of results to return per page.
@@ -122,7 +122,7 @@ async def list(
- end_date: typing.Optional[str]. If included, will only include audit trail events that occurred before this time
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`
- event_type: typing.Optional[str]. If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`
- page_size: typing.Optional[int]. Number of results to return per page.
2 changes: 0 additions & 2 deletions src/merge/resources/ats/resources/candidates/client.py
Original file line number Diff line number Diff line change
@@ -397,7 +397,6 @@ def ignore_create(
client.ats.candidates.ignore_create(
model_id="model_id",
reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST,
message="deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39",
)
"""
_request: typing.Dict[str, typing.Any] = {"reason": reason.value}
@@ -889,7 +888,6 @@ async def ignore_create(
await client.ats.candidates.ignore_create(
model_id="model_id",
reason=ReasonEnum.GENERAL_CUSTOMER_REQUEST,
message="deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39",
)
"""
_request: typing.Dict[str, typing.Any] = {"reason": reason.value}
4 changes: 0 additions & 4 deletions src/merge/resources/ats/resources/field_mapping/client.py
Original file line number Diff line number Diff line change
@@ -244,8 +244,6 @@ def field_mappings_partial_update(
)
client.ats.field_mapping.field_mappings_partial_update(
field_mapping_id="field_mapping_id",
remote_method="GET",
remote_url_path="/example-url-path",
)
"""
_request: typing.Dict[str, typing.Any] = {}
@@ -615,8 +613,6 @@ async def field_mappings_partial_update(
)
await client.ats.field_mapping.field_mappings_partial_update(
field_mapping_id="field_mapping_id",
remote_method="GET",
remote_url_path="/example-url-path",
)
"""
_request: typing.Dict[str, typing.Any] = {}
16 changes: 16 additions & 0 deletions src/merge/resources/ats/resources/job_postings/client.py
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ def list(
created_after: typing.Optional[dt.datetime] = None,
created_before: typing.Optional[dt.datetime] = None,
cursor: typing.Optional[str] = None,
expand: typing.Optional[typing.Literal["job"]] = None,
include_deleted_data: typing.Optional[bool] = None,
include_remote_data: typing.Optional[bool] = None,
modified_after: typing.Optional[dt.datetime] = None,
@@ -50,6 +51,8 @@ def list(
- cursor: typing.Optional[str]. The pagination cursor value.
- expand: typing.Optional[typing.Literal["job"]]. Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
- include_deleted_data: typing.Optional[bool]. Whether to include data that was marked as deleted by third party webhooks.
- include_remote_data: typing.Optional[bool]. Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -88,6 +91,7 @@ def list(
"created_after": serialize_datetime(created_after) if created_after is not None else None,
"created_before": serialize_datetime(created_before) if created_before is not None else None,
"cursor": cursor,
"expand": expand,
"include_deleted_data": include_deleted_data,
"include_remote_data": include_remote_data,
"modified_after": serialize_datetime(modified_after) if modified_after is not None else None,
@@ -127,6 +131,7 @@ def retrieve(
self,
id: str,
*,
expand: typing.Optional[typing.Literal["job"]] = None,
include_remote_data: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> JobPosting:
@@ -136,6 +141,8 @@ def retrieve(
Parameters:
- id: str.
- expand: typing.Optional[typing.Literal["job"]]. Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
- include_remote_data: typing.Optional[bool]. Whether to include the original data Merge fetched from the third-party to produce these models.
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
@@ -156,6 +163,7 @@ def retrieve(
params=jsonable_encoder(
remove_none_from_dict(
{
"expand": expand,
"include_remote_data": include_remote_data,
**(
request_options.get("additional_query_parameters", {})
@@ -196,6 +204,7 @@ async def list(
created_after: typing.Optional[dt.datetime] = None,
created_before: typing.Optional[dt.datetime] = None,
cursor: typing.Optional[str] = None,
expand: typing.Optional[typing.Literal["job"]] = None,
include_deleted_data: typing.Optional[bool] = None,
include_remote_data: typing.Optional[bool] = None,
modified_after: typing.Optional[dt.datetime] = None,
@@ -215,6 +224,8 @@ async def list(
- cursor: typing.Optional[str]. The pagination cursor value.
- expand: typing.Optional[typing.Literal["job"]]. Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
- include_deleted_data: typing.Optional[bool]. Whether to include data that was marked as deleted by third party webhooks.
- include_remote_data: typing.Optional[bool]. Whether to include the original data Merge fetched from the third-party to produce these models.
@@ -253,6 +264,7 @@ async def list(
"created_after": serialize_datetime(created_after) if created_after is not None else None,
"created_before": serialize_datetime(created_before) if created_before is not None else None,
"cursor": cursor,
"expand": expand,
"include_deleted_data": include_deleted_data,
"include_remote_data": include_remote_data,
"modified_after": serialize_datetime(modified_after) if modified_after is not None else None,
@@ -292,6 +304,7 @@ async def retrieve(
self,
id: str,
*,
expand: typing.Optional[typing.Literal["job"]] = None,
include_remote_data: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> JobPosting:
@@ -301,6 +314,8 @@ async def retrieve(
Parameters:
- id: str.
- expand: typing.Optional[typing.Literal["job"]]. Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
- include_remote_data: typing.Optional[bool]. Whether to include the original data Merge fetched from the third-party to produce these models.
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
@@ -321,6 +336,7 @@ async def retrieve(
params=jsonable_encoder(
remove_none_from_dict(
{
"expand": expand,
"include_remote_data": include_remote_data,
**(
request_options.get("additional_query_parameters", {})
10 changes: 10 additions & 0 deletions src/merge/resources/ats/resources/link_token/client.py
Original file line number Diff line number Diff line change
@@ -42,6 +42,7 @@ def create(
typing.Dict[str, typing.Optional[typing.List[IndividualCommonModelScopeDeserializerRequest]]]
] = OMIT,
language: typing.Optional[str] = OMIT,
integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> LinkToken:
"""
@@ -68,6 +69,8 @@ def create(
- language: typing.Optional[str]. The language code for the language to localize Merge Link to.
- integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]]. A JSON object containing integration-specific configuration options.
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
---
from merge.client import Merge
@@ -102,6 +105,8 @@ def create(
_request["category_common_model_scopes"] = category_common_model_scopes
if language is not OMIT:
_request["language"] = language
if integration_specific_config is not OMIT:
_request["integration_specific_config"] = integration_specific_config
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "ats/v1/link-token"),
@@ -154,6 +159,7 @@ async def create(
typing.Dict[str, typing.Optional[typing.List[IndividualCommonModelScopeDeserializerRequest]]]
] = OMIT,
language: typing.Optional[str] = OMIT,
integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> LinkToken:
"""
@@ -180,6 +186,8 @@ async def create(
- language: typing.Optional[str]. The language code for the language to localize Merge Link to.
- integration_specific_config: typing.Optional[typing.Dict[str, typing.Any]]. A JSON object containing integration-specific configuration options.
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
---
from merge.client import AsyncMerge
@@ -214,6 +222,8 @@ async def create(
_request["category_common_model_scopes"] = category_common_model_scopes
if language is not OMIT:
_request["language"] = language
if integration_specific_config is not OMIT:
_request["integration_specific_config"] = integration_specific_config
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "ats/v1/link-token"),
370 changes: 0 additions & 370 deletions src/merge/resources/ats/resources/selective_sync/client.py

This file was deleted.

20 changes: 2 additions & 18 deletions src/merge/resources/ats/types/__init__.py
Original file line number Diff line number Diff line change
@@ -55,9 +55,6 @@
from .category_enum import CategoryEnum
from .common_model_scope_api import CommonModelScopeApi
from .common_model_scopes_body_request import CommonModelScopesBodyRequest
from .condition_schema import ConditionSchema
from .condition_schema_condition_type import ConditionSchemaConditionType
from .condition_type_enum import ConditionTypeEnum
from .data_passthrough_request import DataPassthroughRequest
from .debug_mode_log import DebugModeLog
from .debug_model_log_summary import DebugModelLogSummary
@@ -111,10 +108,6 @@
from .job_status_enum import JobStatusEnum
from .job_type_enum import JobTypeEnum
from .link_token import LinkToken
from .linked_account_condition import LinkedAccountCondition
from .linked_account_condition_request import LinkedAccountConditionRequest
from .linked_account_selective_sync_configuration import LinkedAccountSelectiveSyncConfiguration
from .linked_account_selective_sync_configuration_request import LinkedAccountSelectiveSyncConfigurationRequest
from .linked_account_status import LinkedAccountStatus
from .meta_response import MetaResponse
from .method_enum import MethodEnum
@@ -129,15 +122,13 @@
from .offer_status import OfferStatus
from .offer_status_enum import OfferStatusEnum
from .office import Office
from .operator_schema import OperatorSchema
from .overall_recommendation_enum import OverallRecommendationEnum
from .paginated_account_details_and_actions_list import PaginatedAccountDetailsAndActionsList
from .paginated_activity_list import PaginatedActivityList
from .paginated_application_list import PaginatedApplicationList
from .paginated_attachment_list import PaginatedAttachmentList
from .paginated_audit_log_event_list import PaginatedAuditLogEventList
from .paginated_candidate_list import PaginatedCandidateList
from .paginated_condition_schema_list import PaginatedConditionSchemaList
from .paginated_department_list import PaginatedDepartmentList
from .paginated_eeoc_list import PaginatedEeocList
from .paginated_issue_list import PaginatedIssueList
@@ -165,6 +156,7 @@
from .remote_data import RemoteData
from .remote_endpoint_info import RemoteEndpointInfo
from .remote_field_api import RemoteFieldApi
from .remote_field_api_coverage import RemoteFieldApiCoverage
from .remote_field_api_response import RemoteFieldApiResponse
from .remote_key import RemoteKey
from .remote_response import RemoteResponse
@@ -269,9 +261,6 @@
"CategoryEnum",
"CommonModelScopeApi",
"CommonModelScopesBodyRequest",
"ConditionSchema",
"ConditionSchemaConditionType",
"ConditionTypeEnum",
"DataPassthroughRequest",
"DebugModeLog",
"DebugModelLogSummary",
@@ -323,10 +312,6 @@
"JobStatusEnum",
"JobTypeEnum",
"LinkToken",
"LinkedAccountCondition",
"LinkedAccountConditionRequest",
"LinkedAccountSelectiveSyncConfiguration",
"LinkedAccountSelectiveSyncConfigurationRequest",
"LinkedAccountStatus",
"MetaResponse",
"MethodEnum",
@@ -341,15 +326,13 @@
"OfferStatus",
"OfferStatusEnum",
"Office",
"OperatorSchema",
"OverallRecommendationEnum",
"PaginatedAccountDetailsAndActionsList",
"PaginatedActivityList",
"PaginatedApplicationList",
"PaginatedAttachmentList",
"PaginatedAuditLogEventList",
"PaginatedCandidateList",
"PaginatedConditionSchemaList",
"PaginatedDepartmentList",
"PaginatedEeocList",
"PaginatedIssueList",
@@ -377,6 +360,7 @@
"RemoteData",
"RemoteEndpointInfo",
"RemoteFieldApi",
"RemoteFieldApiCoverage",
"RemoteFieldApiResponse",
"RemoteKey",
"RemoteResponse",
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/activity.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class Activity(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
user: typing.Optional[ActivityUser] = pydantic.Field(description="The user that performed the action.")
remote_created_at: typing.Optional[dt.datetime] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/application.py
Original file line number Diff line number Diff line change
@@ -33,9 +33,11 @@ class Application(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
candidate: typing.Optional[ApplicationCandidate] = pydantic.Field(description="The candidate applying.")
job: typing.Optional[ApplicationJob] = pydantic.Field(description="The job being applied for.")
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/attachment.py
Original file line number Diff line number Diff line change
@@ -28,9 +28,11 @@ class Attachment(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
file_name: typing.Optional[str] = pydantic.Field(description="The attachment's name.")
file_url: typing.Optional[str] = pydantic.Field(description="The attachment's url.")
3 changes: 3 additions & 0 deletions src/merge/resources/ats/types/audit_log_event.py
Original file line number Diff line number Diff line change
@@ -72,6 +72,9 @@ class AuditLogEvent(pydantic.BaseModel):
"- `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC\n"
"- `MUTED_ISSUE` - MUTED_ISSUE\n"
"- `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK\n"
"- `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK\n"
"- `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK\n"
"- `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED\n"
)
)
event_description: str
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/candidate.py
Original file line number Diff line number Diff line change
@@ -33,9 +33,11 @@ class Candidate(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
first_name: typing.Optional[str] = pydantic.Field(description="The candidate's first name.")
last_name: typing.Optional[str] = pydantic.Field(description="The candidate's last name.")
56 changes: 0 additions & 56 deletions src/merge/resources/ats/types/condition_schema.py

This file was deleted.

This file was deleted.

51 changes: 0 additions & 51 deletions src/merge/resources/ats/types/condition_type_enum.py

This file was deleted.

6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/department.py
Original file line number Diff line number Diff line change
@@ -27,9 +27,11 @@ class Department(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The department's name.")
remote_was_deleted: typing.Optional[bool] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/eeoc.py
Original file line number Diff line number Diff line change
@@ -32,9 +32,11 @@ class Eeoc(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
candidate: typing.Optional[EeocCandidate] = pydantic.Field(description="The candidate being represented.")
submitted_at: typing.Optional[dt.datetime] = pydantic.Field(description="When the information was submitted.")
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/email_address.py
Original file line number Diff line number Diff line change
@@ -25,9 +25,11 @@ class EmailAddress(pydantic.BaseModel):
Fetch from the `GET Candidate` endpoint and view their email addresses.
"""

created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
value: typing.Optional[str] = pydantic.Field(description="The email address.")
email_address_type: typing.Optional[EmailAddressEmailAddressType] = pydantic.Field(
15 changes: 15 additions & 0 deletions src/merge/resources/ats/types/event_type_enum.py
Original file line number Diff line number Diff line change
@@ -42,6 +42,9 @@ class EventTypeEnum(str, enum.Enum):
- `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC
- `MUTED_ISSUE` - MUTED_ISSUE
- `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK
- `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
- `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
- `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
"""

CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY"
@@ -78,6 +81,9 @@ class EventTypeEnum(str, enum.Enum):
FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC"
MUTED_ISSUE = "MUTED_ISSUE"
GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK"
ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK"
DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK"
MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED"

def visit(
self,
@@ -115,6 +121,9 @@ def visit(
forced_linked_account_resync: typing.Callable[[], T_Result],
muted_issue: typing.Callable[[], T_Result],
generated_magic_link: typing.Callable[[], T_Result],
enabled_merge_webhook: typing.Callable[[], T_Result],
disabled_merge_webhook: typing.Callable[[], T_Result],
merge_webhook_target_changed: typing.Callable[[], T_Result],
) -> T_Result:
if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY:
return created_remote_production_api_key()
@@ -184,3 +193,9 @@ def visit(
return muted_issue()
if self is EventTypeEnum.GENERATED_MAGIC_LINK:
return generated_magic_link()
if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK:
return enabled_merge_webhook()
if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK:
return disabled_merge_webhook()
if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED:
return merge_webhook_target_changed()
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/job.py
Original file line number Diff line number Diff line change
@@ -34,9 +34,11 @@ class Job(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The job's name.")
description: typing.Optional[str] = pydantic.Field(description="The job's description.")
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/job_interview_stage.py
Original file line number Diff line number Diff line change
@@ -28,9 +28,11 @@ class JobInterviewStage(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(
description="Standard stage names are offered by ATS systems but can be modified by users."
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/job_posting.py
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ class JobPosting(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
title: typing.Optional[str] = pydantic.Field(description="The job posting’s title.")
job_posting_urls: typing.Optional[typing.List[JobPostingJobPostingUrlsItem]] = pydantic.Field(
35 changes: 0 additions & 35 deletions src/merge/resources/ats/types/linked_account_condition.py

This file was deleted.

33 changes: 0 additions & 33 deletions src/merge/resources/ats/types/linked_account_condition_request.py

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/offer.py
Original file line number Diff line number Diff line change
@@ -31,9 +31,11 @@ class Offer(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
application: typing.Optional[OfferApplication] = pydantic.Field(
description="The application who is receiving the offer."
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/office.py
Original file line number Diff line number Diff line change
@@ -27,9 +27,11 @@ class Office(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The office's name.")
location: typing.Optional[str] = pydantic.Field(description="The office's location.")
31 changes: 0 additions & 31 deletions src/merge/resources/ats/types/operator_schema.py

This file was deleted.

31 changes: 0 additions & 31 deletions src/merge/resources/ats/types/paginated_condition_schema_list.py

This file was deleted.

6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/phone_number.py
Original file line number Diff line number Diff line change
@@ -25,9 +25,11 @@ class PhoneNumber(pydantic.BaseModel):
Fetch from the `GET Candidate` endpoint and view their phone numbers.
"""

created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
value: typing.Optional[str] = pydantic.Field(description="The phone number.")
phone_number_type: typing.Optional[PhoneNumberPhoneNumberType] = pydantic.Field(
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/reject_reason.py
Original file line number Diff line number Diff line change
@@ -27,9 +27,11 @@ class RejectReason(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
name: typing.Optional[str] = pydantic.Field(description="The rejection reason’s name.")
remote_was_deleted: typing.Optional[bool] = pydantic.Field(
2 changes: 2 additions & 0 deletions src/merge/resources/ats/types/remote_field_api.py
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
from ....core.datetime_utils import serialize_datetime
from .advanced_metadata import AdvancedMetadata
from .remote_endpoint_info import RemoteEndpointInfo
from .remote_field_api_coverage import RemoteFieldApiCoverage

try:
import pydantic.v1 as pydantic # type: ignore
@@ -19,6 +20,7 @@ class RemoteFieldApi(pydantic.BaseModel):
remote_endpoint_info: RemoteEndpointInfo
example_values: typing.List[typing.Any]
advanced_metadata: typing.Optional[AdvancedMetadata]
coverage: typing.Optional[RemoteFieldApiCoverage]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

RemoteFieldApiCoverage = typing.Union[int, float]
6 changes: 4 additions & 2 deletions src/merge/resources/ats/types/remote_user.py
Original file line number Diff line number Diff line change
@@ -28,9 +28,11 @@ class RemoteUser(pydantic.BaseModel):

id: typing.Optional[str]
remote_id: typing.Optional[str] = pydantic.Field(description="The third-party API ID of the matching object.")
created_at: typing.Optional[dt.datetime]
created_at: typing.Optional[dt.datetime] = pydantic.Field(
description="The datetime that this object was created by Merge."
)
modified_at: typing.Optional[dt.datetime] = pydantic.Field(
description="This is the datetime that this object was last updated by Merge"
description="The datetime that this object was modified by Merge."
)
first_name: typing.Optional[str] = pydantic.Field(description="The user's first name.")
last_name: typing.Optional[str] = pydantic.Field(description="The user's last name.")
Loading

0 comments on commit cce82ff

Please sign in to comment.