From e9ed5ab664ac792ee217d753ceb3cf75475e5e27 Mon Sep 17 00:00:00 2001
From: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Date: Wed, 22 May 2024 15:52:52 +0000
Subject: [PATCH] SDK regeneration
---
src/Merge.Client.sln | 20 ++--
.../Accounting/AccountingClient.cs | 3 -
.../requests/AuditTrailListRequest.cs | 2 +-
.../requests/EndUserDetailsRequest.cs | 5 +
.../SelectiveSync/SelectiveSyncClient.cs | 98 -------------------
...ntSelectiveSyncConfigurationListRequest.cs | 11 ---
.../requests/SelectiveSyncMetaListRequest.cs | 16 ---
src/Merge.Client/Accounting/Types/Account.cs | 5 +-
.../Accounting/Types/AccountingAttachment.cs | 5 +-
.../Accounting/Types/AccountingPeriod.cs | 5 +-
.../Accounting/Types/AccountingPhoneNumber.cs | 5 +-
src/Merge.Client/Accounting/Types/Address.cs | 5 +-
.../Accounting/Types/AuditLogEvent.cs | 3 +
.../Accounting/Types/BalanceSheet.cs | 5 +-
.../Accounting/Types/CashFlowStatement.cs | 5 +-
.../Accounting/Types/CompanyInfo.cs | 5 +-
.../Accounting/Types/ConditionSchema.cs | 51 ----------
.../Accounting/Types/ConditionTypeEnum.cs | 27 -----
src/Merge.Client/Accounting/Types/Contact.cs | 5 +-
.../Accounting/Types/CreditNote.cs | 5 +-
.../Accounting/Types/CreditNoteLineItem.cs | 11 +--
.../Accounting/Types/EventTypeEnum.cs | 11 ++-
src/Merge.Client/Accounting/Types/Expense.cs | 5 +-
.../Accounting/Types/ExpenseLine.cs | 5 +-
.../Accounting/Types/IncomeStatement.cs | 5 +-
src/Merge.Client/Accounting/Types/Invoice.cs | 5 +-
.../Accounting/Types/InvoiceLineItem.cs | 5 +-
src/Merge.Client/Accounting/Types/Item.cs | 5 +-
.../Accounting/Types/JournalEntry.cs | 5 +-
.../Accounting/Types/JournalLine.cs | 5 +-
.../Types/LinkedAccountCondition.cs | 33 -------
.../Types/LinkedAccountConditionRequest.cs | 27 -----
...LinkedAccountSelectiveSyncConfiguration.cs | 13 ---
...ccountSelectiveSyncConfigurationRequest.cs | 13 ---
.../Accounting/Types/OperatorSchema.cs | 18 ----
.../Types/PaginatedConditionSchemaList.cs | 16 ---
.../Accounting/Types/PatchedPaymentRequest.cs | 9 ++
src/Merge.Client/Accounting/Types/Payment.cs | 14 ++-
.../Accounting/Types/PaymentLineItem.cs | 5 +-
.../Accounting/Types/PaymentRequest.cs | 9 ++
.../Accounting/Types/PaymentTypeEnum.cs | 12 +++
.../Accounting/Types/PurchaseOrder.cs | 5 +-
.../Accounting/Types/PurchaseOrderLineItem.cs | 5 +-
.../Accounting/Types/RemoteFieldApi.cs | 4 +
.../Accounting/Types/ReportItem.cs | 5 +-
src/Merge.Client/Accounting/Types/TaxRate.cs | 11 ++-
.../Accounting/Types/TrackingCategory.cs | 5 +-
.../Accounting/Types/Transaction.cs | 5 +-
.../Accounting/Types/TransactionLineItem.cs | 8 +-
.../Accounting/Types/VendorCredit.cs | 5 +-
.../Accounting/Types/VendorCreditLine.cs | 5 +-
src/Merge.Client/Ats/AtsClient.cs | 3 -
.../requests/AuditTrailListRequest.cs | 2 +-
.../Ats/JobPostings/JobPostingsClient.cs | 8 ++
.../requests/JobPostingsListRequest.cs | 5 +
.../requests/JobPostingsRetrieveRequest.cs | 5 +
.../requests/EndUserDetailsRequest.cs | 5 +
.../Ats/SelectiveSync/SelectiveSyncClient.cs | 98 -------------------
...ntSelectiveSyncConfigurationListRequest.cs | 11 ---
.../requests/SelectiveSyncMetaListRequest.cs | 16 ---
src/Merge.Client/Ats/Types/Activity.cs | 5 +-
src/Merge.Client/Ats/Types/Application.cs | 5 +-
src/Merge.Client/Ats/Types/Attachment.cs | 5 +-
src/Merge.Client/Ats/Types/AuditLogEvent.cs | 3 +
src/Merge.Client/Ats/Types/Candidate.cs | 5 +-
src/Merge.Client/Ats/Types/ConditionSchema.cs | 51 ----------
.../Ats/Types/ConditionTypeEnum.cs | 27 -----
src/Merge.Client/Ats/Types/Department.cs | 5 +-
src/Merge.Client/Ats/Types/Eeoc.cs | 5 +-
src/Merge.Client/Ats/Types/EmailAddress.cs | 5 +-
src/Merge.Client/Ats/Types/EventTypeEnum.cs | 11 ++-
src/Merge.Client/Ats/Types/Job.cs | 5 +-
.../Ats/Types/JobInterviewStage.cs | 5 +-
src/Merge.Client/Ats/Types/JobPosting.cs | 5 +-
.../Ats/Types/LinkedAccountCondition.cs | 33 -------
.../Types/LinkedAccountConditionRequest.cs | 27 -----
...LinkedAccountSelectiveSyncConfiguration.cs | 13 ---
...ccountSelectiveSyncConfigurationRequest.cs | 13 ---
src/Merge.Client/Ats/Types/Offer.cs | 5 +-
src/Merge.Client/Ats/Types/Office.cs | 5 +-
src/Merge.Client/Ats/Types/OperatorSchema.cs | 18 ----
.../Ats/Types/PaginatedConditionSchemaList.cs | 16 ---
src/Merge.Client/Ats/Types/PhoneNumber.cs | 5 +-
src/Merge.Client/Ats/Types/RejectReason.cs | 5 +-
src/Merge.Client/Ats/Types/RemoteFieldApi.cs | 4 +
src/Merge.Client/Ats/Types/RemoteUser.cs | 5 +-
.../Ats/Types/ScheduledInterview.cs | 5 +-
src/Merge.Client/Ats/Types/Scorecard.cs | 5 +-
.../Ats/Types/ScreeningQuestion.cs | 5 +-
.../Ats/Types/ScreeningQuestionOption.cs | 5 +-
src/Merge.Client/Ats/Types/Tag.cs | 5 +-
src/Merge.Client/Ats/Types/Url.cs | 5 +-
src/Merge.Client/Core/ClientOptions.cs | 4 +-
src/Merge.Client/Core/Environments.cs | 10 ++
src/Merge.Client/Core/RawClient.cs | 2 +-
.../requests/AuditTrailListRequest.cs | 2 +-
src/Merge.Client/Crm/CrmClient.cs | 3 -
.../requests/EndUserDetailsRequest.cs | 5 +
.../Crm/SelectiveSync/SelectiveSyncClient.cs | 98 -------------------
...ntSelectiveSyncConfigurationListRequest.cs | 11 ---
.../requests/SelectiveSyncMetaListRequest.cs | 16 ---
src/Merge.Client/Crm/Types/Account.cs | 5 +-
src/Merge.Client/Crm/Types/AccountRequest.cs | 3 +
src/Merge.Client/Crm/Types/Address.cs | 5 +-
src/Merge.Client/Crm/Types/Association.cs | 8 +-
.../Crm/Types/AssociationSubType.cs | 5 +-
src/Merge.Client/Crm/Types/AssociationType.cs | 8 +-
src/Merge.Client/Crm/Types/AuditLogEvent.cs | 3 +
src/Merge.Client/Crm/Types/ConditionSchema.cs | 51 ----------
.../Crm/Types/ConditionTypeEnum.cs | 27 -----
src/Merge.Client/Crm/Types/Contact.cs | 5 +-
src/Merge.Client/Crm/Types/CustomObject.cs | 11 ++-
.../Crm/Types/CustomObjectClass.cs | 12 +++
src/Merge.Client/Crm/Types/EmailAddress.cs | 5 +-
src/Merge.Client/Crm/Types/Engagement.cs | 5 +-
src/Merge.Client/Crm/Types/EngagementType.cs | 5 +-
src/Merge.Client/Crm/Types/EventTypeEnum.cs | 11 ++-
src/Merge.Client/Crm/Types/Lead.cs | 5 +-
.../Crm/Types/LinkedAccountCondition.cs | 33 -------
.../Types/LinkedAccountConditionRequest.cs | 27 -----
...LinkedAccountSelectiveSyncConfiguration.cs | 13 ---
...ccountSelectiveSyncConfigurationRequest.cs | 13 ---
src/Merge.Client/Crm/Types/Note.cs | 5 +-
src/Merge.Client/Crm/Types/OperatorSchema.cs | 18 ----
src/Merge.Client/Crm/Types/Opportunity.cs | 5 +-
.../Crm/Types/PaginatedConditionSchemaList.cs | 16 ---
.../Crm/Types/PatchedAccountRequest.cs | 3 +
src/Merge.Client/Crm/Types/PhoneNumber.cs | 5 +-
src/Merge.Client/Crm/Types/RemoteFieldApi.cs | 4 +
.../RemoteFieldClassForCustomObjectClass.cs | 5 +-
src/Merge.Client/Crm/Types/Stage.cs | 5 +-
src/Merge.Client/Crm/Types/Task.cs | 5 +-
src/Merge.Client/Crm/Types/User.cs | 5 +-
.../requests/AuditTrailListRequest.cs | 2 +-
.../Filestorage/FilestorageClient.cs | 3 -
.../requests/EndUserDetailsRequest.cs | 5 +
.../SelectiveSync/SelectiveSyncClient.cs | 98 -------------------
...ntSelectiveSyncConfigurationListRequest.cs | 11 ---
.../requests/SelectiveSyncMetaListRequest.cs | 16 ---
.../Filestorage/Types/AuditLogEvent.cs | 3 +
.../Filestorage/Types/ConditionSchema.cs | 51 ----------
.../Filestorage/Types/ConditionTypeEnum.cs | 27 -----
src/Merge.Client/Filestorage/Types/Drive.cs | 5 +-
.../Filestorage/Types/EventTypeEnum.cs | 11 ++-
src/Merge.Client/Filestorage/Types/File.cs | 5 +-
src/Merge.Client/Filestorage/Types/Folder.cs | 5 +-
src/Merge.Client/Filestorage/Types/Group.cs | 5 +-
.../Types/LinkedAccountCondition.cs | 33 -------
.../Types/LinkedAccountConditionRequest.cs | 27 -----
...LinkedAccountSelectiveSyncConfiguration.cs | 13 ---
...ccountSelectiveSyncConfigurationRequest.cs | 13 ---
.../Filestorage/Types/OperatorSchema.cs | 18 ----
.../Types/PaginatedConditionSchemaList.cs | 16 ---
.../Filestorage/Types/Permission.cs | 5 +-
.../Filestorage/Types/RemoteFieldApi.cs | 4 +
src/Merge.Client/Filestorage/Types/User.cs | 5 +-
.../requests/AuditTrailListRequest.cs | 2 +-
src/Merge.Client/Hris/Groups/GroupsClient.cs | 4 +
.../Hris/Groups/requests/GroupsListRequest.cs | 5 +
src/Merge.Client/Hris/HrisClient.cs | 3 -
.../requests/EndUserDetailsRequest.cs | 5 +
.../Hris/SelectiveSync/SelectiveSyncClient.cs | 98 -------------------
...ntSelectiveSyncConfigurationListRequest.cs | 11 ---
.../requests/SelectiveSyncMetaListRequest.cs | 16 ---
src/Merge.Client/Hris/Types/AuditLogEvent.cs | 3 +
src/Merge.Client/Hris/Types/BankInfo.cs | 5 +-
src/Merge.Client/Hris/Types/Benefit.cs | 5 +-
src/Merge.Client/Hris/Types/Company.cs | 5 +-
.../Hris/Types/ConditionSchema.cs | 51 ----------
.../Hris/Types/ConditionTypeEnum.cs | 27 -----
src/Merge.Client/Hris/Types/Deduction.cs | 5 +-
src/Merge.Client/Hris/Types/Dependent.cs | 5 +-
src/Merge.Client/Hris/Types/Earning.cs | 5 +-
src/Merge.Client/Hris/Types/Employee.cs | 5 +-
.../Hris/Types/EmployeePayrollRun.cs | 5 +-
.../Hris/Types/EmployerBenefit.cs | 5 +-
src/Merge.Client/Hris/Types/Employment.cs | 5 +-
src/Merge.Client/Hris/Types/EventTypeEnum.cs | 11 ++-
src/Merge.Client/Hris/Types/Group.cs | 11 ++-
.../Hris/Types/LinkedAccountCondition.cs | 33 -------
.../Types/LinkedAccountConditionRequest.cs | 27 -----
...LinkedAccountSelectiveSyncConfiguration.cs | 13 ---
...ccountSelectiveSyncConfigurationRequest.cs | 13 ---
src/Merge.Client/Hris/Types/Location.cs | 5 +-
src/Merge.Client/Hris/Types/OperatorSchema.cs | 18 ----
.../Types/PaginatedConditionSchemaList.cs | 16 ---
src/Merge.Client/Hris/Types/PayGroup.cs | 5 +-
src/Merge.Client/Hris/Types/PayrollRun.cs | 5 +-
src/Merge.Client/Hris/Types/RemoteFieldApi.cs | 4 +
src/Merge.Client/Hris/Types/Tax.cs | 5 +-
src/Merge.Client/Hris/Types/Team.cs | 5 +-
src/Merge.Client/Hris/Types/TimeOff.cs | 5 +-
src/Merge.Client/Hris/Types/TimeOffBalance.cs | 5 +-
src/Merge.Client/Hris/Types/TimesheetEntry.cs | 5 +-
.../requests/AuditTrailListRequest.cs | 2 +-
.../Ticketing/Contacts/ContactsClient.cs | 50 ++++++++++
.../TicketingContactEndpointRequest.cs | 18 ++++
.../requests/EndUserDetailsRequest.cs | 5 +
.../SelectiveSync/SelectiveSyncClient.cs | 98 -------------------
...ntSelectiveSyncConfigurationListRequest.cs | 11 ---
.../requests/SelectiveSyncMetaListRequest.cs | 16 ---
src/Merge.Client/Ticketing/TicketingClient.cs | 3 -
src/Merge.Client/Ticketing/Types/Account.cs | 5 +-
.../Ticketing/Types/Attachment.cs | 5 +-
.../Ticketing/Types/AuditLogEvent.cs | 3 +
.../Ticketing/Types/Collection.cs | 5 +-
src/Merge.Client/Ticketing/Types/Comment.cs | 5 +-
.../Ticketing/Types/ConditionSchema.cs | 51 ----------
.../Ticketing/Types/ConditionTypeEnum.cs | 27 -----
src/Merge.Client/Ticketing/Types/Contact.cs | 5 +-
.../Ticketing/Types/ContactRequest.cs | 44 +++++++++
.../Ticketing/Types/EventTypeEnum.cs | 11 ++-
.../Ticketing/Types/LinkedAccountCondition.cs | 33 -------
.../Types/LinkedAccountConditionRequest.cs | 27 -----
...LinkedAccountSelectiveSyncConfiguration.cs | 13 ---
...ccountSelectiveSyncConfigurationRequest.cs | 13 ---
.../Ticketing/Types/OperatorSchema.cs | 18 ----
.../Types/PaginatedConditionSchemaList.cs | 16 ---
src/Merge.Client/Ticketing/Types/Project.cs | 5 +-
.../Ticketing/Types/RemoteFieldApi.cs | 4 +
src/Merge.Client/Ticketing/Types/Role.cs | 5 +-
src/Merge.Client/Ticketing/Types/Tag.cs | 5 +-
src/Merge.Client/Ticketing/Types/Team.cs | 5 +-
src/Merge.Client/Ticketing/Types/Ticket.cs | 5 +-
.../Types/TicketingContactResponse.cs | 19 ++++
src/Merge.Client/Ticketing/Types/User.cs | 5 +-
226 files changed, 818 insertions(+), 2097 deletions(-)
delete mode 100644 src/Merge.Client/Accounting/SelectiveSync/SelectiveSyncClient.cs
delete mode 100644 src/Merge.Client/Accounting/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
delete mode 100644 src/Merge.Client/Accounting/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
delete mode 100644 src/Merge.Client/Accounting/Types/ConditionSchema.cs
delete mode 100644 src/Merge.Client/Accounting/Types/ConditionTypeEnum.cs
delete mode 100644 src/Merge.Client/Accounting/Types/LinkedAccountCondition.cs
delete mode 100644 src/Merge.Client/Accounting/Types/LinkedAccountConditionRequest.cs
delete mode 100644 src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfiguration.cs
delete mode 100644 src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
delete mode 100644 src/Merge.Client/Accounting/Types/OperatorSchema.cs
delete mode 100644 src/Merge.Client/Accounting/Types/PaginatedConditionSchemaList.cs
create mode 100644 src/Merge.Client/Accounting/Types/PaymentTypeEnum.cs
delete mode 100644 src/Merge.Client/Ats/SelectiveSync/SelectiveSyncClient.cs
delete mode 100644 src/Merge.Client/Ats/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
delete mode 100644 src/Merge.Client/Ats/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
delete mode 100644 src/Merge.Client/Ats/Types/ConditionSchema.cs
delete mode 100644 src/Merge.Client/Ats/Types/ConditionTypeEnum.cs
delete mode 100644 src/Merge.Client/Ats/Types/LinkedAccountCondition.cs
delete mode 100644 src/Merge.Client/Ats/Types/LinkedAccountConditionRequest.cs
delete mode 100644 src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfiguration.cs
delete mode 100644 src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
delete mode 100644 src/Merge.Client/Ats/Types/OperatorSchema.cs
delete mode 100644 src/Merge.Client/Ats/Types/PaginatedConditionSchemaList.cs
create mode 100644 src/Merge.Client/Core/Environments.cs
delete mode 100644 src/Merge.Client/Crm/SelectiveSync/SelectiveSyncClient.cs
delete mode 100644 src/Merge.Client/Crm/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
delete mode 100644 src/Merge.Client/Crm/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
delete mode 100644 src/Merge.Client/Crm/Types/ConditionSchema.cs
delete mode 100644 src/Merge.Client/Crm/Types/ConditionTypeEnum.cs
delete mode 100644 src/Merge.Client/Crm/Types/LinkedAccountCondition.cs
delete mode 100644 src/Merge.Client/Crm/Types/LinkedAccountConditionRequest.cs
delete mode 100644 src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfiguration.cs
delete mode 100644 src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
delete mode 100644 src/Merge.Client/Crm/Types/OperatorSchema.cs
delete mode 100644 src/Merge.Client/Crm/Types/PaginatedConditionSchemaList.cs
delete mode 100644 src/Merge.Client/Filestorage/SelectiveSync/SelectiveSyncClient.cs
delete mode 100644 src/Merge.Client/Filestorage/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
delete mode 100644 src/Merge.Client/Filestorage/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/ConditionSchema.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/ConditionTypeEnum.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/LinkedAccountCondition.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/LinkedAccountConditionRequest.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfiguration.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/OperatorSchema.cs
delete mode 100644 src/Merge.Client/Filestorage/Types/PaginatedConditionSchemaList.cs
delete mode 100644 src/Merge.Client/Hris/SelectiveSync/SelectiveSyncClient.cs
delete mode 100644 src/Merge.Client/Hris/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
delete mode 100644 src/Merge.Client/Hris/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
delete mode 100644 src/Merge.Client/Hris/Types/ConditionSchema.cs
delete mode 100644 src/Merge.Client/Hris/Types/ConditionTypeEnum.cs
delete mode 100644 src/Merge.Client/Hris/Types/LinkedAccountCondition.cs
delete mode 100644 src/Merge.Client/Hris/Types/LinkedAccountConditionRequest.cs
delete mode 100644 src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfiguration.cs
delete mode 100644 src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
delete mode 100644 src/Merge.Client/Hris/Types/OperatorSchema.cs
delete mode 100644 src/Merge.Client/Hris/Types/PaginatedConditionSchemaList.cs
create mode 100644 src/Merge.Client/Ticketing/Contacts/requests/TicketingContactEndpointRequest.cs
delete mode 100644 src/Merge.Client/Ticketing/SelectiveSync/SelectiveSyncClient.cs
delete mode 100644 src/Merge.Client/Ticketing/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
delete mode 100644 src/Merge.Client/Ticketing/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/ConditionSchema.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/ConditionTypeEnum.cs
create mode 100644 src/Merge.Client/Ticketing/Types/ContactRequest.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/LinkedAccountCondition.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/LinkedAccountConditionRequest.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfiguration.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/OperatorSchema.cs
delete mode 100644 src/Merge.Client/Ticketing/Types/PaginatedConditionSchemaList.cs
create mode 100644 src/Merge.Client/Ticketing/Types/TicketingContactResponse.cs
diff --git a/src/Merge.Client.sln b/src/Merge.Client.sln
index 11f58625..71ff8c23 100644
--- a/src/Merge.Client.sln
+++ b/src/Merge.Client.sln
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Merge.Client", "Merge.Client\Merge.Client.csproj", "{19553BD2-51BE-463B-ABEE-237BADF72B8A}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Merge.Client", "Merge.Client\Merge.Client.csproj", "{EF167235-17EB-4623-8F0B-669EFF416B01}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Merge.Client.Test", "Merge.Client.Test\Merge.Client.Test.csproj", "{1B8B8673-78F7-4998-B45C-70EC71615B85}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Merge.Client.Test", "Merge.Client.Test\Merge.Client.Test.csproj", "{DAFC2B0B-AF43-4879-B81B-6D6F20DC9D50}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -16,13 +16,13 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {19553BD2-51BE-463B-ABEE-237BADF72B8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {19553BD2-51BE-463B-ABEE-237BADF72B8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {19553BD2-51BE-463B-ABEE-237BADF72B8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {19553BD2-51BE-463B-ABEE-237BADF72B8A}.Release|Any CPU.Build.0 = Release|Any CPU
- {1B8B8673-78F7-4998-B45C-70EC71615B85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1B8B8673-78F7-4998-B45C-70EC71615B85}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1B8B8673-78F7-4998-B45C-70EC71615B85}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1B8B8673-78F7-4998-B45C-70EC71615B85}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EF167235-17EB-4623-8F0B-669EFF416B01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EF167235-17EB-4623-8F0B-669EFF416B01}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EF167235-17EB-4623-8F0B-669EFF416B01}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EF167235-17EB-4623-8F0B-669EFF416B01}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DAFC2B0B-AF43-4879-B81B-6D6F20DC9D50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DAFC2B0B-AF43-4879-B81B-6D6F20DC9D50}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DAFC2B0B-AF43-4879-B81B-6D6F20DC9D50}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DAFC2B0B-AF43-4879-B81B-6D6F20DC9D50}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/src/Merge.Client/Accounting/AccountingClient.cs b/src/Merge.Client/Accounting/AccountingClient.cs
index c8d6edb4..edf5cf2a 100644
--- a/src/Merge.Client/Accounting/AccountingClient.cs
+++ b/src/Merge.Client/Accounting/AccountingClient.cs
@@ -41,7 +41,6 @@ public AccountingClient(RawClient client)
PhoneNumbers = new PhoneNumbersClient(_client);
PurchaseOrders = new PurchaseOrdersClient(_client);
RegenerateKey = new RegenerateKeyClient(_client);
- SelectiveSync = new SelectiveSyncClient(_client);
SyncStatus = new SyncStatusClient(_client);
ForceResync = new ForceResyncClient(_client);
TaxRates = new TaxRatesClient(_client);
@@ -113,8 +112,6 @@ public AccountingClient(RawClient client)
public RegenerateKeyClient RegenerateKey { get; }
- public SelectiveSyncClient SelectiveSync { get; }
-
public SyncStatusClient SyncStatus { get; }
public ForceResyncClient ForceResync { get; }
diff --git a/src/Merge.Client/Accounting/AuditTrail/requests/AuditTrailListRequest.cs b/src/Merge.Client/Accounting/AuditTrail/requests/AuditTrailListRequest.cs
index 38b939ad..c0a5f488 100644
--- a/src/Merge.Client/Accounting/AuditTrail/requests/AuditTrailListRequest.cs
+++ b/src/Merge.Client/Accounting/AuditTrail/requests/AuditTrailListRequest.cs
@@ -13,7 +13,7 @@ public class AuditTrailListRequest
public string? EndDate { get; init; }
///
- /// 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`
+ /// 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`
///
public string? EventType { get; init; }
diff --git a/src/Merge.Client/Accounting/LinkToken/requests/EndUserDetailsRequest.cs b/src/Merge.Client/Accounting/LinkToken/requests/EndUserDetailsRequest.cs
index 557d836d..a4654c49 100644
--- a/src/Merge.Client/Accounting/LinkToken/requests/EndUserDetailsRequest.cs
+++ b/src/Merge.Client/Accounting/LinkToken/requests/EndUserDetailsRequest.cs
@@ -56,4 +56,9 @@ public Dictionary<
/// The language code for the language to localize Merge Link to.
///
public string? Language { get; init; }
+
+ ///
+ /// A JSON object containing integration-specific configuration options.
+ ///
+ public Dictionary? IntegrationSpecificConfig { get; init; }
}
diff --git a/src/Merge.Client/Accounting/SelectiveSync/SelectiveSyncClient.cs b/src/Merge.Client/Accounting/SelectiveSync/SelectiveSyncClient.cs
deleted file mode 100644
index 99c2c807..00000000
--- a/src/Merge.Client/Accounting/SelectiveSync/SelectiveSyncClient.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System.Text.Json;
-using Merge.Client;
-using Merge.Client.Accounting;
-
-namespace Merge.Client.Accounting;
-
-public class SelectiveSyncClient
-{
- private RawClient _client;
-
- public SelectiveSyncClient(RawClient client)
- {
- _client = client;
- }
-
- ///
- /// Get a linked account's selective syncs.
- ///
- public async Task> ConfigurationsListAsync()
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/accounting/v1/selective-sync/configurations"
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Replace a linked account's selective syncs.
- ///
- public async Task> ConfigurationsUpdateAsync(
- LinkedAccountSelectiveSyncConfigurationListRequest request
- )
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Put,
- Path = "/accounting/v1/selective-sync/configurations",
- Body = request
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Get metadata for the conditions available to a linked account.
- ///
- public async Task MetaListAsync(
- SelectiveSyncMetaListRequest request
- )
- {
- var _query = new Dictionary() { };
- if (request.CommonModel != null)
- {
- _query["common_model"] = request.CommonModel;
- }
- if (request.Cursor != null)
- {
- _query["cursor"] = request.Cursor;
- }
- if (request.PageSize != null)
- {
- _query["page_size"] = request.PageSize;
- }
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/accounting/v1/selective-sync/meta",
- Query = _query
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize(responseBody);
- }
- throw new Exception();
- }
-}
diff --git a/src/Merge.Client/Accounting/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs b/src/Merge.Client/Accounting/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
deleted file mode 100644
index efd4d538..00000000
--- a/src/Merge.Client/Accounting/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Merge.Client.Accounting;
-
-namespace Merge.Client.Accounting;
-
-public class LinkedAccountSelectiveSyncConfigurationListRequest
-{
- ///
- /// The selective syncs associated with a linked account.
- ///
- public List SyncConfigurations { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs b/src/Merge.Client/Accounting/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
deleted file mode 100644
index f3676357..00000000
--- a/src/Merge.Client/Accounting/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace Merge.Client.Accounting;
-
-public class SelectiveSyncMetaListRequest
-{
- public string? CommonModel { get; init; }
-
- ///
- /// The pagination cursor value.
- ///
- public string? Cursor { get; init; }
-
- ///
- /// Number of results to return per page.
- ///
- public int? PageSize { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/Account.cs b/src/Merge.Client/Accounting/Types/Account.cs
index e9313a66..2257a729 100644
--- a/src/Merge.Client/Accounting/Types/Account.cs
+++ b/src/Merge.Client/Accounting/Types/Account.cs
@@ -14,11 +14,14 @@ public class Account
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/AccountingAttachment.cs b/src/Merge.Client/Accounting/Types/AccountingAttachment.cs
index 30209594..34b6a786 100644
--- a/src/Merge.Client/Accounting/Types/AccountingAttachment.cs
+++ b/src/Merge.Client/Accounting/Types/AccountingAttachment.cs
@@ -14,11 +14,14 @@ public class AccountingAttachment
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/AccountingPeriod.cs b/src/Merge.Client/Accounting/Types/AccountingPeriod.cs
index aa942fc0..404050e2 100644
--- a/src/Merge.Client/Accounting/Types/AccountingPeriod.cs
+++ b/src/Merge.Client/Accounting/Types/AccountingPeriod.cs
@@ -8,11 +8,14 @@ public class AccountingPeriod
[JsonPropertyName("id")]
public string? Id { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/AccountingPhoneNumber.cs b/src/Merge.Client/Accounting/Types/AccountingPhoneNumber.cs
index c7e4bcb1..d3760078 100644
--- a/src/Merge.Client/Accounting/Types/AccountingPhoneNumber.cs
+++ b/src/Merge.Client/Accounting/Types/AccountingPhoneNumber.cs
@@ -4,11 +4,14 @@ namespace Merge.Client.Accounting;
public class AccountingPhoneNumber
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/Address.cs b/src/Merge.Client/Accounting/Types/Address.cs
index 3c80cffc..79e5987c 100644
--- a/src/Merge.Client/Accounting/Types/Address.cs
+++ b/src/Merge.Client/Accounting/Types/Address.cs
@@ -5,11 +5,14 @@ namespace Merge.Client.Accounting;
public class Address
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/AuditLogEvent.cs b/src/Merge.Client/Accounting/Types/AuditLogEvent.cs
index f25c03f9..2d968a7a 100644
--- a/src/Merge.Client/Accounting/Types/AuditLogEvent.cs
+++ b/src/Merge.Client/Accounting/Types/AuditLogEvent.cs
@@ -73,6 +73,9 @@ public class AuditLogEvent
/// - `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
///
[JsonPropertyName("event_type")]
public EventTypeEnum EventType { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/BalanceSheet.cs b/src/Merge.Client/Accounting/Types/BalanceSheet.cs
index 3ae2f928..baa3a05e 100644
--- a/src/Merge.Client/Accounting/Types/BalanceSheet.cs
+++ b/src/Merge.Client/Accounting/Types/BalanceSheet.cs
@@ -15,11 +15,14 @@ public class BalanceSheet
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/CashFlowStatement.cs b/src/Merge.Client/Accounting/Types/CashFlowStatement.cs
index 036194b0..2f9d833f 100644
--- a/src/Merge.Client/Accounting/Types/CashFlowStatement.cs
+++ b/src/Merge.Client/Accounting/Types/CashFlowStatement.cs
@@ -15,11 +15,14 @@ public class CashFlowStatement
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/CompanyInfo.cs b/src/Merge.Client/Accounting/Types/CompanyInfo.cs
index 0b7a8284..4a240cc5 100644
--- a/src/Merge.Client/Accounting/Types/CompanyInfo.cs
+++ b/src/Merge.Client/Accounting/Types/CompanyInfo.cs
@@ -14,11 +14,14 @@ public class CompanyInfo
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/ConditionSchema.cs b/src/Merge.Client/Accounting/Types/ConditionSchema.cs
deleted file mode 100644
index 388d5dc1..00000000
--- a/src/Merge.Client/Accounting/Types/ConditionSchema.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Accounting;
-
-namespace Merge.Client.Accounting;
-
-public class ConditionSchema
-{
- ///
- /// The ID of the condition schema. This ID is used when updating selective syncs for a linked account.
- ///
- [JsonPropertyName("id")]
- public string Id { get; init; }
-
- ///
- /// The common model for which a condition schema is defined.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-
- ///
- /// Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-
- ///
- /// The type of value(s) that can be set for this condition.
- ///
- /// - `BOOLEAN` - BOOLEAN
- /// - `DATE` - DATE
- /// - `DATE_TIME` - DATE_TIME
- /// - `INTEGER` - INTEGER
- /// - `FLOAT` - FLOAT
- /// - `STRING` - STRING
- /// - `LIST_OF_STRINGS` - LIST_OF_STRINGS
- ///
- [JsonPropertyName("condition_type")]
- public ConditionTypeEnum ConditionType { get; init; }
-
- ///
- /// The schemas for the operators that can be used on a condition.
- ///
- [JsonPropertyName("operators")]
- public List Operators { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/ConditionTypeEnum.cs b/src/Merge.Client/Accounting/Types/ConditionTypeEnum.cs
deleted file mode 100644
index 8accd666..00000000
--- a/src/Merge.Client/Accounting/Types/ConditionTypeEnum.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Runtime.Serialization;
-
-namespace Merge.Client.Accounting;
-
-public enum ConditionTypeEnum
-{
- [EnumMember(Value = "BOOLEAN")]
- Boolean,
-
- [EnumMember(Value = "DATE")]
- Date,
-
- [EnumMember(Value = "DATE_TIME")]
- DateTime,
-
- [EnumMember(Value = "INTEGER")]
- Integer,
-
- [EnumMember(Value = "FLOAT")]
- Float,
-
- [EnumMember(Value = "STRING")]
- String,
-
- [EnumMember(Value = "LIST_OF_STRINGS")]
- ListOfStrings
-}
diff --git a/src/Merge.Client/Accounting/Types/Contact.cs b/src/Merge.Client/Accounting/Types/Contact.cs
index 86607746..1d8a9019 100644
--- a/src/Merge.Client/Accounting/Types/Contact.cs
+++ b/src/Merge.Client/Accounting/Types/Contact.cs
@@ -15,11 +15,14 @@ public class Contact
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/CreditNote.cs b/src/Merge.Client/Accounting/Types/CreditNote.cs
index 1562ac32..064a1e12 100644
--- a/src/Merge.Client/Accounting/Types/CreditNote.cs
+++ b/src/Merge.Client/Accounting/Types/CreditNote.cs
@@ -15,11 +15,14 @@ public class CreditNote
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/CreditNoteLineItem.cs b/src/Merge.Client/Accounting/Types/CreditNoteLineItem.cs
index 281bc576..3a231e04 100644
--- a/src/Merge.Client/Accounting/Types/CreditNoteLineItem.cs
+++ b/src/Merge.Client/Accounting/Types/CreditNoteLineItem.cs
@@ -15,11 +15,14 @@ public class CreditNoteLineItem
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
@@ -57,12 +60,6 @@ public class CreditNoteLineItem
[JsonPropertyName("unit_price")]
public string? UnitPrice { get; init; }
- ///
- /// The credit note line item's tax rate.
- ///
- [JsonPropertyName("tax_rate")]
- public string? TaxRate { get; init; }
-
///
/// The credit note line item's total.
///
diff --git a/src/Merge.Client/Accounting/Types/EventTypeEnum.cs b/src/Merge.Client/Accounting/Types/EventTypeEnum.cs
index 69053e3b..b671e4db 100644
--- a/src/Merge.Client/Accounting/Types/EventTypeEnum.cs
+++ b/src/Merge.Client/Accounting/Types/EventTypeEnum.cs
@@ -104,5 +104,14 @@ public enum EventTypeEnum
MutedIssue,
[EnumMember(Value = "GENERATED_MAGIC_LINK")]
- GeneratedMagicLink
+ GeneratedMagicLink,
+
+ [EnumMember(Value = "ENABLED_MERGE_WEBHOOK")]
+ EnabledMergeWebhook,
+
+ [EnumMember(Value = "DISABLED_MERGE_WEBHOOK")]
+ DisabledMergeWebhook,
+
+ [EnumMember(Value = "MERGE_WEBHOOK_TARGET_CHANGED")]
+ MergeWebhookTargetChanged
}
diff --git a/src/Merge.Client/Accounting/Types/Expense.cs b/src/Merge.Client/Accounting/Types/Expense.cs
index cd77e841..80803cc1 100644
--- a/src/Merge.Client/Accounting/Types/Expense.cs
+++ b/src/Merge.Client/Accounting/Types/Expense.cs
@@ -15,11 +15,14 @@ public class Expense
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/ExpenseLine.cs b/src/Merge.Client/Accounting/Types/ExpenseLine.cs
index f63964ed..dc15ca9e 100644
--- a/src/Merge.Client/Accounting/Types/ExpenseLine.cs
+++ b/src/Merge.Client/Accounting/Types/ExpenseLine.cs
@@ -15,11 +15,14 @@ public class ExpenseLine
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/IncomeStatement.cs b/src/Merge.Client/Accounting/Types/IncomeStatement.cs
index 33b24be5..499017e2 100644
--- a/src/Merge.Client/Accounting/Types/IncomeStatement.cs
+++ b/src/Merge.Client/Accounting/Types/IncomeStatement.cs
@@ -15,11 +15,14 @@ public class IncomeStatement
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/Invoice.cs b/src/Merge.Client/Accounting/Types/Invoice.cs
index 41e3fcac..1eb4c363 100644
--- a/src/Merge.Client/Accounting/Types/Invoice.cs
+++ b/src/Merge.Client/Accounting/Types/Invoice.cs
@@ -15,11 +15,14 @@ public class Invoice
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/InvoiceLineItem.cs b/src/Merge.Client/Accounting/Types/InvoiceLineItem.cs
index 5f1989de..ccbb6e48 100644
--- a/src/Merge.Client/Accounting/Types/InvoiceLineItem.cs
+++ b/src/Merge.Client/Accounting/Types/InvoiceLineItem.cs
@@ -15,11 +15,14 @@ public class InvoiceLineItem
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/Item.cs b/src/Merge.Client/Accounting/Types/Item.cs
index ff9ce1bd..3e8ff253 100644
--- a/src/Merge.Client/Accounting/Types/Item.cs
+++ b/src/Merge.Client/Accounting/Types/Item.cs
@@ -15,11 +15,14 @@ public class Item
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/JournalEntry.cs b/src/Merge.Client/Accounting/Types/JournalEntry.cs
index 20f515df..61876ba5 100644
--- a/src/Merge.Client/Accounting/Types/JournalEntry.cs
+++ b/src/Merge.Client/Accounting/Types/JournalEntry.cs
@@ -15,11 +15,14 @@ public class JournalEntry
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/JournalLine.cs b/src/Merge.Client/Accounting/Types/JournalLine.cs
index b418bc92..72afd44a 100644
--- a/src/Merge.Client/Accounting/Types/JournalLine.cs
+++ b/src/Merge.Client/Accounting/Types/JournalLine.cs
@@ -15,11 +15,14 @@ public class JournalLine
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/LinkedAccountCondition.cs b/src/Merge.Client/Accounting/Types/LinkedAccountCondition.cs
deleted file mode 100644
index 431acd1a..00000000
--- a/src/Merge.Client/Accounting/Types/LinkedAccountCondition.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Accounting;
-
-public class LinkedAccountCondition
-{
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The common model for a specific condition.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object? Value { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/LinkedAccountConditionRequest.cs b/src/Merge.Client/Accounting/Types/LinkedAccountConditionRequest.cs
deleted file mode 100644
index b4da31ff..00000000
--- a/src/Merge.Client/Accounting/Types/LinkedAccountConditionRequest.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Accounting;
-
-public class LinkedAccountConditionRequest
-{
- ///
- /// The ID indicating which Linked Account Condition this is.
- ///
- [JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object Value { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfiguration.cs b/src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfiguration.cs
deleted file mode 100644
index 9d215d06..00000000
--- a/src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfiguration.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Accounting;
-
-namespace Merge.Client.Accounting;
-
-public class LinkedAccountSelectiveSyncConfiguration
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List? LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs b/src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
deleted file mode 100644
index 2b845a81..00000000
--- a/src/Merge.Client/Accounting/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Accounting;
-
-namespace Merge.Client.Accounting;
-
-public class LinkedAccountSelectiveSyncConfigurationRequest
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/OperatorSchema.cs b/src/Merge.Client/Accounting/Types/OperatorSchema.cs
deleted file mode 100644
index e482e274..00000000
--- a/src/Merge.Client/Accounting/Types/OperatorSchema.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Accounting;
-
-public class OperatorSchema
-{
- ///
- /// The operator for which an operator schema is defined.
- ///
- [JsonPropertyName("operator")]
- public string? Operator { get; init; }
-
- ///
- /// Whether the operator can be repeated multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/PaginatedConditionSchemaList.cs b/src/Merge.Client/Accounting/Types/PaginatedConditionSchemaList.cs
deleted file mode 100644
index 3f9f586a..00000000
--- a/src/Merge.Client/Accounting/Types/PaginatedConditionSchemaList.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Accounting;
-
-namespace Merge.Client.Accounting;
-
-public class PaginatedConditionSchemaList
-{
- [JsonPropertyName("next")]
- public string? Next { get; init; }
-
- [JsonPropertyName("previous")]
- public string? Previous { get; init; }
-
- [JsonPropertyName("results")]
- public List? Results { get; init; }
-}
diff --git a/src/Merge.Client/Accounting/Types/PatchedPaymentRequest.cs b/src/Merge.Client/Accounting/Types/PatchedPaymentRequest.cs
index b0367a08..4ca91877 100644
--- a/src/Merge.Client/Accounting/Types/PatchedPaymentRequest.cs
+++ b/src/Merge.Client/Accounting/Types/PatchedPaymentRequest.cs
@@ -355,6 +355,15 @@ public class PatchedPaymentRequest
[JsonPropertyName("total_amount")]
public double? TotalAmount { get; init; }
+ ///
+ /// The type of the invoice.
+ ///
+ /// - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE
+ /// - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE
+ ///
+ [JsonPropertyName("type")]
+ public PaymentTypeEnum? Type { get; init; }
+
[JsonPropertyName("tracking_categories")]
public List?>? TrackingCategories { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/Payment.cs b/src/Merge.Client/Accounting/Types/Payment.cs
index 05733707..51ec01cd 100644
--- a/src/Merge.Client/Accounting/Types/Payment.cs
+++ b/src/Merge.Client/Accounting/Types/Payment.cs
@@ -15,11 +15,14 @@ public class Payment
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
@@ -373,6 +376,15 @@ public class Payment
[JsonPropertyName("total_amount")]
public double? TotalAmount { get; init; }
+ ///
+ /// The type of the invoice.
+ ///
+ /// - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE
+ /// - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE
+ ///
+ [JsonPropertyName("type")]
+ public PaymentTypeEnum? Type { get; init; }
+
[JsonPropertyName("tracking_categories")]
public List?>? TrackingCategories { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/PaymentLineItem.cs b/src/Merge.Client/Accounting/Types/PaymentLineItem.cs
index 3f3844d4..24b6214b 100644
--- a/src/Merge.Client/Accounting/Types/PaymentLineItem.cs
+++ b/src/Merge.Client/Accounting/Types/PaymentLineItem.cs
@@ -13,11 +13,14 @@ public class PaymentLineItem
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/PaymentRequest.cs b/src/Merge.Client/Accounting/Types/PaymentRequest.cs
index fc1abb24..ecbc99b6 100644
--- a/src/Merge.Client/Accounting/Types/PaymentRequest.cs
+++ b/src/Merge.Client/Accounting/Types/PaymentRequest.cs
@@ -355,6 +355,15 @@ public class PaymentRequest
[JsonPropertyName("total_amount")]
public double? TotalAmount { get; init; }
+ ///
+ /// The type of the invoice.
+ ///
+ /// - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE
+ /// - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE
+ ///
+ [JsonPropertyName("type")]
+ public PaymentTypeEnum? Type { get; init; }
+
[JsonPropertyName("tracking_categories")]
public List?>? TrackingCategories { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/PaymentTypeEnum.cs b/src/Merge.Client/Accounting/Types/PaymentTypeEnum.cs
new file mode 100644
index 00000000..0acd6c8f
--- /dev/null
+++ b/src/Merge.Client/Accounting/Types/PaymentTypeEnum.cs
@@ -0,0 +1,12 @@
+using System.Runtime.Serialization;
+
+namespace Merge.Client.Accounting;
+
+public enum PaymentTypeEnum
+{
+ [EnumMember(Value = "ACCOUNTS_PAYABLE")]
+ AccountsPayable,
+
+ [EnumMember(Value = "ACCOUNTS_RECEIVABLE")]
+ AccountsReceivable
+}
diff --git a/src/Merge.Client/Accounting/Types/PurchaseOrder.cs b/src/Merge.Client/Accounting/Types/PurchaseOrder.cs
index 90c44294..4a5573ab 100644
--- a/src/Merge.Client/Accounting/Types/PurchaseOrder.cs
+++ b/src/Merge.Client/Accounting/Types/PurchaseOrder.cs
@@ -15,11 +15,14 @@ public class PurchaseOrder
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/PurchaseOrderLineItem.cs b/src/Merge.Client/Accounting/Types/PurchaseOrderLineItem.cs
index 1e8abb58..a3e56c7b 100644
--- a/src/Merge.Client/Accounting/Types/PurchaseOrderLineItem.cs
+++ b/src/Merge.Client/Accounting/Types/PurchaseOrderLineItem.cs
@@ -15,11 +15,14 @@ public class PurchaseOrderLineItem
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/RemoteFieldApi.cs b/src/Merge.Client/Accounting/Types/RemoteFieldApi.cs
index 9c466df8..12fad356 100644
--- a/src/Merge.Client/Accounting/Types/RemoteFieldApi.cs
+++ b/src/Merge.Client/Accounting/Types/RemoteFieldApi.cs
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Merge.Client.Accounting;
+using OneOf;
namespace Merge.Client.Accounting;
@@ -19,4 +20,7 @@ public class RemoteFieldApi
[JsonPropertyName("advanced_metadata")]
public AdvancedMetadata? AdvancedMetadata { get; init; }
+
+ [JsonPropertyName("coverage")]
+ public OneOf? Coverage { get; init; }
}
diff --git a/src/Merge.Client/Accounting/Types/ReportItem.cs b/src/Merge.Client/Accounting/Types/ReportItem.cs
index 22f127e6..b14a041f 100644
--- a/src/Merge.Client/Accounting/Types/ReportItem.cs
+++ b/src/Merge.Client/Accounting/Types/ReportItem.cs
@@ -10,11 +10,14 @@ public class ReportItem
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/TaxRate.cs b/src/Merge.Client/Accounting/Types/TaxRate.cs
index ea8a5d1c..26b620c0 100644
--- a/src/Merge.Client/Accounting/Types/TaxRate.cs
+++ b/src/Merge.Client/Accounting/Types/TaxRate.cs
@@ -15,11 +15,14 @@ public class TaxRate
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
@@ -31,19 +34,19 @@ public class TaxRate
public string? Description { get; init; }
///
- /// The tax rate's total tax rate.
+ /// The tax’s total tax rate - sum of the tax components (not compounded).
///
[JsonPropertyName("total_tax_rate")]
public double? TotalTaxRate { get; init; }
///
- /// The tax rate's effective tax rate.
+ /// The tax rate’s effective tax rate - total amount of tax with compounding.
///
[JsonPropertyName("effective_tax_rate")]
public double? EffectiveTaxRate { get; init; }
///
- /// The company the tax rate belongs to.
+ /// The subsidiary that the tax rate belongs to (in the case of multi-entity systems).
///
[JsonPropertyName("company")]
public OneOf? Company { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/TrackingCategory.cs b/src/Merge.Client/Accounting/Types/TrackingCategory.cs
index 05bc13a0..8e891d90 100644
--- a/src/Merge.Client/Accounting/Types/TrackingCategory.cs
+++ b/src/Merge.Client/Accounting/Types/TrackingCategory.cs
@@ -15,11 +15,14 @@ public class TrackingCategory
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/Transaction.cs b/src/Merge.Client/Accounting/Types/Transaction.cs
index e00601b8..f5278ba4 100644
--- a/src/Merge.Client/Accounting/Types/Transaction.cs
+++ b/src/Merge.Client/Accounting/Types/Transaction.cs
@@ -15,11 +15,14 @@ public class Transaction
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/TransactionLineItem.cs b/src/Merge.Client/Accounting/Types/TransactionLineItem.cs
index 96957818..afd12b2b 100644
--- a/src/Merge.Client/Accounting/Types/TransactionLineItem.cs
+++ b/src/Merge.Client/Accounting/Types/TransactionLineItem.cs
@@ -15,11 +15,14 @@ public class TransactionLineItem
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
@@ -69,9 +72,6 @@ public class TransactionLineItem
[JsonPropertyName("total_line_amount")]
public string? TotalLineAmount { get; init; }
- ///
- /// The line item's tax rate.
- ///
[JsonPropertyName("tax_rate")]
public string? TaxRate { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/VendorCredit.cs b/src/Merge.Client/Accounting/Types/VendorCredit.cs
index 95678ad4..53ac02b7 100644
--- a/src/Merge.Client/Accounting/Types/VendorCredit.cs
+++ b/src/Merge.Client/Accounting/Types/VendorCredit.cs
@@ -15,11 +15,14 @@ public class VendorCredit
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Accounting/Types/VendorCreditLine.cs b/src/Merge.Client/Accounting/Types/VendorCreditLine.cs
index 77c01e5a..b62f3422 100644
--- a/src/Merge.Client/Accounting/Types/VendorCreditLine.cs
+++ b/src/Merge.Client/Accounting/Types/VendorCreditLine.cs
@@ -15,11 +15,14 @@ public class VendorCreditLine
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/AtsClient.cs b/src/Merge.Client/Ats/AtsClient.cs
index b237c8eb..01e701ab 100644
--- a/src/Merge.Client/Ats/AtsClient.cs
+++ b/src/Merge.Client/Ats/AtsClient.cs
@@ -38,7 +38,6 @@ public AtsClient(RawClient client)
RegenerateKey = new RegenerateKeyClient(_client);
RejectReasons = new RejectReasonsClient(_client);
Scorecards = new ScorecardsClient(_client);
- SelectiveSync = new SelectiveSyncClient(_client);
SyncStatus = new SyncStatusClient(_client);
ForceResync = new ForceResyncClient(_client);
Tags = new TagsClient(_client);
@@ -102,8 +101,6 @@ public AtsClient(RawClient client)
public ScorecardsClient Scorecards { get; }
- public SelectiveSyncClient SelectiveSync { get; }
-
public SyncStatusClient SyncStatus { get; }
public ForceResyncClient ForceResync { get; }
diff --git a/src/Merge.Client/Ats/AuditTrail/requests/AuditTrailListRequest.cs b/src/Merge.Client/Ats/AuditTrail/requests/AuditTrailListRequest.cs
index 0e8f41eb..5156bbdb 100644
--- a/src/Merge.Client/Ats/AuditTrail/requests/AuditTrailListRequest.cs
+++ b/src/Merge.Client/Ats/AuditTrail/requests/AuditTrailListRequest.cs
@@ -13,7 +13,7 @@ public class AuditTrailListRequest
public string? EndDate { get; init; }
///
- /// 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`
+ /// 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`
///
public string? EventType { get; init; }
diff --git a/src/Merge.Client/Ats/JobPostings/JobPostingsClient.cs b/src/Merge.Client/Ats/JobPostings/JobPostingsClient.cs
index bbf37c38..e7ec7072 100644
--- a/src/Merge.Client/Ats/JobPostings/JobPostingsClient.cs
+++ b/src/Merge.Client/Ats/JobPostings/JobPostingsClient.cs
@@ -31,6 +31,10 @@ public async Task ListAsync(JobPostingsListRequest requ
{
_query["cursor"] = request.Cursor;
}
+ if (request.Expand != null)
+ {
+ _query["expand"] = request.Expand;
+ }
if (request.IncludeDeletedData != null)
{
_query["include_deleted_data"] = request.IncludeDeletedData;
@@ -81,6 +85,10 @@ public async Task ListAsync(JobPostingsListRequest requ
public async Task RetrieveAsync(string id, JobPostingsRetrieveRequest request)
{
var _query = new Dictionary() { };
+ if (request.Expand != null)
+ {
+ _query["expand"] = request.Expand;
+ }
if (request.IncludeRemoteData != null)
{
_query["include_remote_data"] = request.IncludeRemoteData;
diff --git a/src/Merge.Client/Ats/JobPostings/requests/JobPostingsListRequest.cs b/src/Merge.Client/Ats/JobPostings/requests/JobPostingsListRequest.cs
index 44bb3bf2..909b1472 100644
--- a/src/Merge.Client/Ats/JobPostings/requests/JobPostingsListRequest.cs
+++ b/src/Merge.Client/Ats/JobPostings/requests/JobPostingsListRequest.cs
@@ -19,6 +19,11 @@ public class JobPostingsListRequest
///
public string? Cursor { get; init; }
+ ///
+ /// Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
+ ///
+ public string? Expand { get; init; }
+
///
/// Whether to include data that was marked as deleted by third party webhooks.
///
diff --git a/src/Merge.Client/Ats/JobPostings/requests/JobPostingsRetrieveRequest.cs b/src/Merge.Client/Ats/JobPostings/requests/JobPostingsRetrieveRequest.cs
index f4375e21..f3d1b08e 100644
--- a/src/Merge.Client/Ats/JobPostings/requests/JobPostingsRetrieveRequest.cs
+++ b/src/Merge.Client/Ats/JobPostings/requests/JobPostingsRetrieveRequest.cs
@@ -2,6 +2,11 @@ namespace Merge.Client.Ats;
public class JobPostingsRetrieveRequest
{
+ ///
+ /// Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
+ ///
+ public string? Expand { get; init; }
+
///
/// Whether to include the original data Merge fetched from the third-party to produce these models.
///
diff --git a/src/Merge.Client/Ats/LinkToken/requests/EndUserDetailsRequest.cs b/src/Merge.Client/Ats/LinkToken/requests/EndUserDetailsRequest.cs
index dca626c8..758fce5f 100644
--- a/src/Merge.Client/Ats/LinkToken/requests/EndUserDetailsRequest.cs
+++ b/src/Merge.Client/Ats/LinkToken/requests/EndUserDetailsRequest.cs
@@ -56,4 +56,9 @@ public Dictionary<
/// The language code for the language to localize Merge Link to.
///
public string? Language { get; init; }
+
+ ///
+ /// A JSON object containing integration-specific configuration options.
+ ///
+ public Dictionary? IntegrationSpecificConfig { get; init; }
}
diff --git a/src/Merge.Client/Ats/SelectiveSync/SelectiveSyncClient.cs b/src/Merge.Client/Ats/SelectiveSync/SelectiveSyncClient.cs
deleted file mode 100644
index 3bcbc790..00000000
--- a/src/Merge.Client/Ats/SelectiveSync/SelectiveSyncClient.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System.Text.Json;
-using Merge.Client;
-using Merge.Client.Ats;
-
-namespace Merge.Client.Ats;
-
-public class SelectiveSyncClient
-{
- private RawClient _client;
-
- public SelectiveSyncClient(RawClient client)
- {
- _client = client;
- }
-
- ///
- /// Get a linked account's selective syncs.
- ///
- public async Task> ConfigurationsListAsync()
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/ats/v1/selective-sync/configurations"
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Replace a linked account's selective syncs.
- ///
- public async Task> ConfigurationsUpdateAsync(
- LinkedAccountSelectiveSyncConfigurationListRequest request
- )
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Put,
- Path = "/ats/v1/selective-sync/configurations",
- Body = request
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Get metadata for the conditions available to a linked account.
- ///
- public async Task MetaListAsync(
- SelectiveSyncMetaListRequest request
- )
- {
- var _query = new Dictionary() { };
- if (request.CommonModel != null)
- {
- _query["common_model"] = request.CommonModel;
- }
- if (request.Cursor != null)
- {
- _query["cursor"] = request.Cursor;
- }
- if (request.PageSize != null)
- {
- _query["page_size"] = request.PageSize;
- }
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/ats/v1/selective-sync/meta",
- Query = _query
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize(responseBody);
- }
- throw new Exception();
- }
-}
diff --git a/src/Merge.Client/Ats/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs b/src/Merge.Client/Ats/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
deleted file mode 100644
index 214a692e..00000000
--- a/src/Merge.Client/Ats/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Merge.Client.Ats;
-
-namespace Merge.Client.Ats;
-
-public class LinkedAccountSelectiveSyncConfigurationListRequest
-{
- ///
- /// The selective syncs associated with a linked account.
- ///
- public List SyncConfigurations { get; init; }
-}
diff --git a/src/Merge.Client/Ats/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs b/src/Merge.Client/Ats/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
deleted file mode 100644
index 7a35bebd..00000000
--- a/src/Merge.Client/Ats/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace Merge.Client.Ats;
-
-public class SelectiveSyncMetaListRequest
-{
- public string? CommonModel { get; init; }
-
- ///
- /// The pagination cursor value.
- ///
- public string? Cursor { get; init; }
-
- ///
- /// Number of results to return per page.
- ///
- public int? PageSize { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/Activity.cs b/src/Merge.Client/Ats/Types/Activity.cs
index 0f70c4af..8f954d24 100644
--- a/src/Merge.Client/Ats/Types/Activity.cs
+++ b/src/Merge.Client/Ats/Types/Activity.cs
@@ -15,11 +15,14 @@ public class Activity
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Application.cs b/src/Merge.Client/Ats/Types/Application.cs
index f1f3bfbb..4c92a588 100644
--- a/src/Merge.Client/Ats/Types/Application.cs
+++ b/src/Merge.Client/Ats/Types/Application.cs
@@ -15,11 +15,14 @@ public class Application
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Attachment.cs b/src/Merge.Client/Ats/Types/Attachment.cs
index 72c8b6ab..a076b598 100644
--- a/src/Merge.Client/Ats/Types/Attachment.cs
+++ b/src/Merge.Client/Ats/Types/Attachment.cs
@@ -14,11 +14,14 @@ public class Attachment
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/AuditLogEvent.cs b/src/Merge.Client/Ats/Types/AuditLogEvent.cs
index 610188ec..2ccea8f6 100644
--- a/src/Merge.Client/Ats/Types/AuditLogEvent.cs
+++ b/src/Merge.Client/Ats/Types/AuditLogEvent.cs
@@ -73,6 +73,9 @@ public class AuditLogEvent
/// - `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
///
[JsonPropertyName("event_type")]
public EventTypeEnum EventType { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Candidate.cs b/src/Merge.Client/Ats/Types/Candidate.cs
index 5d07af6a..34fc30ee 100644
--- a/src/Merge.Client/Ats/Types/Candidate.cs
+++ b/src/Merge.Client/Ats/Types/Candidate.cs
@@ -15,11 +15,14 @@ public class Candidate
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/ConditionSchema.cs b/src/Merge.Client/Ats/Types/ConditionSchema.cs
deleted file mode 100644
index 6ad5af6e..00000000
--- a/src/Merge.Client/Ats/Types/ConditionSchema.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ats;
-
-namespace Merge.Client.Ats;
-
-public class ConditionSchema
-{
- ///
- /// The ID of the condition schema. This ID is used when updating selective syncs for a linked account.
- ///
- [JsonPropertyName("id")]
- public string Id { get; init; }
-
- ///
- /// The common model for which a condition schema is defined.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-
- ///
- /// Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-
- ///
- /// The type of value(s) that can be set for this condition.
- ///
- /// - `BOOLEAN` - BOOLEAN
- /// - `DATE` - DATE
- /// - `DATE_TIME` - DATE_TIME
- /// - `INTEGER` - INTEGER
- /// - `FLOAT` - FLOAT
- /// - `STRING` - STRING
- /// - `LIST_OF_STRINGS` - LIST_OF_STRINGS
- ///
- [JsonPropertyName("condition_type")]
- public ConditionTypeEnum ConditionType { get; init; }
-
- ///
- /// The schemas for the operators that can be used on a condition.
- ///
- [JsonPropertyName("operators")]
- public List Operators { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/ConditionTypeEnum.cs b/src/Merge.Client/Ats/Types/ConditionTypeEnum.cs
deleted file mode 100644
index 80910420..00000000
--- a/src/Merge.Client/Ats/Types/ConditionTypeEnum.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Runtime.Serialization;
-
-namespace Merge.Client.Ats;
-
-public enum ConditionTypeEnum
-{
- [EnumMember(Value = "BOOLEAN")]
- Boolean,
-
- [EnumMember(Value = "DATE")]
- Date,
-
- [EnumMember(Value = "DATE_TIME")]
- DateTime,
-
- [EnumMember(Value = "INTEGER")]
- Integer,
-
- [EnumMember(Value = "FLOAT")]
- Float,
-
- [EnumMember(Value = "STRING")]
- String,
-
- [EnumMember(Value = "LIST_OF_STRINGS")]
- ListOfStrings
-}
diff --git a/src/Merge.Client/Ats/Types/Department.cs b/src/Merge.Client/Ats/Types/Department.cs
index 48ad6a2c..5623d730 100644
--- a/src/Merge.Client/Ats/Types/Department.cs
+++ b/src/Merge.Client/Ats/Types/Department.cs
@@ -14,11 +14,14 @@ public class Department
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Eeoc.cs b/src/Merge.Client/Ats/Types/Eeoc.cs
index 4e326135..0b692798 100644
--- a/src/Merge.Client/Ats/Types/Eeoc.cs
+++ b/src/Merge.Client/Ats/Types/Eeoc.cs
@@ -15,11 +15,14 @@ public class Eeoc
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/EmailAddress.cs b/src/Merge.Client/Ats/Types/EmailAddress.cs
index 4c1d6b94..0b8bc5af 100644
--- a/src/Merge.Client/Ats/Types/EmailAddress.cs
+++ b/src/Merge.Client/Ats/Types/EmailAddress.cs
@@ -5,11 +5,14 @@ namespace Merge.Client.Ats;
public class EmailAddress
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/EventTypeEnum.cs b/src/Merge.Client/Ats/Types/EventTypeEnum.cs
index 1e842c7f..418ac83e 100644
--- a/src/Merge.Client/Ats/Types/EventTypeEnum.cs
+++ b/src/Merge.Client/Ats/Types/EventTypeEnum.cs
@@ -104,5 +104,14 @@ public enum EventTypeEnum
MutedIssue,
[EnumMember(Value = "GENERATED_MAGIC_LINK")]
- GeneratedMagicLink
+ GeneratedMagicLink,
+
+ [EnumMember(Value = "ENABLED_MERGE_WEBHOOK")]
+ EnabledMergeWebhook,
+
+ [EnumMember(Value = "DISABLED_MERGE_WEBHOOK")]
+ DisabledMergeWebhook,
+
+ [EnumMember(Value = "MERGE_WEBHOOK_TARGET_CHANGED")]
+ MergeWebhookTargetChanged
}
diff --git a/src/Merge.Client/Ats/Types/Job.cs b/src/Merge.Client/Ats/Types/Job.cs
index 039f15ab..332d3aff 100644
--- a/src/Merge.Client/Ats/Types/Job.cs
+++ b/src/Merge.Client/Ats/Types/Job.cs
@@ -15,11 +15,14 @@ public class Job
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/JobInterviewStage.cs b/src/Merge.Client/Ats/Types/JobInterviewStage.cs
index bf7e9e89..d639948c 100644
--- a/src/Merge.Client/Ats/Types/JobInterviewStage.cs
+++ b/src/Merge.Client/Ats/Types/JobInterviewStage.cs
@@ -15,11 +15,14 @@ public class JobInterviewStage
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/JobPosting.cs b/src/Merge.Client/Ats/Types/JobPosting.cs
index bf80182d..41549049 100644
--- a/src/Merge.Client/Ats/Types/JobPosting.cs
+++ b/src/Merge.Client/Ats/Types/JobPosting.cs
@@ -15,11 +15,14 @@ public class JobPosting
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/LinkedAccountCondition.cs b/src/Merge.Client/Ats/Types/LinkedAccountCondition.cs
deleted file mode 100644
index 3904f7dd..00000000
--- a/src/Merge.Client/Ats/Types/LinkedAccountCondition.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Ats;
-
-public class LinkedAccountCondition
-{
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The common model for a specific condition.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object? Value { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/LinkedAccountConditionRequest.cs b/src/Merge.Client/Ats/Types/LinkedAccountConditionRequest.cs
deleted file mode 100644
index c6724fc0..00000000
--- a/src/Merge.Client/Ats/Types/LinkedAccountConditionRequest.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Ats;
-
-public class LinkedAccountConditionRequest
-{
- ///
- /// The ID indicating which Linked Account Condition this is.
- ///
- [JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object Value { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfiguration.cs b/src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfiguration.cs
deleted file mode 100644
index e3dc8059..00000000
--- a/src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfiguration.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ats;
-
-namespace Merge.Client.Ats;
-
-public class LinkedAccountSelectiveSyncConfiguration
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List? LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs b/src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
deleted file mode 100644
index 50977be5..00000000
--- a/src/Merge.Client/Ats/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ats;
-
-namespace Merge.Client.Ats;
-
-public class LinkedAccountSelectiveSyncConfigurationRequest
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/Offer.cs b/src/Merge.Client/Ats/Types/Offer.cs
index 20a92af6..479855ee 100644
--- a/src/Merge.Client/Ats/Types/Offer.cs
+++ b/src/Merge.Client/Ats/Types/Offer.cs
@@ -15,11 +15,14 @@ public class Offer
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Office.cs b/src/Merge.Client/Ats/Types/Office.cs
index e6e52db9..68f79793 100644
--- a/src/Merge.Client/Ats/Types/Office.cs
+++ b/src/Merge.Client/Ats/Types/Office.cs
@@ -14,11 +14,14 @@ public class Office
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/OperatorSchema.cs b/src/Merge.Client/Ats/Types/OperatorSchema.cs
deleted file mode 100644
index 6cbcf97b..00000000
--- a/src/Merge.Client/Ats/Types/OperatorSchema.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Ats;
-
-public class OperatorSchema
-{
- ///
- /// The operator for which an operator schema is defined.
- ///
- [JsonPropertyName("operator")]
- public string? Operator { get; init; }
-
- ///
- /// Whether the operator can be repeated multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/PaginatedConditionSchemaList.cs b/src/Merge.Client/Ats/Types/PaginatedConditionSchemaList.cs
deleted file mode 100644
index e96e29c2..00000000
--- a/src/Merge.Client/Ats/Types/PaginatedConditionSchemaList.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ats;
-
-namespace Merge.Client.Ats;
-
-public class PaginatedConditionSchemaList
-{
- [JsonPropertyName("next")]
- public string? Next { get; init; }
-
- [JsonPropertyName("previous")]
- public string? Previous { get; init; }
-
- [JsonPropertyName("results")]
- public List? Results { get; init; }
-}
diff --git a/src/Merge.Client/Ats/Types/PhoneNumber.cs b/src/Merge.Client/Ats/Types/PhoneNumber.cs
index 236fe1de..c4b43670 100644
--- a/src/Merge.Client/Ats/Types/PhoneNumber.cs
+++ b/src/Merge.Client/Ats/Types/PhoneNumber.cs
@@ -5,11 +5,14 @@ namespace Merge.Client.Ats;
public class PhoneNumber
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/RejectReason.cs b/src/Merge.Client/Ats/Types/RejectReason.cs
index e2e93ca9..9f2038d4 100644
--- a/src/Merge.Client/Ats/Types/RejectReason.cs
+++ b/src/Merge.Client/Ats/Types/RejectReason.cs
@@ -14,11 +14,14 @@ public class RejectReason
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/RemoteFieldApi.cs b/src/Merge.Client/Ats/Types/RemoteFieldApi.cs
index e114d090..15a4bcf0 100644
--- a/src/Merge.Client/Ats/Types/RemoteFieldApi.cs
+++ b/src/Merge.Client/Ats/Types/RemoteFieldApi.cs
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Merge.Client.Ats;
+using OneOf;
namespace Merge.Client.Ats;
@@ -19,4 +20,7 @@ public class RemoteFieldApi
[JsonPropertyName("advanced_metadata")]
public AdvancedMetadata? AdvancedMetadata { get; init; }
+
+ [JsonPropertyName("coverage")]
+ public OneOf? Coverage { get; init; }
}
diff --git a/src/Merge.Client/Ats/Types/RemoteUser.cs b/src/Merge.Client/Ats/Types/RemoteUser.cs
index a12a0d65..f5715cec 100644
--- a/src/Merge.Client/Ats/Types/RemoteUser.cs
+++ b/src/Merge.Client/Ats/Types/RemoteUser.cs
@@ -14,11 +14,14 @@ public class RemoteUser
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/ScheduledInterview.cs b/src/Merge.Client/Ats/Types/ScheduledInterview.cs
index b26d2f7f..de19fb2e 100644
--- a/src/Merge.Client/Ats/Types/ScheduledInterview.cs
+++ b/src/Merge.Client/Ats/Types/ScheduledInterview.cs
@@ -15,11 +15,14 @@ public class ScheduledInterview
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Scorecard.cs b/src/Merge.Client/Ats/Types/Scorecard.cs
index f7a1d641..29deb325 100644
--- a/src/Merge.Client/Ats/Types/Scorecard.cs
+++ b/src/Merge.Client/Ats/Types/Scorecard.cs
@@ -15,11 +15,14 @@ public class Scorecard
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/ScreeningQuestion.cs b/src/Merge.Client/Ats/Types/ScreeningQuestion.cs
index eb531781..7650d8f9 100644
--- a/src/Merge.Client/Ats/Types/ScreeningQuestion.cs
+++ b/src/Merge.Client/Ats/Types/ScreeningQuestion.cs
@@ -15,11 +15,14 @@ public class ScreeningQuestion
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/ScreeningQuestionOption.cs b/src/Merge.Client/Ats/Types/ScreeningQuestionOption.cs
index 86875d74..c30ab69f 100644
--- a/src/Merge.Client/Ats/Types/ScreeningQuestionOption.cs
+++ b/src/Merge.Client/Ats/Types/ScreeningQuestionOption.cs
@@ -13,11 +13,14 @@ public class ScreeningQuestionOption
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Tag.cs b/src/Merge.Client/Ats/Types/Tag.cs
index bacffe4b..3076209b 100644
--- a/src/Merge.Client/Ats/Types/Tag.cs
+++ b/src/Merge.Client/Ats/Types/Tag.cs
@@ -10,11 +10,14 @@ public class Tag
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ats/Types/Url.cs b/src/Merge.Client/Ats/Types/Url.cs
index 13abbcec..40f0f233 100644
--- a/src/Merge.Client/Ats/Types/Url.cs
+++ b/src/Merge.Client/Ats/Types/Url.cs
@@ -5,11 +5,14 @@ namespace Merge.Client.Ats;
public class Url
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Core/ClientOptions.cs b/src/Merge.Client/Core/ClientOptions.cs
index e992a7d8..c0292fac 100644
--- a/src/Merge.Client/Core/ClientOptions.cs
+++ b/src/Merge.Client/Core/ClientOptions.cs
@@ -1,3 +1,5 @@
+using Merge.Client.Core;
+
namespace Merge.Client;
public partial class ClientOptions
@@ -5,7 +7,7 @@ public partial class ClientOptions
///
/// The Base URL for the API.
///
- public string? BaseUrl { get; init; }
+ public string BaseUrl { get; init; } = Environments.PRODUCTION;
///
/// The http client used to make requests.
diff --git a/src/Merge.Client/Core/Environments.cs b/src/Merge.Client/Core/Environments.cs
new file mode 100644
index 00000000..a18dc522
--- /dev/null
+++ b/src/Merge.Client/Core/Environments.cs
@@ -0,0 +1,10 @@
+namespace Merge.Client.Core;
+
+public class Environments
+{
+ public static string PRODUCTION = "https://api.merge.dev";
+
+ public static string SANDBOX = "https://api-sandbox.merge.dev";
+
+ public static string PRODUCTION_EU = "https://api-eu.merge.dev";
+}
diff --git a/src/Merge.Client/Core/RawClient.cs b/src/Merge.Client/Core/RawClient.cs
index be67e572..a00e9053 100644
--- a/src/Merge.Client/Core/RawClient.cs
+++ b/src/Merge.Client/Core/RawClient.cs
@@ -106,7 +106,7 @@ private Dictionary GetHeaders(ApiRequest request)
private string BuildUrl(string path, Dictionary query)
{
- var url = $"{_clientOptions.BaseUrl}/{path}";
+ var url = $"{_clientOptions.BaseUrl}{path}";
if (query.Count > 0)
{
url += "?";
diff --git a/src/Merge.Client/Crm/AuditTrail/requests/AuditTrailListRequest.cs b/src/Merge.Client/Crm/AuditTrail/requests/AuditTrailListRequest.cs
index 4e34734d..59025583 100644
--- a/src/Merge.Client/Crm/AuditTrail/requests/AuditTrailListRequest.cs
+++ b/src/Merge.Client/Crm/AuditTrail/requests/AuditTrailListRequest.cs
@@ -13,7 +13,7 @@ public class AuditTrailListRequest
public string? EndDate { get; init; }
///
- /// 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`
+ /// 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`
///
public string? EventType { get; init; }
diff --git a/src/Merge.Client/Crm/CrmClient.cs b/src/Merge.Client/Crm/CrmClient.cs
index 30632645..e7816fbd 100644
--- a/src/Merge.Client/Crm/CrmClient.cs
+++ b/src/Merge.Client/Crm/CrmClient.cs
@@ -35,7 +35,6 @@ public CrmClient(RawClient client)
Opportunities = new OpportunitiesClient(_client);
Passthrough = new PassthroughClient(_client);
RegenerateKey = new RegenerateKeyClient(_client);
- SelectiveSync = new SelectiveSyncClient(_client);
Stages = new StagesClient(_client);
SyncStatus = new SyncStatusClient(_client);
ForceResync = new ForceResyncClient(_client);
@@ -94,8 +93,6 @@ public CrmClient(RawClient client)
public RegenerateKeyClient RegenerateKey { get; }
- public SelectiveSyncClient SelectiveSync { get; }
-
public StagesClient Stages { get; }
public SyncStatusClient SyncStatus { get; }
diff --git a/src/Merge.Client/Crm/LinkToken/requests/EndUserDetailsRequest.cs b/src/Merge.Client/Crm/LinkToken/requests/EndUserDetailsRequest.cs
index 6abca1db..bff145e8 100644
--- a/src/Merge.Client/Crm/LinkToken/requests/EndUserDetailsRequest.cs
+++ b/src/Merge.Client/Crm/LinkToken/requests/EndUserDetailsRequest.cs
@@ -56,4 +56,9 @@ public Dictionary<
/// The language code for the language to localize Merge Link to.
///
public string? Language { get; init; }
+
+ ///
+ /// A JSON object containing integration-specific configuration options.
+ ///
+ public Dictionary? IntegrationSpecificConfig { get; init; }
}
diff --git a/src/Merge.Client/Crm/SelectiveSync/SelectiveSyncClient.cs b/src/Merge.Client/Crm/SelectiveSync/SelectiveSyncClient.cs
deleted file mode 100644
index 47c00584..00000000
--- a/src/Merge.Client/Crm/SelectiveSync/SelectiveSyncClient.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System.Text.Json;
-using Merge.Client;
-using Merge.Client.Crm;
-
-namespace Merge.Client.Crm;
-
-public class SelectiveSyncClient
-{
- private RawClient _client;
-
- public SelectiveSyncClient(RawClient client)
- {
- _client = client;
- }
-
- ///
- /// Get a linked account's selective syncs.
- ///
- public async Task> ConfigurationsListAsync()
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/crm/v1/selective-sync/configurations"
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Replace a linked account's selective syncs.
- ///
- public async Task> ConfigurationsUpdateAsync(
- LinkedAccountSelectiveSyncConfigurationListRequest request
- )
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Put,
- Path = "/crm/v1/selective-sync/configurations",
- Body = request
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Get metadata for the conditions available to a linked account.
- ///
- public async Task MetaListAsync(
- SelectiveSyncMetaListRequest request
- )
- {
- var _query = new Dictionary() { };
- if (request.CommonModel != null)
- {
- _query["common_model"] = request.CommonModel;
- }
- if (request.Cursor != null)
- {
- _query["cursor"] = request.Cursor;
- }
- if (request.PageSize != null)
- {
- _query["page_size"] = request.PageSize;
- }
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/crm/v1/selective-sync/meta",
- Query = _query
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize(responseBody);
- }
- throw new Exception();
- }
-}
diff --git a/src/Merge.Client/Crm/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs b/src/Merge.Client/Crm/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
deleted file mode 100644
index 6ac56501..00000000
--- a/src/Merge.Client/Crm/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Merge.Client.Crm;
-
-namespace Merge.Client.Crm;
-
-public class LinkedAccountSelectiveSyncConfigurationListRequest
-{
- ///
- /// The selective syncs associated with a linked account.
- ///
- public List SyncConfigurations { get; init; }
-}
diff --git a/src/Merge.Client/Crm/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs b/src/Merge.Client/Crm/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
deleted file mode 100644
index b8e21ddb..00000000
--- a/src/Merge.Client/Crm/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace Merge.Client.Crm;
-
-public class SelectiveSyncMetaListRequest
-{
- public string? CommonModel { get; init; }
-
- ///
- /// The pagination cursor value.
- ///
- public string? Cursor { get; init; }
-
- ///
- /// Number of results to return per page.
- ///
- public int? PageSize { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/Account.cs b/src/Merge.Client/Crm/Types/Account.cs
index 38c5376a..83bbbc0f 100644
--- a/src/Merge.Client/Crm/Types/Account.cs
+++ b/src/Merge.Client/Crm/Types/Account.cs
@@ -15,11 +15,14 @@ public class Account
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/AccountRequest.cs b/src/Merge.Client/Crm/Types/AccountRequest.cs
index f2c0c2ac..18bf6076 100644
--- a/src/Merge.Client/Crm/Types/AccountRequest.cs
+++ b/src/Merge.Client/Crm/Types/AccountRequest.cs
@@ -42,6 +42,9 @@ public class AccountRequest
[JsonPropertyName("number_of_employees")]
public int? NumberOfEmployees { get; init; }
+ [JsonPropertyName("addresses")]
+ public List? Addresses { get; init; }
+
///
/// The last date (either most recent or furthest in the future) of when an activity occurs in an account.
///
diff --git a/src/Merge.Client/Crm/Types/Address.cs b/src/Merge.Client/Crm/Types/Address.cs
index 33ebd32c..2bac1025 100644
--- a/src/Merge.Client/Crm/Types/Address.cs
+++ b/src/Merge.Client/Crm/Types/Address.cs
@@ -5,11 +5,14 @@ namespace Merge.Client.Crm;
public class Address
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/Association.cs b/src/Merge.Client/Crm/Types/Association.cs
index ae287ac8..fdb1e0ef 100644
--- a/src/Merge.Client/Crm/Types/Association.cs
+++ b/src/Merge.Client/Crm/Types/Association.cs
@@ -6,11 +6,14 @@ namespace Merge.Client.Crm;
public class Association
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
@@ -21,6 +24,9 @@ public class Association
[JsonPropertyName("target_object")]
public Dictionary? TargetObject { get; init; }
+ ///
+ /// The association type the association belongs to.
+ ///
[JsonPropertyName("association_type")]
public OneOf? AssociationType { get; init; }
}
diff --git a/src/Merge.Client/Crm/Types/AssociationSubType.cs b/src/Merge.Client/Crm/Types/AssociationSubType.cs
index a75a41f7..4e285d58 100644
--- a/src/Merge.Client/Crm/Types/AssociationSubType.cs
+++ b/src/Merge.Client/Crm/Types/AssociationSubType.cs
@@ -7,11 +7,14 @@ public class AssociationSubType
[JsonPropertyName("id")]
public string? Id { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/AssociationType.cs b/src/Merge.Client/Crm/Types/AssociationType.cs
index 0940b2fc..3ede02cc 100644
--- a/src/Merge.Client/Crm/Types/AssociationType.cs
+++ b/src/Merge.Client/Crm/Types/AssociationType.cs
@@ -14,15 +14,21 @@ public class AssociationType
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
+ ///
+ /// The class of the source object (Custom Object or Common Model) for the association type.
+ ///
[JsonPropertyName("source_object_class")]
public Dictionary? SourceObjectClass { get; init; }
diff --git a/src/Merge.Client/Crm/Types/AuditLogEvent.cs b/src/Merge.Client/Crm/Types/AuditLogEvent.cs
index b8846eb4..5c8dacbd 100644
--- a/src/Merge.Client/Crm/Types/AuditLogEvent.cs
+++ b/src/Merge.Client/Crm/Types/AuditLogEvent.cs
@@ -73,6 +73,9 @@ public class AuditLogEvent
/// - `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
///
[JsonPropertyName("event_type")]
public EventTypeEnum EventType { get; init; }
diff --git a/src/Merge.Client/Crm/Types/ConditionSchema.cs b/src/Merge.Client/Crm/Types/ConditionSchema.cs
deleted file mode 100644
index 2d17957f..00000000
--- a/src/Merge.Client/Crm/Types/ConditionSchema.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Crm;
-
-namespace Merge.Client.Crm;
-
-public class ConditionSchema
-{
- ///
- /// The ID of the condition schema. This ID is used when updating selective syncs for a linked account.
- ///
- [JsonPropertyName("id")]
- public string Id { get; init; }
-
- ///
- /// The common model for which a condition schema is defined.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-
- ///
- /// Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-
- ///
- /// The type of value(s) that can be set for this condition.
- ///
- /// - `BOOLEAN` - BOOLEAN
- /// - `DATE` - DATE
- /// - `DATE_TIME` - DATE_TIME
- /// - `INTEGER` - INTEGER
- /// - `FLOAT` - FLOAT
- /// - `STRING` - STRING
- /// - `LIST_OF_STRINGS` - LIST_OF_STRINGS
- ///
- [JsonPropertyName("condition_type")]
- public ConditionTypeEnum ConditionType { get; init; }
-
- ///
- /// The schemas for the operators that can be used on a condition.
- ///
- [JsonPropertyName("operators")]
- public List Operators { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/ConditionTypeEnum.cs b/src/Merge.Client/Crm/Types/ConditionTypeEnum.cs
deleted file mode 100644
index 30e58de4..00000000
--- a/src/Merge.Client/Crm/Types/ConditionTypeEnum.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Runtime.Serialization;
-
-namespace Merge.Client.Crm;
-
-public enum ConditionTypeEnum
-{
- [EnumMember(Value = "BOOLEAN")]
- Boolean,
-
- [EnumMember(Value = "DATE")]
- Date,
-
- [EnumMember(Value = "DATE_TIME")]
- DateTime,
-
- [EnumMember(Value = "INTEGER")]
- Integer,
-
- [EnumMember(Value = "FLOAT")]
- Float,
-
- [EnumMember(Value = "STRING")]
- String,
-
- [EnumMember(Value = "LIST_OF_STRINGS")]
- ListOfStrings
-}
diff --git a/src/Merge.Client/Crm/Types/Contact.cs b/src/Merge.Client/Crm/Types/Contact.cs
index 6c4aed18..8a9e29bb 100644
--- a/src/Merge.Client/Crm/Types/Contact.cs
+++ b/src/Merge.Client/Crm/Types/Contact.cs
@@ -15,11 +15,14 @@ public class Contact
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/CustomObject.cs b/src/Merge.Client/Crm/Types/CustomObject.cs
index 52efe83b..78d5f047 100644
--- a/src/Merge.Client/Crm/Types/CustomObject.cs
+++ b/src/Merge.Client/Crm/Types/CustomObject.cs
@@ -14,18 +14,27 @@ public class CustomObject
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
+ ///
+ /// The custom object class the custom object record belongs to.
+ ///
[JsonPropertyName("object_class")]
public string? ObjectClass { get; init; }
+ ///
+ /// The fields and values contained within the custom object record.
+ ///
[JsonPropertyName("fields")]
public Dictionary? Fields { get; init; }
diff --git a/src/Merge.Client/Crm/Types/CustomObjectClass.cs b/src/Merge.Client/Crm/Types/CustomObjectClass.cs
index 39c4ed1e..615ba82b 100644
--- a/src/Merge.Client/Crm/Types/CustomObjectClass.cs
+++ b/src/Merge.Client/Crm/Types/CustomObjectClass.cs
@@ -20,18 +20,30 @@ public class CustomObjectClass
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
+ ///
+ /// The custom object class's name.
+ ///
[JsonPropertyName("name")]
public string? Name { get; init; }
+ ///
+ /// The custom object class's description.
+ ///
[JsonPropertyName("description")]
public string? Description { get; init; }
+ ///
+ /// The custom object class's singular and plural labels.
+ ///
[JsonPropertyName("labels")]
public Dictionary? Labels { get; init; }
[JsonPropertyName("fields")]
public List? Fields { get; init; }
+ ///
+ /// The types of associations with other models that the custom object class can have.
+ ///
[JsonPropertyName("association_types")]
public List>? AssociationTypes { get; init; }
}
diff --git a/src/Merge.Client/Crm/Types/EmailAddress.cs b/src/Merge.Client/Crm/Types/EmailAddress.cs
index 5d31b083..6ce898c5 100644
--- a/src/Merge.Client/Crm/Types/EmailAddress.cs
+++ b/src/Merge.Client/Crm/Types/EmailAddress.cs
@@ -4,11 +4,14 @@ namespace Merge.Client.Crm;
public class EmailAddress
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/Engagement.cs b/src/Merge.Client/Crm/Types/Engagement.cs
index 59938338..5f97400f 100644
--- a/src/Merge.Client/Crm/Types/Engagement.cs
+++ b/src/Merge.Client/Crm/Types/Engagement.cs
@@ -15,11 +15,14 @@ public class Engagement
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/EngagementType.cs b/src/Merge.Client/Crm/Types/EngagementType.cs
index 68b05ce8..79c13a68 100644
--- a/src/Merge.Client/Crm/Types/EngagementType.cs
+++ b/src/Merge.Client/Crm/Types/EngagementType.cs
@@ -14,11 +14,14 @@ public class EngagementType
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/EventTypeEnum.cs b/src/Merge.Client/Crm/Types/EventTypeEnum.cs
index 2e90505d..5fbf0fa0 100644
--- a/src/Merge.Client/Crm/Types/EventTypeEnum.cs
+++ b/src/Merge.Client/Crm/Types/EventTypeEnum.cs
@@ -104,5 +104,14 @@ public enum EventTypeEnum
MutedIssue,
[EnumMember(Value = "GENERATED_MAGIC_LINK")]
- GeneratedMagicLink
+ GeneratedMagicLink,
+
+ [EnumMember(Value = "ENABLED_MERGE_WEBHOOK")]
+ EnabledMergeWebhook,
+
+ [EnumMember(Value = "DISABLED_MERGE_WEBHOOK")]
+ DisabledMergeWebhook,
+
+ [EnumMember(Value = "MERGE_WEBHOOK_TARGET_CHANGED")]
+ MergeWebhookTargetChanged
}
diff --git a/src/Merge.Client/Crm/Types/Lead.cs b/src/Merge.Client/Crm/Types/Lead.cs
index 9dcd7adc..33ccf43a 100644
--- a/src/Merge.Client/Crm/Types/Lead.cs
+++ b/src/Merge.Client/Crm/Types/Lead.cs
@@ -15,11 +15,14 @@ public class Lead
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/LinkedAccountCondition.cs b/src/Merge.Client/Crm/Types/LinkedAccountCondition.cs
deleted file mode 100644
index d0d195c0..00000000
--- a/src/Merge.Client/Crm/Types/LinkedAccountCondition.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Crm;
-
-public class LinkedAccountCondition
-{
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The common model for a specific condition.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object? Value { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/LinkedAccountConditionRequest.cs b/src/Merge.Client/Crm/Types/LinkedAccountConditionRequest.cs
deleted file mode 100644
index 4c329111..00000000
--- a/src/Merge.Client/Crm/Types/LinkedAccountConditionRequest.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Crm;
-
-public class LinkedAccountConditionRequest
-{
- ///
- /// The ID indicating which Linked Account Condition this is.
- ///
- [JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object Value { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfiguration.cs b/src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfiguration.cs
deleted file mode 100644
index 2d9b8419..00000000
--- a/src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfiguration.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Crm;
-
-namespace Merge.Client.Crm;
-
-public class LinkedAccountSelectiveSyncConfiguration
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List? LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs b/src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
deleted file mode 100644
index 9a931bad..00000000
--- a/src/Merge.Client/Crm/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Crm;
-
-namespace Merge.Client.Crm;
-
-public class LinkedAccountSelectiveSyncConfigurationRequest
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/Note.cs b/src/Merge.Client/Crm/Types/Note.cs
index 34c6cff3..5234ffc1 100644
--- a/src/Merge.Client/Crm/Types/Note.cs
+++ b/src/Merge.Client/Crm/Types/Note.cs
@@ -15,11 +15,14 @@ public class Note
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/OperatorSchema.cs b/src/Merge.Client/Crm/Types/OperatorSchema.cs
deleted file mode 100644
index 052a17a3..00000000
--- a/src/Merge.Client/Crm/Types/OperatorSchema.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Crm;
-
-public class OperatorSchema
-{
- ///
- /// The operator for which an operator schema is defined.
- ///
- [JsonPropertyName("operator")]
- public string? Operator { get; init; }
-
- ///
- /// Whether the operator can be repeated multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/Opportunity.cs b/src/Merge.Client/Crm/Types/Opportunity.cs
index 3a7fe182..9765f0d1 100644
--- a/src/Merge.Client/Crm/Types/Opportunity.cs
+++ b/src/Merge.Client/Crm/Types/Opportunity.cs
@@ -15,11 +15,14 @@ public class Opportunity
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/PaginatedConditionSchemaList.cs b/src/Merge.Client/Crm/Types/PaginatedConditionSchemaList.cs
deleted file mode 100644
index 07adb441..00000000
--- a/src/Merge.Client/Crm/Types/PaginatedConditionSchemaList.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Crm;
-
-namespace Merge.Client.Crm;
-
-public class PaginatedConditionSchemaList
-{
- [JsonPropertyName("next")]
- public string? Next { get; init; }
-
- [JsonPropertyName("previous")]
- public string? Previous { get; init; }
-
- [JsonPropertyName("results")]
- public List? Results { get; init; }
-}
diff --git a/src/Merge.Client/Crm/Types/PatchedAccountRequest.cs b/src/Merge.Client/Crm/Types/PatchedAccountRequest.cs
index eee3708b..f2a19918 100644
--- a/src/Merge.Client/Crm/Types/PatchedAccountRequest.cs
+++ b/src/Merge.Client/Crm/Types/PatchedAccountRequest.cs
@@ -41,6 +41,9 @@ public class PatchedAccountRequest
[JsonPropertyName("number_of_employees")]
public int? NumberOfEmployees { get; init; }
+ [JsonPropertyName("addresses")]
+ public List? Addresses { get; init; }
+
///
/// The last date (either most recent or furthest in the future) of when an activity occurs in an account.
///
diff --git a/src/Merge.Client/Crm/Types/PhoneNumber.cs b/src/Merge.Client/Crm/Types/PhoneNumber.cs
index ed4b3f2f..93ce0de3 100644
--- a/src/Merge.Client/Crm/Types/PhoneNumber.cs
+++ b/src/Merge.Client/Crm/Types/PhoneNumber.cs
@@ -4,11 +4,14 @@ namespace Merge.Client.Crm;
public class PhoneNumber
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/RemoteFieldApi.cs b/src/Merge.Client/Crm/Types/RemoteFieldApi.cs
index 046b9949..78e1f93a 100644
--- a/src/Merge.Client/Crm/Types/RemoteFieldApi.cs
+++ b/src/Merge.Client/Crm/Types/RemoteFieldApi.cs
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Merge.Client.Crm;
+using OneOf;
namespace Merge.Client.Crm;
@@ -19,4 +20,7 @@ public class RemoteFieldApi
[JsonPropertyName("advanced_metadata")]
public AdvancedMetadata? AdvancedMetadata { get; init; }
+
+ [JsonPropertyName("coverage")]
+ public OneOf? Coverage { get; init; }
}
diff --git a/src/Merge.Client/Crm/Types/RemoteFieldClassForCustomObjectClass.cs b/src/Merge.Client/Crm/Types/RemoteFieldClassForCustomObjectClass.cs
index 4662ee64..e500e7bd 100644
--- a/src/Merge.Client/Crm/Types/RemoteFieldClassForCustomObjectClass.cs
+++ b/src/Merge.Client/Crm/Types/RemoteFieldClassForCustomObjectClass.cs
@@ -5,11 +5,14 @@ namespace Merge.Client.Crm;
public class RemoteFieldClassForCustomObjectClass
{
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/Stage.cs b/src/Merge.Client/Crm/Types/Stage.cs
index 0130aeee..0164cd5b 100644
--- a/src/Merge.Client/Crm/Types/Stage.cs
+++ b/src/Merge.Client/Crm/Types/Stage.cs
@@ -14,11 +14,14 @@ public class Stage
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/Task.cs b/src/Merge.Client/Crm/Types/Task.cs
index 1acd16de..36be7c40 100644
--- a/src/Merge.Client/Crm/Types/Task.cs
+++ b/src/Merge.Client/Crm/Types/Task.cs
@@ -15,11 +15,14 @@ public class Task
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Crm/Types/User.cs b/src/Merge.Client/Crm/Types/User.cs
index e0acb848..eb6d606e 100644
--- a/src/Merge.Client/Crm/Types/User.cs
+++ b/src/Merge.Client/Crm/Types/User.cs
@@ -14,11 +14,14 @@ public class User
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Filestorage/AuditTrail/requests/AuditTrailListRequest.cs b/src/Merge.Client/Filestorage/AuditTrail/requests/AuditTrailListRequest.cs
index 99b44b03..b704eb30 100644
--- a/src/Merge.Client/Filestorage/AuditTrail/requests/AuditTrailListRequest.cs
+++ b/src/Merge.Client/Filestorage/AuditTrail/requests/AuditTrailListRequest.cs
@@ -13,7 +13,7 @@ public class AuditTrailListRequest
public string? EndDate { get; init; }
///
- /// 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`
+ /// 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`
///
public string? EventType { get; init; }
diff --git a/src/Merge.Client/Filestorage/FilestorageClient.cs b/src/Merge.Client/Filestorage/FilestorageClient.cs
index ebc325aa..9f14b6fc 100644
--- a/src/Merge.Client/Filestorage/FilestorageClient.cs
+++ b/src/Merge.Client/Filestorage/FilestorageClient.cs
@@ -28,7 +28,6 @@ public FilestorageClient(RawClient client)
LinkedAccounts = new LinkedAccountsClient(_client);
Passthrough = new PassthroughClient(_client);
RegenerateKey = new RegenerateKeyClient(_client);
- SelectiveSync = new SelectiveSyncClient(_client);
SyncStatus = new SyncStatusClient(_client);
ForceResync = new ForceResyncClient(_client);
Users = new UsersClient(_client);
@@ -71,8 +70,6 @@ public FilestorageClient(RawClient client)
public RegenerateKeyClient RegenerateKey { get; }
- public SelectiveSyncClient SelectiveSync { get; }
-
public SyncStatusClient SyncStatus { get; }
public ForceResyncClient ForceResync { get; }
diff --git a/src/Merge.Client/Filestorage/LinkToken/requests/EndUserDetailsRequest.cs b/src/Merge.Client/Filestorage/LinkToken/requests/EndUserDetailsRequest.cs
index c354b837..b889df1d 100644
--- a/src/Merge.Client/Filestorage/LinkToken/requests/EndUserDetailsRequest.cs
+++ b/src/Merge.Client/Filestorage/LinkToken/requests/EndUserDetailsRequest.cs
@@ -56,4 +56,9 @@ public Dictionary<
/// The language code for the language to localize Merge Link to.
///
public string? Language { get; init; }
+
+ ///
+ /// A JSON object containing integration-specific configuration options.
+ ///
+ public Dictionary? IntegrationSpecificConfig { get; init; }
}
diff --git a/src/Merge.Client/Filestorage/SelectiveSync/SelectiveSyncClient.cs b/src/Merge.Client/Filestorage/SelectiveSync/SelectiveSyncClient.cs
deleted file mode 100644
index d158db07..00000000
--- a/src/Merge.Client/Filestorage/SelectiveSync/SelectiveSyncClient.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System.Text.Json;
-using Merge.Client;
-using Merge.Client.Filestorage;
-
-namespace Merge.Client.Filestorage;
-
-public class SelectiveSyncClient
-{
- private RawClient _client;
-
- public SelectiveSyncClient(RawClient client)
- {
- _client = client;
- }
-
- ///
- /// Get a linked account's selective syncs.
- ///
- public async Task> ConfigurationsListAsync()
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/filestorage/v1/selective-sync/configurations"
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Replace a linked account's selective syncs.
- ///
- public async Task> ConfigurationsUpdateAsync(
- LinkedAccountSelectiveSyncConfigurationListRequest request
- )
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Put,
- Path = "/filestorage/v1/selective-sync/configurations",
- Body = request
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Get metadata for the conditions available to a linked account.
- ///
- public async Task MetaListAsync(
- SelectiveSyncMetaListRequest request
- )
- {
- var _query = new Dictionary() { };
- if (request.CommonModel != null)
- {
- _query["common_model"] = request.CommonModel;
- }
- if (request.Cursor != null)
- {
- _query["cursor"] = request.Cursor;
- }
- if (request.PageSize != null)
- {
- _query["page_size"] = request.PageSize;
- }
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/filestorage/v1/selective-sync/meta",
- Query = _query
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize(responseBody);
- }
- throw new Exception();
- }
-}
diff --git a/src/Merge.Client/Filestorage/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs b/src/Merge.Client/Filestorage/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
deleted file mode 100644
index 68fd416f..00000000
--- a/src/Merge.Client/Filestorage/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Merge.Client.Filestorage;
-
-namespace Merge.Client.Filestorage;
-
-public class LinkedAccountSelectiveSyncConfigurationListRequest
-{
- ///
- /// The selective syncs associated with a linked account.
- ///
- public List SyncConfigurations { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs b/src/Merge.Client/Filestorage/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
deleted file mode 100644
index a40771cb..00000000
--- a/src/Merge.Client/Filestorage/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace Merge.Client.Filestorage;
-
-public class SelectiveSyncMetaListRequest
-{
- public string? CommonModel { get; init; }
-
- ///
- /// The pagination cursor value.
- ///
- public string? Cursor { get; init; }
-
- ///
- /// Number of results to return per page.
- ///
- public int? PageSize { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/AuditLogEvent.cs b/src/Merge.Client/Filestorage/Types/AuditLogEvent.cs
index af62ad92..a774cb34 100644
--- a/src/Merge.Client/Filestorage/Types/AuditLogEvent.cs
+++ b/src/Merge.Client/Filestorage/Types/AuditLogEvent.cs
@@ -73,6 +73,9 @@ public class AuditLogEvent
/// - `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
///
[JsonPropertyName("event_type")]
public EventTypeEnum EventType { get; init; }
diff --git a/src/Merge.Client/Filestorage/Types/ConditionSchema.cs b/src/Merge.Client/Filestorage/Types/ConditionSchema.cs
deleted file mode 100644
index 816ffae4..00000000
--- a/src/Merge.Client/Filestorage/Types/ConditionSchema.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Filestorage;
-
-namespace Merge.Client.Filestorage;
-
-public class ConditionSchema
-{
- ///
- /// The ID of the condition schema. This ID is used when updating selective syncs for a linked account.
- ///
- [JsonPropertyName("id")]
- public string Id { get; init; }
-
- ///
- /// The common model for which a condition schema is defined.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-
- ///
- /// Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-
- ///
- /// The type of value(s) that can be set for this condition.
- ///
- /// - `BOOLEAN` - BOOLEAN
- /// - `DATE` - DATE
- /// - `DATE_TIME` - DATE_TIME
- /// - `INTEGER` - INTEGER
- /// - `FLOAT` - FLOAT
- /// - `STRING` - STRING
- /// - `LIST_OF_STRINGS` - LIST_OF_STRINGS
- ///
- [JsonPropertyName("condition_type")]
- public ConditionTypeEnum ConditionType { get; init; }
-
- ///
- /// The schemas for the operators that can be used on a condition.
- ///
- [JsonPropertyName("operators")]
- public List Operators { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/ConditionTypeEnum.cs b/src/Merge.Client/Filestorage/Types/ConditionTypeEnum.cs
deleted file mode 100644
index 2f3c0226..00000000
--- a/src/Merge.Client/Filestorage/Types/ConditionTypeEnum.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Runtime.Serialization;
-
-namespace Merge.Client.Filestorage;
-
-public enum ConditionTypeEnum
-{
- [EnumMember(Value = "BOOLEAN")]
- Boolean,
-
- [EnumMember(Value = "DATE")]
- Date,
-
- [EnumMember(Value = "DATE_TIME")]
- DateTime,
-
- [EnumMember(Value = "INTEGER")]
- Integer,
-
- [EnumMember(Value = "FLOAT")]
- Float,
-
- [EnumMember(Value = "STRING")]
- String,
-
- [EnumMember(Value = "LIST_OF_STRINGS")]
- ListOfStrings
-}
diff --git a/src/Merge.Client/Filestorage/Types/Drive.cs b/src/Merge.Client/Filestorage/Types/Drive.cs
index 2d479df9..a042cf27 100644
--- a/src/Merge.Client/Filestorage/Types/Drive.cs
+++ b/src/Merge.Client/Filestorage/Types/Drive.cs
@@ -13,11 +13,14 @@ public class Drive
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Filestorage/Types/EventTypeEnum.cs b/src/Merge.Client/Filestorage/Types/EventTypeEnum.cs
index 4eb48f24..866b2ade 100644
--- a/src/Merge.Client/Filestorage/Types/EventTypeEnum.cs
+++ b/src/Merge.Client/Filestorage/Types/EventTypeEnum.cs
@@ -104,5 +104,14 @@ public enum EventTypeEnum
MutedIssue,
[EnumMember(Value = "GENERATED_MAGIC_LINK")]
- GeneratedMagicLink
+ GeneratedMagicLink,
+
+ [EnumMember(Value = "ENABLED_MERGE_WEBHOOK")]
+ EnabledMergeWebhook,
+
+ [EnumMember(Value = "DISABLED_MERGE_WEBHOOK")]
+ DisabledMergeWebhook,
+
+ [EnumMember(Value = "MERGE_WEBHOOK_TARGET_CHANGED")]
+ MergeWebhookTargetChanged
}
diff --git a/src/Merge.Client/Filestorage/Types/File.cs b/src/Merge.Client/Filestorage/Types/File.cs
index 5b8922ac..b6293564 100644
--- a/src/Merge.Client/Filestorage/Types/File.cs
+++ b/src/Merge.Client/Filestorage/Types/File.cs
@@ -15,11 +15,14 @@ public class File
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Filestorage/Types/Folder.cs b/src/Merge.Client/Filestorage/Types/Folder.cs
index a1f8d7a1..05213075 100644
--- a/src/Merge.Client/Filestorage/Types/Folder.cs
+++ b/src/Merge.Client/Filestorage/Types/Folder.cs
@@ -15,11 +15,14 @@ public class Folder
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Filestorage/Types/Group.cs b/src/Merge.Client/Filestorage/Types/Group.cs
index fab321f8..fefca27a 100644
--- a/src/Merge.Client/Filestorage/Types/Group.cs
+++ b/src/Merge.Client/Filestorage/Types/Group.cs
@@ -13,11 +13,14 @@ public class Group
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Filestorage/Types/LinkedAccountCondition.cs b/src/Merge.Client/Filestorage/Types/LinkedAccountCondition.cs
deleted file mode 100644
index 290dfafa..00000000
--- a/src/Merge.Client/Filestorage/Types/LinkedAccountCondition.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Filestorage;
-
-public class LinkedAccountCondition
-{
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The common model for a specific condition.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object? Value { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/LinkedAccountConditionRequest.cs b/src/Merge.Client/Filestorage/Types/LinkedAccountConditionRequest.cs
deleted file mode 100644
index 06360833..00000000
--- a/src/Merge.Client/Filestorage/Types/LinkedAccountConditionRequest.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Filestorage;
-
-public class LinkedAccountConditionRequest
-{
- ///
- /// The ID indicating which Linked Account Condition this is.
- ///
- [JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object Value { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfiguration.cs b/src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfiguration.cs
deleted file mode 100644
index 0d392319..00000000
--- a/src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfiguration.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Filestorage;
-
-namespace Merge.Client.Filestorage;
-
-public class LinkedAccountSelectiveSyncConfiguration
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List? LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs b/src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
deleted file mode 100644
index e8fedefc..00000000
--- a/src/Merge.Client/Filestorage/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Filestorage;
-
-namespace Merge.Client.Filestorage;
-
-public class LinkedAccountSelectiveSyncConfigurationRequest
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/OperatorSchema.cs b/src/Merge.Client/Filestorage/Types/OperatorSchema.cs
deleted file mode 100644
index 60edb4da..00000000
--- a/src/Merge.Client/Filestorage/Types/OperatorSchema.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Filestorage;
-
-public class OperatorSchema
-{
- ///
- /// The operator for which an operator schema is defined.
- ///
- [JsonPropertyName("operator")]
- public string? Operator { get; init; }
-
- ///
- /// Whether the operator can be repeated multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/PaginatedConditionSchemaList.cs b/src/Merge.Client/Filestorage/Types/PaginatedConditionSchemaList.cs
deleted file mode 100644
index 9016699c..00000000
--- a/src/Merge.Client/Filestorage/Types/PaginatedConditionSchemaList.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Filestorage;
-
-namespace Merge.Client.Filestorage;
-
-public class PaginatedConditionSchemaList
-{
- [JsonPropertyName("next")]
- public string? Next { get; init; }
-
- [JsonPropertyName("previous")]
- public string? Previous { get; init; }
-
- [JsonPropertyName("results")]
- public List? Results { get; init; }
-}
diff --git a/src/Merge.Client/Filestorage/Types/Permission.cs b/src/Merge.Client/Filestorage/Types/Permission.cs
index 852daa32..b10bf87f 100644
--- a/src/Merge.Client/Filestorage/Types/Permission.cs
+++ b/src/Merge.Client/Filestorage/Types/Permission.cs
@@ -15,11 +15,14 @@ public class Permission
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Filestorage/Types/RemoteFieldApi.cs b/src/Merge.Client/Filestorage/Types/RemoteFieldApi.cs
index c88513cf..a8d50273 100644
--- a/src/Merge.Client/Filestorage/Types/RemoteFieldApi.cs
+++ b/src/Merge.Client/Filestorage/Types/RemoteFieldApi.cs
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Merge.Client.Filestorage;
+using OneOf;
namespace Merge.Client.Filestorage;
@@ -19,4 +20,7 @@ public class RemoteFieldApi
[JsonPropertyName("advanced_metadata")]
public AdvancedMetadata? AdvancedMetadata { get; init; }
+
+ [JsonPropertyName("coverage")]
+ public OneOf? Coverage { get; init; }
}
diff --git a/src/Merge.Client/Filestorage/Types/User.cs b/src/Merge.Client/Filestorage/Types/User.cs
index be60b5c4..8c348f4b 100644
--- a/src/Merge.Client/Filestorage/Types/User.cs
+++ b/src/Merge.Client/Filestorage/Types/User.cs
@@ -13,11 +13,14 @@ public class User
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/AuditTrail/requests/AuditTrailListRequest.cs b/src/Merge.Client/Hris/AuditTrail/requests/AuditTrailListRequest.cs
index 30c4b84d..a0182a4d 100644
--- a/src/Merge.Client/Hris/AuditTrail/requests/AuditTrailListRequest.cs
+++ b/src/Merge.Client/Hris/AuditTrail/requests/AuditTrailListRequest.cs
@@ -13,7 +13,7 @@ public class AuditTrailListRequest
public string? EndDate { get; init; }
///
- /// 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`
+ /// 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`
///
public string? EventType { get; init; }
diff --git a/src/Merge.Client/Hris/Groups/GroupsClient.cs b/src/Merge.Client/Hris/Groups/GroupsClient.cs
index d8377d4e..1680d8bc 100644
--- a/src/Merge.Client/Hris/Groups/GroupsClient.cs
+++ b/src/Merge.Client/Hris/Groups/GroupsClient.cs
@@ -39,6 +39,10 @@ public async Task ListAsync(GroupsListRequest request)
{
_query["include_remote_data"] = request.IncludeRemoteData;
}
+ if (request.IsCommonlyUsedAsTeam != null)
+ {
+ _query["is_commonly_used_as_team"] = request.IsCommonlyUsedAsTeam;
+ }
if (request.ModifiedAfter != null)
{
_query["modified_after"] = request.ModifiedAfter;
diff --git a/src/Merge.Client/Hris/Groups/requests/GroupsListRequest.cs b/src/Merge.Client/Hris/Groups/requests/GroupsListRequest.cs
index fcb81239..a4cf8c7f 100644
--- a/src/Merge.Client/Hris/Groups/requests/GroupsListRequest.cs
+++ b/src/Merge.Client/Hris/Groups/requests/GroupsListRequest.cs
@@ -27,6 +27,11 @@ public class GroupsListRequest
///
public bool? IncludeRemoteData { get; init; }
+ ///
+ /// If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform.
+ ///
+ public string? IsCommonlyUsedAsTeam { get; init; }
+
///
/// If provided, only objects synced by Merge after this date time will be returned.
///
diff --git a/src/Merge.Client/Hris/HrisClient.cs b/src/Merge.Client/Hris/HrisClient.cs
index 2dea45e0..a7b37799 100644
--- a/src/Merge.Client/Hris/HrisClient.cs
+++ b/src/Merge.Client/Hris/HrisClient.cs
@@ -36,7 +36,6 @@ public HrisClient(RawClient client)
PayGroups = new PayGroupsClient(_client);
PayrollRuns = new PayrollRunsClient(_client);
RegenerateKey = new RegenerateKeyClient(_client);
- SelectiveSync = new SelectiveSyncClient(_client);
SyncStatus = new SyncStatusClient(_client);
ForceResync = new ForceResyncClient(_client);
Teams = new TeamsClient(_client);
@@ -98,8 +97,6 @@ public HrisClient(RawClient client)
public RegenerateKeyClient RegenerateKey { get; }
- public SelectiveSyncClient SelectiveSync { get; }
-
public SyncStatusClient SyncStatus { get; }
public ForceResyncClient ForceResync { get; }
diff --git a/src/Merge.Client/Hris/LinkToken/requests/EndUserDetailsRequest.cs b/src/Merge.Client/Hris/LinkToken/requests/EndUserDetailsRequest.cs
index 03616614..6a12ed49 100644
--- a/src/Merge.Client/Hris/LinkToken/requests/EndUserDetailsRequest.cs
+++ b/src/Merge.Client/Hris/LinkToken/requests/EndUserDetailsRequest.cs
@@ -56,4 +56,9 @@ public Dictionary<
/// The language code for the language to localize Merge Link to.
///
public string? Language { get; init; }
+
+ ///
+ /// A JSON object containing integration-specific configuration options.
+ ///
+ public Dictionary? IntegrationSpecificConfig { get; init; }
}
diff --git a/src/Merge.Client/Hris/SelectiveSync/SelectiveSyncClient.cs b/src/Merge.Client/Hris/SelectiveSync/SelectiveSyncClient.cs
deleted file mode 100644
index a902a9e7..00000000
--- a/src/Merge.Client/Hris/SelectiveSync/SelectiveSyncClient.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System.Text.Json;
-using Merge.Client;
-using Merge.Client.Hris;
-
-namespace Merge.Client.Hris;
-
-public class SelectiveSyncClient
-{
- private RawClient _client;
-
- public SelectiveSyncClient(RawClient client)
- {
- _client = client;
- }
-
- ///
- /// Get a linked account's selective syncs.
- ///
- public async Task> ConfigurationsListAsync()
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/hris/v1/selective-sync/configurations"
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Replace a linked account's selective syncs.
- ///
- public async Task> ConfigurationsUpdateAsync(
- LinkedAccountSelectiveSyncConfigurationListRequest request
- )
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Put,
- Path = "/hris/v1/selective-sync/configurations",
- Body = request
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Get metadata for the conditions available to a linked account.
- ///
- public async Task MetaListAsync(
- SelectiveSyncMetaListRequest request
- )
- {
- var _query = new Dictionary() { };
- if (request.CommonModel != null)
- {
- _query["common_model"] = request.CommonModel;
- }
- if (request.Cursor != null)
- {
- _query["cursor"] = request.Cursor;
- }
- if (request.PageSize != null)
- {
- _query["page_size"] = request.PageSize;
- }
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/hris/v1/selective-sync/meta",
- Query = _query
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize(responseBody);
- }
- throw new Exception();
- }
-}
diff --git a/src/Merge.Client/Hris/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs b/src/Merge.Client/Hris/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
deleted file mode 100644
index 4456999b..00000000
--- a/src/Merge.Client/Hris/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Merge.Client.Hris;
-
-namespace Merge.Client.Hris;
-
-public class LinkedAccountSelectiveSyncConfigurationListRequest
-{
- ///
- /// The selective syncs associated with a linked account.
- ///
- public List SyncConfigurations { get; init; }
-}
diff --git a/src/Merge.Client/Hris/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs b/src/Merge.Client/Hris/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
deleted file mode 100644
index 42280860..00000000
--- a/src/Merge.Client/Hris/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace Merge.Client.Hris;
-
-public class SelectiveSyncMetaListRequest
-{
- public string? CommonModel { get; init; }
-
- ///
- /// The pagination cursor value.
- ///
- public string? Cursor { get; init; }
-
- ///
- /// Number of results to return per page.
- ///
- public int? PageSize { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/AuditLogEvent.cs b/src/Merge.Client/Hris/Types/AuditLogEvent.cs
index 56a17166..b6cc40de 100644
--- a/src/Merge.Client/Hris/Types/AuditLogEvent.cs
+++ b/src/Merge.Client/Hris/Types/AuditLogEvent.cs
@@ -73,6 +73,9 @@ public class AuditLogEvent
/// - `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
///
[JsonPropertyName("event_type")]
public EventTypeEnum EventType { get; init; }
diff --git a/src/Merge.Client/Hris/Types/BankInfo.cs b/src/Merge.Client/Hris/Types/BankInfo.cs
index f699f88f..2362456c 100644
--- a/src/Merge.Client/Hris/Types/BankInfo.cs
+++ b/src/Merge.Client/Hris/Types/BankInfo.cs
@@ -15,11 +15,14 @@ public class BankInfo
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/Benefit.cs b/src/Merge.Client/Hris/Types/Benefit.cs
index 5a748f38..02a8231c 100644
--- a/src/Merge.Client/Hris/Types/Benefit.cs
+++ b/src/Merge.Client/Hris/Types/Benefit.cs
@@ -15,11 +15,14 @@ public class Benefit
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/Company.cs b/src/Merge.Client/Hris/Types/Company.cs
index fe290f67..f607b618 100644
--- a/src/Merge.Client/Hris/Types/Company.cs
+++ b/src/Merge.Client/Hris/Types/Company.cs
@@ -14,11 +14,14 @@ public class Company
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/ConditionSchema.cs b/src/Merge.Client/Hris/Types/ConditionSchema.cs
deleted file mode 100644
index b7616164..00000000
--- a/src/Merge.Client/Hris/Types/ConditionSchema.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Hris;
-
-namespace Merge.Client.Hris;
-
-public class ConditionSchema
-{
- ///
- /// The ID of the condition schema. This ID is used when updating selective syncs for a linked account.
- ///
- [JsonPropertyName("id")]
- public string Id { get; init; }
-
- ///
- /// The common model for which a condition schema is defined.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-
- ///
- /// Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-
- ///
- /// The type of value(s) that can be set for this condition.
- ///
- /// - `BOOLEAN` - BOOLEAN
- /// - `DATE` - DATE
- /// - `DATE_TIME` - DATE_TIME
- /// - `INTEGER` - INTEGER
- /// - `FLOAT` - FLOAT
- /// - `STRING` - STRING
- /// - `LIST_OF_STRINGS` - LIST_OF_STRINGS
- ///
- [JsonPropertyName("condition_type")]
- public ConditionTypeEnum ConditionType { get; init; }
-
- ///
- /// The schemas for the operators that can be used on a condition.
- ///
- [JsonPropertyName("operators")]
- public List Operators { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/ConditionTypeEnum.cs b/src/Merge.Client/Hris/Types/ConditionTypeEnum.cs
deleted file mode 100644
index acdf46ad..00000000
--- a/src/Merge.Client/Hris/Types/ConditionTypeEnum.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Runtime.Serialization;
-
-namespace Merge.Client.Hris;
-
-public enum ConditionTypeEnum
-{
- [EnumMember(Value = "BOOLEAN")]
- Boolean,
-
- [EnumMember(Value = "DATE")]
- Date,
-
- [EnumMember(Value = "DATE_TIME")]
- DateTime,
-
- [EnumMember(Value = "INTEGER")]
- Integer,
-
- [EnumMember(Value = "FLOAT")]
- Float,
-
- [EnumMember(Value = "STRING")]
- String,
-
- [EnumMember(Value = "LIST_OF_STRINGS")]
- ListOfStrings
-}
diff --git a/src/Merge.Client/Hris/Types/Deduction.cs b/src/Merge.Client/Hris/Types/Deduction.cs
index 5789c558..5a9bc2a0 100644
--- a/src/Merge.Client/Hris/Types/Deduction.cs
+++ b/src/Merge.Client/Hris/Types/Deduction.cs
@@ -14,11 +14,14 @@ public class Deduction
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/Dependent.cs b/src/Merge.Client/Hris/Types/Dependent.cs
index 6c9cc8af..8ff43ae7 100644
--- a/src/Merge.Client/Hris/Types/Dependent.cs
+++ b/src/Merge.Client/Hris/Types/Dependent.cs
@@ -14,11 +14,14 @@ public class Dependent
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/Earning.cs b/src/Merge.Client/Hris/Types/Earning.cs
index f303d3c3..4714f7fe 100644
--- a/src/Merge.Client/Hris/Types/Earning.cs
+++ b/src/Merge.Client/Hris/Types/Earning.cs
@@ -14,11 +14,14 @@ public class Earning
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/Employee.cs b/src/Merge.Client/Hris/Types/Employee.cs
index 6ae6330d..86d89956 100644
--- a/src/Merge.Client/Hris/Types/Employee.cs
+++ b/src/Merge.Client/Hris/Types/Employee.cs
@@ -15,11 +15,14 @@ public class Employee
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/EmployeePayrollRun.cs b/src/Merge.Client/Hris/Types/EmployeePayrollRun.cs
index d2f53fe4..5631eca9 100644
--- a/src/Merge.Client/Hris/Types/EmployeePayrollRun.cs
+++ b/src/Merge.Client/Hris/Types/EmployeePayrollRun.cs
@@ -15,11 +15,14 @@ public class EmployeePayrollRun
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/EmployerBenefit.cs b/src/Merge.Client/Hris/Types/EmployerBenefit.cs
index b454274e..38ed7db9 100644
--- a/src/Merge.Client/Hris/Types/EmployerBenefit.cs
+++ b/src/Merge.Client/Hris/Types/EmployerBenefit.cs
@@ -14,11 +14,14 @@ public class EmployerBenefit
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/Employment.cs b/src/Merge.Client/Hris/Types/Employment.cs
index ca4fef13..90996bb4 100644
--- a/src/Merge.Client/Hris/Types/Employment.cs
+++ b/src/Merge.Client/Hris/Types/Employment.cs
@@ -15,11 +15,14 @@ public class Employment
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/EventTypeEnum.cs b/src/Merge.Client/Hris/Types/EventTypeEnum.cs
index 595f7802..f4870c78 100644
--- a/src/Merge.Client/Hris/Types/EventTypeEnum.cs
+++ b/src/Merge.Client/Hris/Types/EventTypeEnum.cs
@@ -104,5 +104,14 @@ public enum EventTypeEnum
MutedIssue,
[EnumMember(Value = "GENERATED_MAGIC_LINK")]
- GeneratedMagicLink
+ GeneratedMagicLink,
+
+ [EnumMember(Value = "ENABLED_MERGE_WEBHOOK")]
+ EnabledMergeWebhook,
+
+ [EnumMember(Value = "DISABLED_MERGE_WEBHOOK")]
+ DisabledMergeWebhook,
+
+ [EnumMember(Value = "MERGE_WEBHOOK_TARGET_CHANGED")]
+ MergeWebhookTargetChanged
}
diff --git a/src/Merge.Client/Hris/Types/Group.cs b/src/Merge.Client/Hris/Types/Group.cs
index 09f517b9..c9d9d08a 100644
--- a/src/Merge.Client/Hris/Types/Group.cs
+++ b/src/Merge.Client/Hris/Types/Group.cs
@@ -14,11 +14,14 @@ public class Group
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
@@ -53,6 +56,12 @@ public class Group
[JsonPropertyName("remote_was_deleted")]
public bool? RemoteWasDeleted { get; init; }
+ ///
+ /// Indicates whether the Group refers to a team in the third party platform. Note that this is an opinionated view based on how Merge observes most organizations representing teams in each third party platform. If your customer uses a platform different from most, there is a chance this will not be correct.
+ ///
+ [JsonPropertyName("is_commonly_used_as_team")]
+ public bool? IsCommonlyUsedAsTeam { get; init; }
+
[JsonPropertyName("field_mappings")]
public Dictionary? FieldMappings { get; init; }
diff --git a/src/Merge.Client/Hris/Types/LinkedAccountCondition.cs b/src/Merge.Client/Hris/Types/LinkedAccountCondition.cs
deleted file mode 100644
index ce71e256..00000000
--- a/src/Merge.Client/Hris/Types/LinkedAccountCondition.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Hris;
-
-public class LinkedAccountCondition
-{
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The common model for a specific condition.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object? Value { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/LinkedAccountConditionRequest.cs b/src/Merge.Client/Hris/Types/LinkedAccountConditionRequest.cs
deleted file mode 100644
index be3cb684..00000000
--- a/src/Merge.Client/Hris/Types/LinkedAccountConditionRequest.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Hris;
-
-public class LinkedAccountConditionRequest
-{
- ///
- /// The ID indicating which Linked Account Condition this is.
- ///
- [JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object Value { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfiguration.cs b/src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfiguration.cs
deleted file mode 100644
index b56c9ead..00000000
--- a/src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfiguration.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Hris;
-
-namespace Merge.Client.Hris;
-
-public class LinkedAccountSelectiveSyncConfiguration
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List? LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs b/src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
deleted file mode 100644
index 804176c0..00000000
--- a/src/Merge.Client/Hris/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Hris;
-
-namespace Merge.Client.Hris;
-
-public class LinkedAccountSelectiveSyncConfigurationRequest
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/Location.cs b/src/Merge.Client/Hris/Types/Location.cs
index a31a2dd5..0c5b646b 100644
--- a/src/Merge.Client/Hris/Types/Location.cs
+++ b/src/Merge.Client/Hris/Types/Location.cs
@@ -14,11 +14,14 @@ public class Location
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/OperatorSchema.cs b/src/Merge.Client/Hris/Types/OperatorSchema.cs
deleted file mode 100644
index 610d5f51..00000000
--- a/src/Merge.Client/Hris/Types/OperatorSchema.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Hris;
-
-public class OperatorSchema
-{
- ///
- /// The operator for which an operator schema is defined.
- ///
- [JsonPropertyName("operator")]
- public string? Operator { get; init; }
-
- ///
- /// Whether the operator can be repeated multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/PaginatedConditionSchemaList.cs b/src/Merge.Client/Hris/Types/PaginatedConditionSchemaList.cs
deleted file mode 100644
index 8ea50978..00000000
--- a/src/Merge.Client/Hris/Types/PaginatedConditionSchemaList.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Hris;
-
-namespace Merge.Client.Hris;
-
-public class PaginatedConditionSchemaList
-{
- [JsonPropertyName("next")]
- public string? Next { get; init; }
-
- [JsonPropertyName("previous")]
- public string? Previous { get; init; }
-
- [JsonPropertyName("results")]
- public List? Results { get; init; }
-}
diff --git a/src/Merge.Client/Hris/Types/PayGroup.cs b/src/Merge.Client/Hris/Types/PayGroup.cs
index 2bbeb854..9b5de888 100644
--- a/src/Merge.Client/Hris/Types/PayGroup.cs
+++ b/src/Merge.Client/Hris/Types/PayGroup.cs
@@ -14,11 +14,14 @@ public class PayGroup
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/PayrollRun.cs b/src/Merge.Client/Hris/Types/PayrollRun.cs
index 4363745f..c7ba5505 100644
--- a/src/Merge.Client/Hris/Types/PayrollRun.cs
+++ b/src/Merge.Client/Hris/Types/PayrollRun.cs
@@ -14,11 +14,14 @@ public class PayrollRun
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/RemoteFieldApi.cs b/src/Merge.Client/Hris/Types/RemoteFieldApi.cs
index 261ed25a..93cccb2b 100644
--- a/src/Merge.Client/Hris/Types/RemoteFieldApi.cs
+++ b/src/Merge.Client/Hris/Types/RemoteFieldApi.cs
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Merge.Client.Hris;
+using OneOf;
namespace Merge.Client.Hris;
@@ -19,4 +20,7 @@ public class RemoteFieldApi
[JsonPropertyName("advanced_metadata")]
public AdvancedMetadata? AdvancedMetadata { get; init; }
+
+ [JsonPropertyName("coverage")]
+ public OneOf? Coverage { get; init; }
}
diff --git a/src/Merge.Client/Hris/Types/Tax.cs b/src/Merge.Client/Hris/Types/Tax.cs
index 764e82e9..d8a30177 100644
--- a/src/Merge.Client/Hris/Types/Tax.cs
+++ b/src/Merge.Client/Hris/Types/Tax.cs
@@ -14,11 +14,14 @@ public class Tax
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/Team.cs b/src/Merge.Client/Hris/Types/Team.cs
index 06f0befc..bce7b80f 100644
--- a/src/Merge.Client/Hris/Types/Team.cs
+++ b/src/Merge.Client/Hris/Types/Team.cs
@@ -15,11 +15,14 @@ public class Team
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/TimeOff.cs b/src/Merge.Client/Hris/Types/TimeOff.cs
index eebecd18..6f91243a 100644
--- a/src/Merge.Client/Hris/Types/TimeOff.cs
+++ b/src/Merge.Client/Hris/Types/TimeOff.cs
@@ -15,11 +15,14 @@ public class TimeOff
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/TimeOffBalance.cs b/src/Merge.Client/Hris/Types/TimeOffBalance.cs
index 276c9c1b..1bdefda9 100644
--- a/src/Merge.Client/Hris/Types/TimeOffBalance.cs
+++ b/src/Merge.Client/Hris/Types/TimeOffBalance.cs
@@ -15,11 +15,14 @@ public class TimeOffBalance
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Hris/Types/TimesheetEntry.cs b/src/Merge.Client/Hris/Types/TimesheetEntry.cs
index 616ad014..e745bf07 100644
--- a/src/Merge.Client/Hris/Types/TimesheetEntry.cs
+++ b/src/Merge.Client/Hris/Types/TimesheetEntry.cs
@@ -13,11 +13,14 @@ public class TimesheetEntry
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/AuditTrail/requests/AuditTrailListRequest.cs b/src/Merge.Client/Ticketing/AuditTrail/requests/AuditTrailListRequest.cs
index e65ed142..6d66ac9c 100644
--- a/src/Merge.Client/Ticketing/AuditTrail/requests/AuditTrailListRequest.cs
+++ b/src/Merge.Client/Ticketing/AuditTrail/requests/AuditTrailListRequest.cs
@@ -13,7 +13,7 @@ public class AuditTrailListRequest
public string? EndDate { get; init; }
///
- /// 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`
+ /// 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`
///
public string? EventType { get; init; }
diff --git a/src/Merge.Client/Ticketing/Contacts/ContactsClient.cs b/src/Merge.Client/Ticketing/Contacts/ContactsClient.cs
index 1466a17c..f2ee7142 100644
--- a/src/Merge.Client/Ticketing/Contacts/ContactsClient.cs
+++ b/src/Merge.Client/Ticketing/Contacts/ContactsClient.cs
@@ -75,6 +75,36 @@ public async Task ListAsync(ContactsListRequest request)
throw new Exception();
}
+ ///
+ /// Creates a `Contact` object with the given values.
+ ///
+ public async Task CreateAsync(TicketingContactEndpointRequest request)
+ {
+ var _query = new Dictionary() { };
+ if (request.IsDebugMode != null)
+ {
+ _query["is_debug_mode"] = request.IsDebugMode;
+ }
+ if (request.RunAsync != null)
+ {
+ _query["run_async"] = request.RunAsync;
+ }
+ var response = await _client.MakeRequestAsync(
+ new RawClient.ApiRequest
+ {
+ Method = HttpMethod.Post,
+ Path = "/ticketing/v1/contacts",
+ Query = _query
+ }
+ );
+ string responseBody = await response.Raw.Content.ReadAsStringAsync();
+ if (response.StatusCode >= 200 && response.StatusCode < 400)
+ {
+ return JsonSerializer.Deserialize(responseBody);
+ }
+ throw new Exception();
+ }
+
///
/// Returns a `Contact` object with the given `id`.
///
@@ -104,4 +134,24 @@ public async Task RetrieveAsync(string id, ContactsRetrieveRequest requ
}
throw new Exception();
}
+
+ ///
+ /// Returns metadata for `TicketingContact` POSTs.
+ ///
+ public async Task MetaPostRetrieveAsync()
+ {
+ var response = await _client.MakeRequestAsync(
+ new RawClient.ApiRequest
+ {
+ Method = HttpMethod.Get,
+ Path = "/ticketing/v1/contacts/meta/post"
+ }
+ );
+ string responseBody = await response.Raw.Content.ReadAsStringAsync();
+ if (response.StatusCode >= 200 && response.StatusCode < 400)
+ {
+ return JsonSerializer.Deserialize(responseBody);
+ }
+ throw new Exception();
+ }
}
diff --git a/src/Merge.Client/Ticketing/Contacts/requests/TicketingContactEndpointRequest.cs b/src/Merge.Client/Ticketing/Contacts/requests/TicketingContactEndpointRequest.cs
new file mode 100644
index 00000000..fa2f2673
--- /dev/null
+++ b/src/Merge.Client/Ticketing/Contacts/requests/TicketingContactEndpointRequest.cs
@@ -0,0 +1,18 @@
+using Merge.Client.Ticketing;
+
+namespace Merge.Client.Ticketing;
+
+public class TicketingContactEndpointRequest
+{
+ ///
+ /// Whether to include debug fields (such as log file links) in the response.
+ ///
+ public bool? IsDebugMode { get; init; }
+
+ ///
+ /// Whether or not third-party updates should be run asynchronously.
+ ///
+ public bool? RunAsync { get; init; }
+
+ public ContactRequest Model { get; init; }
+}
diff --git a/src/Merge.Client/Ticketing/LinkToken/requests/EndUserDetailsRequest.cs b/src/Merge.Client/Ticketing/LinkToken/requests/EndUserDetailsRequest.cs
index 50d8b49a..bc657736 100644
--- a/src/Merge.Client/Ticketing/LinkToken/requests/EndUserDetailsRequest.cs
+++ b/src/Merge.Client/Ticketing/LinkToken/requests/EndUserDetailsRequest.cs
@@ -56,4 +56,9 @@ public Dictionary<
/// The language code for the language to localize Merge Link to.
///
public string? Language { get; init; }
+
+ ///
+ /// A JSON object containing integration-specific configuration options.
+ ///
+ public Dictionary? IntegrationSpecificConfig { get; init; }
}
diff --git a/src/Merge.Client/Ticketing/SelectiveSync/SelectiveSyncClient.cs b/src/Merge.Client/Ticketing/SelectiveSync/SelectiveSyncClient.cs
deleted file mode 100644
index b092d342..00000000
--- a/src/Merge.Client/Ticketing/SelectiveSync/SelectiveSyncClient.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System.Text.Json;
-using Merge.Client;
-using Merge.Client.Ticketing;
-
-namespace Merge.Client.Ticketing;
-
-public class SelectiveSyncClient
-{
- private RawClient _client;
-
- public SelectiveSyncClient(RawClient client)
- {
- _client = client;
- }
-
- ///
- /// Get a linked account's selective syncs.
- ///
- public async Task> ConfigurationsListAsync()
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/ticketing/v1/selective-sync/configurations"
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Replace a linked account's selective syncs.
- ///
- public async Task> ConfigurationsUpdateAsync(
- LinkedAccountSelectiveSyncConfigurationListRequest request
- )
- {
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Put,
- Path = "/ticketing/v1/selective-sync/configurations",
- Body = request
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize>(
- responseBody
- );
- }
- throw new Exception();
- }
-
- ///
- /// Get metadata for the conditions available to a linked account.
- ///
- public async Task MetaListAsync(
- SelectiveSyncMetaListRequest request
- )
- {
- var _query = new Dictionary() { };
- if (request.CommonModel != null)
- {
- _query["common_model"] = request.CommonModel;
- }
- if (request.Cursor != null)
- {
- _query["cursor"] = request.Cursor;
- }
- if (request.PageSize != null)
- {
- _query["page_size"] = request.PageSize;
- }
- var response = await _client.MakeRequestAsync(
- new RawClient.ApiRequest
- {
- Method = HttpMethod.Get,
- Path = "/ticketing/v1/selective-sync/meta",
- Query = _query
- }
- );
- string responseBody = await response.Raw.Content.ReadAsStringAsync();
- if (response.StatusCode >= 200 && response.StatusCode < 400)
- {
- return JsonSerializer.Deserialize(responseBody);
- }
- throw new Exception();
- }
-}
diff --git a/src/Merge.Client/Ticketing/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs b/src/Merge.Client/Ticketing/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
deleted file mode 100644
index cd2e2979..00000000
--- a/src/Merge.Client/Ticketing/SelectiveSync/requests/LinkedAccountSelectiveSyncConfigurationListRequest.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Merge.Client.Ticketing;
-
-namespace Merge.Client.Ticketing;
-
-public class LinkedAccountSelectiveSyncConfigurationListRequest
-{
- ///
- /// The selective syncs associated with a linked account.
- ///
- public List SyncConfigurations { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs b/src/Merge.Client/Ticketing/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
deleted file mode 100644
index a567d8c2..00000000
--- a/src/Merge.Client/Ticketing/SelectiveSync/requests/SelectiveSyncMetaListRequest.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace Merge.Client.Ticketing;
-
-public class SelectiveSyncMetaListRequest
-{
- public string? CommonModel { get; init; }
-
- ///
- /// The pagination cursor value.
- ///
- public string? Cursor { get; init; }
-
- ///
- /// Number of results to return per page.
- ///
- public int? PageSize { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/TicketingClient.cs b/src/Merge.Client/Ticketing/TicketingClient.cs
index a05f49a6..e15b46b2 100644
--- a/src/Merge.Client/Ticketing/TicketingClient.cs
+++ b/src/Merge.Client/Ticketing/TicketingClient.cs
@@ -31,7 +31,6 @@ public TicketingClient(RawClient client)
Projects = new ProjectsClient(_client);
RegenerateKey = new RegenerateKeyClient(_client);
Roles = new RolesClient(_client);
- SelectiveSync = new SelectiveSyncClient(_client);
SyncStatus = new SyncStatusClient(_client);
ForceResync = new ForceResyncClient(_client);
Tags = new TagsClient(_client);
@@ -83,8 +82,6 @@ public TicketingClient(RawClient client)
public RolesClient Roles { get; }
- public SelectiveSyncClient SelectiveSync { get; }
-
public SyncStatusClient SyncStatus { get; }
public ForceResyncClient ForceResync { get; }
diff --git a/src/Merge.Client/Ticketing/Types/Account.cs b/src/Merge.Client/Ticketing/Types/Account.cs
index b53c6417..3c204c5d 100644
--- a/src/Merge.Client/Ticketing/Types/Account.cs
+++ b/src/Merge.Client/Ticketing/Types/Account.cs
@@ -14,11 +14,14 @@ public class Account
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/Attachment.cs b/src/Merge.Client/Ticketing/Types/Attachment.cs
index e9d43630..5d81e6d1 100644
--- a/src/Merge.Client/Ticketing/Types/Attachment.cs
+++ b/src/Merge.Client/Ticketing/Types/Attachment.cs
@@ -15,11 +15,14 @@ public class Attachment
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/AuditLogEvent.cs b/src/Merge.Client/Ticketing/Types/AuditLogEvent.cs
index 54429de7..84efffec 100644
--- a/src/Merge.Client/Ticketing/Types/AuditLogEvent.cs
+++ b/src/Merge.Client/Ticketing/Types/AuditLogEvent.cs
@@ -73,6 +73,9 @@ public class AuditLogEvent
/// - `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
///
[JsonPropertyName("event_type")]
public EventTypeEnum EventType { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/Collection.cs b/src/Merge.Client/Ticketing/Types/Collection.cs
index 008e8512..e7b5209a 100644
--- a/src/Merge.Client/Ticketing/Types/Collection.cs
+++ b/src/Merge.Client/Ticketing/Types/Collection.cs
@@ -15,11 +15,14 @@ public class Collection
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/Comment.cs b/src/Merge.Client/Ticketing/Types/Comment.cs
index b5d959ce..a93bbb1c 100644
--- a/src/Merge.Client/Ticketing/Types/Comment.cs
+++ b/src/Merge.Client/Ticketing/Types/Comment.cs
@@ -15,11 +15,14 @@ public class Comment
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/ConditionSchema.cs b/src/Merge.Client/Ticketing/Types/ConditionSchema.cs
deleted file mode 100644
index a68fb709..00000000
--- a/src/Merge.Client/Ticketing/Types/ConditionSchema.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ticketing;
-
-namespace Merge.Client.Ticketing;
-
-public class ConditionSchema
-{
- ///
- /// The ID of the condition schema. This ID is used when updating selective syncs for a linked account.
- ///
- [JsonPropertyName("id")]
- public string Id { get; init; }
-
- ///
- /// The common model for which a condition schema is defined.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-
- ///
- /// Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-
- ///
- /// The type of value(s) that can be set for this condition.
- ///
- /// - `BOOLEAN` - BOOLEAN
- /// - `DATE` - DATE
- /// - `DATE_TIME` - DATE_TIME
- /// - `INTEGER` - INTEGER
- /// - `FLOAT` - FLOAT
- /// - `STRING` - STRING
- /// - `LIST_OF_STRINGS` - LIST_OF_STRINGS
- ///
- [JsonPropertyName("condition_type")]
- public ConditionTypeEnum ConditionType { get; init; }
-
- ///
- /// The schemas for the operators that can be used on a condition.
- ///
- [JsonPropertyName("operators")]
- public List Operators { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/Types/ConditionTypeEnum.cs b/src/Merge.Client/Ticketing/Types/ConditionTypeEnum.cs
deleted file mode 100644
index 7b98e400..00000000
--- a/src/Merge.Client/Ticketing/Types/ConditionTypeEnum.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Runtime.Serialization;
-
-namespace Merge.Client.Ticketing;
-
-public enum ConditionTypeEnum
-{
- [EnumMember(Value = "BOOLEAN")]
- Boolean,
-
- [EnumMember(Value = "DATE")]
- Date,
-
- [EnumMember(Value = "DATE_TIME")]
- DateTime,
-
- [EnumMember(Value = "INTEGER")]
- Integer,
-
- [EnumMember(Value = "FLOAT")]
- Float,
-
- [EnumMember(Value = "STRING")]
- String,
-
- [EnumMember(Value = "LIST_OF_STRINGS")]
- ListOfStrings
-}
diff --git a/src/Merge.Client/Ticketing/Types/Contact.cs b/src/Merge.Client/Ticketing/Types/Contact.cs
index 1e88bd73..b2a0b6bc 100644
--- a/src/Merge.Client/Ticketing/Types/Contact.cs
+++ b/src/Merge.Client/Ticketing/Types/Contact.cs
@@ -15,11 +15,14 @@ public class Contact
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/ContactRequest.cs b/src/Merge.Client/Ticketing/Types/ContactRequest.cs
new file mode 100644
index 00000000..12764578
--- /dev/null
+++ b/src/Merge.Client/Ticketing/Types/ContactRequest.cs
@@ -0,0 +1,44 @@
+using System.Text.Json.Serialization;
+using Merge.Client.Ticketing;
+using OneOf;
+
+namespace Merge.Client.Ticketing;
+
+public class ContactRequest
+{
+ ///
+ /// The contact's name.
+ ///
+ [JsonPropertyName("name")]
+ public string? Name { get; init; }
+
+ ///
+ /// The contact's email address.
+ ///
+ [JsonPropertyName("email_address")]
+ public string? EmailAddress { get; init; }
+
+ ///
+ /// The contact's phone number.
+ ///
+ [JsonPropertyName("phone_number")]
+ public string? PhoneNumber { get; init; }
+
+ ///
+ /// The contact's details.
+ ///
+ [JsonPropertyName("details")]
+ public string? Details { get; init; }
+
+ ///
+ /// The contact's account.
+ ///
+ [JsonPropertyName("account")]
+ public OneOf? Account { get; init; }
+
+ [JsonPropertyName("integration_params")]
+ public Dictionary? IntegrationParams { get; init; }
+
+ [JsonPropertyName("linked_account_params")]
+ public Dictionary? LinkedAccountParams { get; init; }
+}
diff --git a/src/Merge.Client/Ticketing/Types/EventTypeEnum.cs b/src/Merge.Client/Ticketing/Types/EventTypeEnum.cs
index 364ff1ee..cac6e6a0 100644
--- a/src/Merge.Client/Ticketing/Types/EventTypeEnum.cs
+++ b/src/Merge.Client/Ticketing/Types/EventTypeEnum.cs
@@ -104,5 +104,14 @@ public enum EventTypeEnum
MutedIssue,
[EnumMember(Value = "GENERATED_MAGIC_LINK")]
- GeneratedMagicLink
+ GeneratedMagicLink,
+
+ [EnumMember(Value = "ENABLED_MERGE_WEBHOOK")]
+ EnabledMergeWebhook,
+
+ [EnumMember(Value = "DISABLED_MERGE_WEBHOOK")]
+ DisabledMergeWebhook,
+
+ [EnumMember(Value = "MERGE_WEBHOOK_TARGET_CHANGED")]
+ MergeWebhookTargetChanged
}
diff --git a/src/Merge.Client/Ticketing/Types/LinkedAccountCondition.cs b/src/Merge.Client/Ticketing/Types/LinkedAccountCondition.cs
deleted file mode 100644
index 1c6c642d..00000000
--- a/src/Merge.Client/Ticketing/Types/LinkedAccountCondition.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Ticketing;
-
-public class LinkedAccountCondition
-{
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The common model for a specific condition.
- ///
- [JsonPropertyName("common_model")]
- public string? CommonModel { get; init; }
-
- [JsonPropertyName("native_name")]
- public string? NativeName { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object? Value { get; init; }
-
- [JsonPropertyName("field_name")]
- public string? FieldName { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/Types/LinkedAccountConditionRequest.cs b/src/Merge.Client/Ticketing/Types/LinkedAccountConditionRequest.cs
deleted file mode 100644
index de6ced22..00000000
--- a/src/Merge.Client/Ticketing/Types/LinkedAccountConditionRequest.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Ticketing;
-
-public class LinkedAccountConditionRequest
-{
- ///
- /// The ID indicating which Linked Account Condition this is.
- ///
- [JsonPropertyName("id")]
- public string? Id { get; init; }
-
- ///
- /// The ID indicating which condition schema to use for a specific condition.
- ///
- [JsonPropertyName("condition_schema_id")]
- public string ConditionSchemaId { get; init; }
-
- ///
- /// The operator for a specific condition.
- ///
- [JsonPropertyName("operator")]
- public string Operator { get; init; }
-
- [JsonPropertyName("value")]
- public object Value { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfiguration.cs b/src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfiguration.cs
deleted file mode 100644
index 200237e8..00000000
--- a/src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfiguration.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ticketing;
-
-namespace Merge.Client.Ticketing;
-
-public class LinkedAccountSelectiveSyncConfiguration
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List? LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs b/src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
deleted file mode 100644
index 01f04e37..00000000
--- a/src/Merge.Client/Ticketing/Types/LinkedAccountSelectiveSyncConfigurationRequest.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ticketing;
-
-namespace Merge.Client.Ticketing;
-
-public class LinkedAccountSelectiveSyncConfigurationRequest
-{
- ///
- /// The conditions belonging to a selective sync.
- ///
- [JsonPropertyName("linked_account_conditions")]
- public List LinkedAccountConditions { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/Types/OperatorSchema.cs b/src/Merge.Client/Ticketing/Types/OperatorSchema.cs
deleted file mode 100644
index f7f03a17..00000000
--- a/src/Merge.Client/Ticketing/Types/OperatorSchema.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Text.Json.Serialization;
-
-namespace Merge.Client.Ticketing;
-
-public class OperatorSchema
-{
- ///
- /// The operator for which an operator schema is defined.
- ///
- [JsonPropertyName("operator")]
- public string? Operator { get; init; }
-
- ///
- /// Whether the operator can be repeated multiple times.
- ///
- [JsonPropertyName("is_unique")]
- public bool? IsUnique { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/Types/PaginatedConditionSchemaList.cs b/src/Merge.Client/Ticketing/Types/PaginatedConditionSchemaList.cs
deleted file mode 100644
index d42ac30e..00000000
--- a/src/Merge.Client/Ticketing/Types/PaginatedConditionSchemaList.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Text.Json.Serialization;
-using Merge.Client.Ticketing;
-
-namespace Merge.Client.Ticketing;
-
-public class PaginatedConditionSchemaList
-{
- [JsonPropertyName("next")]
- public string? Next { get; init; }
-
- [JsonPropertyName("previous")]
- public string? Previous { get; init; }
-
- [JsonPropertyName("results")]
- public List? Results { get; init; }
-}
diff --git a/src/Merge.Client/Ticketing/Types/Project.cs b/src/Merge.Client/Ticketing/Types/Project.cs
index fabe1cb5..7637a05c 100644
--- a/src/Merge.Client/Ticketing/Types/Project.cs
+++ b/src/Merge.Client/Ticketing/Types/Project.cs
@@ -14,11 +14,14 @@ public class Project
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/RemoteFieldApi.cs b/src/Merge.Client/Ticketing/Types/RemoteFieldApi.cs
index 0fb95616..e09cc410 100644
--- a/src/Merge.Client/Ticketing/Types/RemoteFieldApi.cs
+++ b/src/Merge.Client/Ticketing/Types/RemoteFieldApi.cs
@@ -1,5 +1,6 @@
using System.Text.Json.Serialization;
using Merge.Client.Ticketing;
+using OneOf;
namespace Merge.Client.Ticketing;
@@ -19,4 +20,7 @@ public class RemoteFieldApi
[JsonPropertyName("advanced_metadata")]
public AdvancedMetadata? AdvancedMetadata { get; init; }
+
+ [JsonPropertyName("coverage")]
+ public OneOf? Coverage { get; init; }
}
diff --git a/src/Merge.Client/Ticketing/Types/Role.cs b/src/Merge.Client/Ticketing/Types/Role.cs
index 57d77a8e..6bb9dfad 100644
--- a/src/Merge.Client/Ticketing/Types/Role.cs
+++ b/src/Merge.Client/Ticketing/Types/Role.cs
@@ -14,11 +14,14 @@ public class Role
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/Tag.cs b/src/Merge.Client/Ticketing/Types/Tag.cs
index 4d4aa360..5d230a31 100644
--- a/src/Merge.Client/Ticketing/Types/Tag.cs
+++ b/src/Merge.Client/Ticketing/Types/Tag.cs
@@ -11,11 +11,14 @@ public class Tag
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/Team.cs b/src/Merge.Client/Ticketing/Types/Team.cs
index a677a02f..687e3aa6 100644
--- a/src/Merge.Client/Ticketing/Types/Team.cs
+++ b/src/Merge.Client/Ticketing/Types/Team.cs
@@ -14,11 +14,14 @@ public class Team
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/Ticket.cs b/src/Merge.Client/Ticketing/Types/Ticket.cs
index c842e7f4..68bb8d1a 100644
--- a/src/Merge.Client/Ticketing/Types/Ticket.cs
+++ b/src/Merge.Client/Ticketing/Types/Ticket.cs
@@ -15,11 +15,14 @@ public class Ticket
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }
diff --git a/src/Merge.Client/Ticketing/Types/TicketingContactResponse.cs b/src/Merge.Client/Ticketing/Types/TicketingContactResponse.cs
new file mode 100644
index 00000000..3830110c
--- /dev/null
+++ b/src/Merge.Client/Ticketing/Types/TicketingContactResponse.cs
@@ -0,0 +1,19 @@
+using System.Text.Json.Serialization;
+using Merge.Client.Ticketing;
+
+namespace Merge.Client.Ticketing;
+
+public class TicketingContactResponse
+{
+ [JsonPropertyName("model")]
+ public Contact Model { get; init; }
+
+ [JsonPropertyName("warnings")]
+ public List Warnings { get; init; }
+
+ [JsonPropertyName("errors")]
+ public List Errors { get; init; }
+
+ [JsonPropertyName("logs")]
+ public List? Logs { get; init; }
+}
diff --git a/src/Merge.Client/Ticketing/Types/User.cs b/src/Merge.Client/Ticketing/Types/User.cs
index 66ce7d48..b81c2faf 100644
--- a/src/Merge.Client/Ticketing/Types/User.cs
+++ b/src/Merge.Client/Ticketing/Types/User.cs
@@ -15,11 +15,14 @@ public class User
[JsonPropertyName("remote_id")]
public string? RemoteId { get; init; }
+ ///
+ /// The datetime that this object was created by Merge.
+ ///
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
///
- /// This is the datetime that this object was last updated by Merge
+ /// The datetime that this object was modified by Merge.
///
[JsonPropertyName("modified_at")]
public DateTime? ModifiedAt { get; init; }