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>
  • Loading branch information
fern-api[bot] authored May 22, 2024
1 parent d021dd3 commit cce82ff
Show file tree
Hide file tree
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 = []
Expand Down
4 changes: 2 additions & 2 deletions src/merge/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand All @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion src/merge/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 10 additions & 20 deletions src/merge/resources/accounting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
CommonModelScopesBodyRequest,
CompanyInfo,
CompanyInfoCurrency,
ConditionSchema,
ConditionSchemaConditionType,
ConditionTypeEnum,
Contact,
ContactAddressesItem,
ContactRequest,
Expand Down Expand Up @@ -197,10 +194,6 @@
JournalLineTrackingCategoriesItem,
JournalLineTrackingCategory,
LinkToken,
LinkedAccountCondition,
LinkedAccountConditionRequest,
LinkedAccountSelectiveSyncConfiguration,
LinkedAccountSelectiveSyncConfigurationRequest,
LinkedAccountStatus,
MetaResponse,
MethodEnum,
Expand All @@ -209,7 +202,6 @@
ModelPermissionDeserializerRequest,
MultipartFormFieldRequest,
MultipartFormFieldRequestEncoding,
OperatorSchema,
PaginatedAccountDetailsAndActionsList,
PaginatedAccountList,
PaginatedAccountingAttachmentList,
Expand All @@ -218,7 +210,6 @@
PaginatedBalanceSheetList,
PaginatedCashFlowStatementList,
PaginatedCompanyInfoList,
PaginatedConditionSchemaList,
PaginatedContactList,
PaginatedCreditNoteList,
PaginatedExpenseList,
Expand All @@ -242,6 +233,7 @@
PatchedPaymentRequestContact,
PatchedPaymentRequestCurrency,
PatchedPaymentRequestTrackingCategoriesItem,
PatchedPaymentRequestType,
Payment,
PaymentAccount,
PaymentAccountingPeriod,
Expand All @@ -259,8 +251,11 @@
PaymentRequestContact,
PaymentRequestCurrency,
PaymentRequestTrackingCategoriesItem,
PaymentRequestType,
PaymentResponse,
PaymentTrackingCategoriesItem,
PaymentType,
PaymentTypeEnum,
PostingStatusEnum,
PurchaseOrder,
PurchaseOrderAccountingPeriod,
Expand Down Expand Up @@ -288,6 +283,7 @@
RemoteData,
RemoteEndpointInfo,
RemoteFieldApi,
RemoteFieldApiCoverage,
RemoteFieldApiResponse,
RemoteKey,
RemoteResponse,
Expand Down Expand Up @@ -392,7 +388,6 @@
purchase_orders,
regenerate_key,
scopes,
selective_sync,
sync_status,
tax_rates,
tracking_categories,
Expand Down Expand Up @@ -459,9 +454,6 @@
"CompanyInfoCurrency",
"CompanyInfoListRequestExpand",
"CompanyInfoRetrieveRequestExpand",
"ConditionSchema",
"ConditionSchemaConditionType",
"ConditionTypeEnum",
"Contact",
"ContactAddressesItem",
"ContactRequest",
Expand Down Expand Up @@ -622,10 +614,6 @@
"JournalLineTrackingCategoriesItem",
"JournalLineTrackingCategory",
"LinkToken",
"LinkedAccountCondition",
"LinkedAccountConditionRequest",
"LinkedAccountSelectiveSyncConfiguration",
"LinkedAccountSelectiveSyncConfigurationRequest",
"LinkedAccountStatus",
"LinkedAccountsListRequestCategory",
"MetaResponse",
Expand All @@ -635,7 +623,6 @@
"ModelPermissionDeserializerRequest",
"MultipartFormFieldRequest",
"MultipartFormFieldRequestEncoding",
"OperatorSchema",
"PaginatedAccountDetailsAndActionsList",
"PaginatedAccountList",
"PaginatedAccountingAttachmentList",
Expand All @@ -644,7 +631,6 @@
"PaginatedBalanceSheetList",
"PaginatedCashFlowStatementList",
"PaginatedCompanyInfoList",
"PaginatedConditionSchemaList",
"PaginatedContactList",
"PaginatedCreditNoteList",
"PaginatedExpenseList",
Expand All @@ -668,6 +654,7 @@
"PatchedPaymentRequestContact",
"PatchedPaymentRequestCurrency",
"PatchedPaymentRequestTrackingCategoriesItem",
"PatchedPaymentRequestType",
"Payment",
"PaymentAccount",
"PaymentAccountingPeriod",
Expand All @@ -685,8 +672,11 @@
"PaymentRequestContact",
"PaymentRequestCurrency",
"PaymentRequestTrackingCategoriesItem",
"PaymentRequestType",
"PaymentResponse",
"PaymentTrackingCategoriesItem",
"PaymentType",
"PaymentTypeEnum",
"PaymentsListRequestExpand",
"PaymentsRetrieveRequestExpand",
"PostingStatusEnum",
Expand Down Expand Up @@ -718,6 +708,7 @@
"RemoteData",
"RemoteEndpointInfo",
"RemoteFieldApi",
"RemoteFieldApiCoverage",
"RemoteFieldApiResponse",
"RemoteKey",
"RemoteResponse",
Expand Down Expand Up @@ -791,7 +782,6 @@
"purchase_orders",
"regenerate_key",
"scopes",
"selective_sync",
"sync_status",
"tax_rates",
"tracking_categories",
Expand Down
3 changes: 0 additions & 3 deletions src/merge/resources/accounting/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions src/merge/resources/accounting/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
purchase_orders,
regenerate_key,
scopes,
selective_sync,
sync_status,
tax_rates,
tracking_categories,
Expand Down Expand Up @@ -134,7 +133,6 @@
"purchase_orders",
"regenerate_key",
"scopes",
"selective_sync",
"sync_status",
"tax_rates",
"tracking_categories",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {}
Expand Down Expand Up @@ -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] = {}
Expand Down
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
Expand Up @@ -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:
"""
Expand All @@ -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
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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:
"""
Expand All @@ -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
Expand Down Expand Up @@ -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"),
Expand Down
Loading

0 comments on commit cce82ff

Please sign in to comment.