From 4147a148a7368b4f0b069c41d00a52838662a86f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 23 Oct 2025 15:00:21 +0000 Subject: [PATCH 1/2] ## Csharp SDK Changes Detected: * `StackOneHq.client.Lms.BatchUpsertContent()`: * `request.lmsBatchUpsertContentRequestDto.Items.[].ExternalReference` **Changed** **Breaking** :warning: * `StackOneHq.client.Lms.CreateUserCompletion()`: * `request.lmsCreateCompletionRequestDto.LearningObjectExternalReference` **Changed** **Breaking** :warning: * `StackOneHq.client.Lms.Assignments.Create()`: * `request.lmsCreateAssignmentRequestDto.LearningObjectExternalReference` **Changed** **Breaking** :warning: * `StackOneHq.client.Lms.Content.Upsert()`: * `request.lmsUpsertContentRequestDto.ExternalReference` **Changed** **Breaking** :warning: * `StackOneHq.client.Lms.Content.Update()`: * `request.lmsCreateContentRequestDto.ExternalReference` **Changed** **Breaking** :warning: * `StackOneHq.client.Hris.GetEmployee()`: `response.data.BankDetails` **Added** * `StackOneHq.client.Hris.Employees.List()`: `response.data.[].BankDetails` **Added** * `StackOneHq.client.Ats.ListCandidates()`: `response.data.[].Tags` **Added** * `StackOneHq.client.Ats.Candidates.Get()`: `response.data.Tags` **Added** --- .speakeasy/gen.lock | 102 +++- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 416 ++++++++++++- .speakeasy/workflow.lock | 14 +- NUGET.md | 150 ++++- README.md | 151 ++++- RELEASES.md | 12 +- USAGE.md | 4 +- .../Components/AccountTypeSourceValueUnion.md | 34 -- docs/Models/Components/Candidate.md | 1 + docs/Models/Components/ClearingCode.md | 9 + .../Components/ClearingCodeSourceValue.md | 7 + .../ClearingCodeSourceValueUnion.md | 34 ++ docs/Models/Components/ClearingCodeType.md | 11 + docs/Models/Components/ClearingCodeValue.md | 30 + docs/Models/Components/Completion.md | 2 +- .../{AccountType.md => CountryCode.md} | 8 +- .../Components/CountryCodeSourceValueUnion.md | 34 ++ docs/Models/Components/CountryCodeValue.md | 258 ++++++++ docs/Models/Components/Employee.md | 1 + docs/Models/Components/HRISBankDetails.md | 19 + .../Components/HRISBankDetailsAccountType.md | 11 + ...SBankDetailsAccountTypeSourceValueUnion.md | 34 ++ .../HRISBankDetailsAccountTypeValue.md | 16 + .../Components/HRISBankDetailsCurrencyCode.md | 11 + ...BankDetailsCurrencyCodeSourceValueUnion.md | 34 ++ .../HRISBankDetailsCurrencyCodeValue.md | 167 +++++ .../HRISBankDetailsSourceValueAccountType.md | 7 + .../HRISBankDetailsSourceValueCurrencyCode.md | 7 + docs/Models/Components/JournalLine.md | 2 +- .../Components/JournalLineAccountType.md | 11 + .../JournalLineAccountTypeSourceValueUnion.md | 34 ++ ...alue.md => JournalLineAccountTypeValue.md} | 2 +- .../JournalLineSourceValueAccountType.md | 7 + .../LmsCreateAssignmentRequestDto.md | 4 +- .../LmsCreateCompletionRequestDto.md | 4 +- .../Components/LmsCreateContentRequestDto.md | 2 +- .../LmsCreateContentRequestDtoContentType.md | 8 +- ...CreateContentRequestDtoSourceValueUnion.md | 2 +- .../LmsCreateContentRequestDtoValue.md | 7 +- .../Components/LmsUpsertContentRequestDto.md | 2 +- ...countType.md => SourceValueCountryCode.md} | 2 +- docs/Models/Components/Tag.md | 9 + .../Models/Requests/AtsGetCandidateRequest.md | 16 +- .../Requests/AtsListCandidatesRequest.md | 26 +- .../Models/Requests/HrisGetEmployeeRequest.md | 18 +- .../Requests/HrisListEmployeesRequest.md | 26 +- docs/sdks/assignments/README.md | 2 +- docs/sdks/ats/README.md | 2 +- docs/sdks/candidates/README.md | 2 +- docs/sdks/content/README.md | 4 +- docs/sdks/employees/README.md | 4 +- docs/sdks/hris/README.md | 4 +- docs/sdks/lms/README.md | 4 +- src/StackOneHQ/Client/Accounting.cs | 4 +- src/StackOneHQ/Client/Accounts.cs | 4 +- src/StackOneHQ/Client/Actions.cs | 4 +- .../Client/ApplicationCategories.cs | 4 +- src/StackOneHQ/Client/Applications.cs | 4 +- .../Client/ApplicationsDocuments.cs | 4 +- src/StackOneHQ/Client/Assessments.cs | 4 +- src/StackOneHQ/Client/AssessmentsPackages.cs | 4 +- src/StackOneHQ/Client/Assignments.cs | 4 +- src/StackOneHQ/Client/Ats.cs | 4 +- src/StackOneHQ/Client/AtsApplications.cs | 4 +- src/StackOneHQ/Client/AtsBackgroundChecks.cs | 4 +- .../Client/AtsCustomFieldDefinitions.cs | 4 +- src/StackOneHQ/Client/AtsDepartments.cs | 4 +- src/StackOneHQ/Client/AtsDocuments.cs | 4 +- src/StackOneHQ/Client/AtsInterviews.cs | 4 +- src/StackOneHQ/Client/AtsJobs.cs | 4 +- src/StackOneHQ/Client/AtsLists.cs | 4 +- src/StackOneHQ/Client/AtsLocations.cs | 4 +- src/StackOneHQ/Client/AtsUsers.cs | 4 +- src/StackOneHQ/Client/Attachments.cs | 4 +- src/StackOneHQ/Client/BackgroundChecks.cs | 4 +- .../Client/BackgroundChecksPackages.cs | 4 +- src/StackOneHQ/Client/Benefits.cs | 4 +- src/StackOneHQ/Client/Campaigns.cs | 4 +- src/StackOneHQ/Client/Candidates.cs | 4 +- .../CandidatesCustomFieldDefinitions.cs | 4 +- src/StackOneHQ/Client/Categories.cs | 4 +- src/StackOneHQ/Client/Comments.cs | 4 +- src/StackOneHQ/Client/Companies.cs | 4 +- src/StackOneHQ/Client/Completions.cs | 4 +- src/StackOneHQ/Client/ConnectSessions.cs | 4 +- src/StackOneHQ/Client/Connectors.cs | 4 +- src/StackOneHQ/Client/Contacts.cs | 4 +- src/StackOneHQ/Client/Content.cs | 4 +- src/StackOneHQ/Client/ContentBlocks.cs | 4 +- src/StackOneHQ/Client/CostCenters.cs | 4 +- src/StackOneHQ/Client/Courses.cs | 4 +- src/StackOneHQ/Client/Crm.cs | 4 +- .../Client/CrmCustomFieldDefinitions.cs | 4 +- src/StackOneHQ/Client/CrmLists.cs | 4 +- .../Client/CustomFieldDefinitionsContacts.cs | 4 +- src/StackOneHQ/Client/Divisions.cs | 4 +- src/StackOneHQ/Client/Documents.cs | 4 +- src/StackOneHQ/Client/DocumentsDrives.cs | 4 +- src/StackOneHQ/Client/Drives.cs | 4 +- src/StackOneHQ/Client/EmployeeCategories.cs | 4 +- src/StackOneHQ/Client/Employees.cs | 4 +- src/StackOneHQ/Client/EmployeesDocuments.cs | 4 +- src/StackOneHQ/Client/EmployeesEmployments.cs | 4 +- src/StackOneHQ/Client/EmployeesSkills.cs | 4 +- src/StackOneHQ/Client/EmployeesTasks.cs | 4 +- src/StackOneHQ/Client/Employments.cs | 4 +- src/StackOneHQ/Client/Files.cs | 4 +- src/StackOneHQ/Client/Folders.cs | 4 +- src/StackOneHQ/Client/GroupsCompanies.cs | 4 +- src/StackOneHQ/Client/Hris.cs | 4 +- src/StackOneHQ/Client/HrisDepartments.cs | 4 +- src/StackOneHQ/Client/HrisDocuments.cs | 4 +- src/StackOneHQ/Client/HrisGroups.cs | 4 +- src/StackOneHQ/Client/HrisJobs.cs | 4 +- src/StackOneHQ/Client/HrisLocations.cs | 4 +- src/StackOneHQ/Client/Iam.cs | 4 +- src/StackOneHQ/Client/IamGroups.cs | 4 +- src/StackOneHQ/Client/IamUsers.cs | 4 +- src/StackOneHQ/Client/InApp.cs | 4 +- src/StackOneHQ/Client/InterviewStages.cs | 4 +- src/StackOneHQ/Client/Interviews.cs | 4 +- src/StackOneHQ/Client/JobPostings.cs | 4 +- src/StackOneHQ/Client/Lms.cs | 4 +- src/StackOneHQ/Client/LmsSkills.cs | 4 +- src/StackOneHQ/Client/LmsUsers.cs | 4 +- src/StackOneHQ/Client/Marketing.cs | 4 +- src/StackOneHQ/Client/Mcp.cs | 4 +- src/StackOneHQ/Client/Messaging.cs | 4 +- .../Client/Models/Components/Candidate.cs | 6 + .../Client/Models/Components/ClearingCode.cs | 31 + .../Components/ClearingCodeSourceValue.cs | 17 + .../ClearingCodeSourceValueUnion.cs | 300 +++++++++ .../Models/Components/ClearingCodeType.cs | 35 ++ .../Models/Components/ClearingCodeValue.cs | 116 ++++ .../Client/Models/Components/Completion.cs | 12 +- .../Client/Models/Components/CountryCode.cs | 35 ++ ...nion.cs => CountryCodeSourceValueUnion.cs} | 102 ++-- .../Models/Components/CountryCodeValue.cs | 572 ++++++++++++++++++ .../Client/Models/Components/Employee.cs | 6 + .../Models/Components/HRISBankDetails.cs | 92 +++ .../Components/HRISBankDetailsAccountType.cs | 35 ++ ...SBankDetailsAccountTypeSourceValueUnion.cs | 300 +++++++++ .../HRISBankDetailsAccountTypeValue.cs | 88 +++ .../Components/HRISBankDetailsCurrencyCode.cs | 35 ++ ...BankDetailsCurrencyCodeSourceValueUnion.cs | 300 +++++++++ .../HRISBankDetailsCurrencyCodeValue.cs | 390 ++++++++++++ .../HRISBankDetailsSourceValueAccountType.cs | 17 + .../HRISBankDetailsSourceValueCurrencyCode.cs | 17 + .../Client/Models/Components/JournalLine.cs | 2 +- ...countType.cs => JournalLineAccountType.cs} | 6 +- .../JournalLineAccountTypeSourceValueUnion.cs | 300 +++++++++ ...alue.cs => JournalLineAccountTypeValue.cs} | 38 +- .../JournalLineSourceValueAccountType.cs | 17 + .../LmsCreateAssignmentRequestDto.cs | 12 +- .../LmsCreateCompletionRequestDto.cs | 12 +- .../Components/LmsCreateContentRequestDto.cs | 12 +- .../LmsCreateContentRequestDtoContentType.cs | 4 +- ...CreateContentRequestDtoSourceValueUnion.cs | 2 +- .../LmsCreateContentRequestDtoValue.cs | 12 +- .../Components/LmsUpsertContentRequestDto.cs | 12 +- ...countType.cs => SourceValueCountryCode.cs} | 2 +- .../Client/Models/Components/Tag.cs | 30 + src/StackOneHQ/Client/Notes.cs | 4 +- src/StackOneHQ/Client/Offers.cs | 4 +- src/StackOneHQ/Client/Policies.cs | 4 +- src/StackOneHQ/Client/Proxy.cs | 4 +- src/StackOneHQ/Client/RejectedReasons.cs | 4 +- src/StackOneHQ/Client/RequestLogs.cs | 4 +- src/StackOneHQ/Client/SDKConfig.cs | 2 +- src/StackOneHQ/Client/Shifts.cs | 4 +- src/StackOneHQ/Client/Sms.cs | 4 +- .../Client/StackOneHQ.Client.csproj | 2 +- src/StackOneHQ/Client/StackOneHQClient.cs | 15 +- src/StackOneHQ/Client/Tasks.cs | 4 +- src/StackOneHQ/Client/Templates.cs | 4 +- src/StackOneHQ/Client/Ticketing.cs | 4 +- src/StackOneHQ/Client/TicketingUsers.cs | 4 +- src/StackOneHQ/Client/Tickets.cs | 4 +- src/StackOneHQ/Client/TicketsComments.cs | 4 +- src/StackOneHQ/Client/TimeOff.cs | 4 +- src/StackOneHQ/Client/TimeOffTypes.cs | 4 +- src/StackOneHQ/Client/UsersAssignments.cs | 4 +- src/StackOneHQ/Client/WorkEligibility.cs | 4 +- 184 files changed, 4662 insertions(+), 486 deletions(-) delete mode 100644 docs/Models/Components/AccountTypeSourceValueUnion.md create mode 100644 docs/Models/Components/ClearingCode.md create mode 100644 docs/Models/Components/ClearingCodeSourceValue.md create mode 100644 docs/Models/Components/ClearingCodeSourceValueUnion.md create mode 100644 docs/Models/Components/ClearingCodeType.md create mode 100644 docs/Models/Components/ClearingCodeValue.md rename docs/Models/Components/{AccountType.md => CountryCode.md} (72%) create mode 100644 docs/Models/Components/CountryCodeSourceValueUnion.md create mode 100644 docs/Models/Components/CountryCodeValue.md create mode 100644 docs/Models/Components/HRISBankDetails.md create mode 100644 docs/Models/Components/HRISBankDetailsAccountType.md create mode 100644 docs/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.md create mode 100644 docs/Models/Components/HRISBankDetailsAccountTypeValue.md create mode 100644 docs/Models/Components/HRISBankDetailsCurrencyCode.md create mode 100644 docs/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.md create mode 100644 docs/Models/Components/HRISBankDetailsCurrencyCodeValue.md create mode 100644 docs/Models/Components/HRISBankDetailsSourceValueAccountType.md create mode 100644 docs/Models/Components/HRISBankDetailsSourceValueCurrencyCode.md create mode 100644 docs/Models/Components/JournalLineAccountType.md create mode 100644 docs/Models/Components/JournalLineAccountTypeSourceValueUnion.md rename docs/Models/Components/{AccountTypeValue.md => JournalLineAccountTypeValue.md} (91%) create mode 100644 docs/Models/Components/JournalLineSourceValueAccountType.md rename docs/Models/Components/{SourceValueAccountType.md => SourceValueCountryCode.md} (83%) create mode 100644 docs/Models/Components/Tag.md create mode 100644 src/StackOneHQ/Client/Models/Components/ClearingCode.cs create mode 100644 src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValue.cs create mode 100644 src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValueUnion.cs create mode 100644 src/StackOneHQ/Client/Models/Components/ClearingCodeType.cs create mode 100644 src/StackOneHQ/Client/Models/Components/ClearingCodeValue.cs create mode 100644 src/StackOneHQ/Client/Models/Components/CountryCode.cs rename src/StackOneHQ/Client/Models/Components/{AccountTypeSourceValueUnion.cs => CountryCodeSourceValueUnion.cs} (64%) create mode 100644 src/StackOneHQ/Client/Models/Components/CountryCodeValue.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetails.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountType.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeValue.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCode.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeValue.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueAccountType.cs create mode 100644 src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueCurrencyCode.cs rename src/StackOneHQ/Client/Models/Components/{AccountType.cs => JournalLineAccountType.cs} (82%) create mode 100644 src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeSourceValueUnion.cs rename src/StackOneHQ/Client/Models/Components/{AccountTypeValue.cs => JournalLineAccountTypeValue.cs} (50%) create mode 100644 src/StackOneHQ/Client/Models/Components/JournalLineSourceValueAccountType.cs rename src/StackOneHQ/Client/Models/Components/{SourceValueAccountType.cs => SourceValueCountryCode.cs} (92%) create mode 100644 src/StackOneHQ/Client/Models/Components/Tag.cs diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 442bc4ea..891906e0 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 24d370c2-6b03-48a1-b9df-d477b88b9851 management: - docChecksum: 6b248a3eaff5b04890e3485f7a581000 + docChecksum: 600682ec07ab407b6301d41c2e8ed2fc docVersion: 1.0.0 - speakeasyVersion: 1.637.0 - generationVersion: 2.727.4 - releaseVersion: 0.7.0 - configChecksum: 6ae919384583a759fc09a167a6eb7338 + speakeasyVersion: 1.638.1 + generationVersion: 2.729.2 + releaseVersion: 0.7.1 + configChecksum: de4127022edf893743006ae15fc06883 repoURL: https://github.com/StackOneHQ/stackone-client-csharp.git published: true features: csharp: additionalDependencies: 0.1.0 constsAndDefaults: 0.0.1 - core: 3.15.0 + core: 3.15.1 deprecations: 2.81.2 examples: 2.81.6 flattening: 2.81.3 @@ -51,9 +51,6 @@ generatedFiles: - docs/Models/Components/AccountAddressSourceValueCountry.md - docs/Models/Components/AccountAddressSourceValueLocationType.md - docs/Models/Components/AccountResult.md - - docs/Models/Components/AccountType.md - - docs/Models/Components/AccountTypeSourceValueUnion.md - - docs/Models/Components/AccountTypeValue.md - docs/Models/Components/AccountingAccount.md - docs/Models/Components/AccountingAccountActiveEnum.md - docs/Models/Components/AccountingAccountActiveUnion.md @@ -340,6 +337,11 @@ generatedFiles: - docs/Models/Components/ChannelsEnumSourceValue.md - docs/Models/Components/ChannelsEnumSourceValueUnion.md - docs/Models/Components/ChannelsEnumValue.md + - docs/Models/Components/ClearingCode.md + - docs/Models/Components/ClearingCodeSourceValue.md + - docs/Models/Components/ClearingCodeSourceValueUnion.md + - docs/Models/Components/ClearingCodeType.md + - docs/Models/Components/ClearingCodeValue.md - docs/Models/Components/CompaniesPaginated.md - docs/Models/Components/Company.md - docs/Models/Components/CompanyResult.md @@ -400,10 +402,13 @@ generatedFiles: - docs/Models/Components/CostCenterType.md - docs/Models/Components/CostCenterValue.md - docs/Models/Components/CostCenters.md + - docs/Models/Components/CountryCode.md - docs/Models/Components/CountryCodeEnum.md - docs/Models/Components/CountryCodeEnumSourceValue.md - docs/Models/Components/CountryCodeEnumSourceValueUnion.md - docs/Models/Components/CountryCodeEnumValue.md + - docs/Models/Components/CountryCodeSourceValueUnion.md + - docs/Models/Components/CountryCodeValue.md - docs/Models/Components/Course.md - docs/Models/Components/CourseActiveEnum.md - docs/Models/Components/CourseActiveUnion.md @@ -690,6 +695,15 @@ generatedFiles: - docs/Models/Components/FoldersHasContentEnum.md - docs/Models/Components/FoldersHasContentUnion.md - docs/Models/Components/FoldersPaginated.md + - docs/Models/Components/HRISBankDetails.md + - docs/Models/Components/HRISBankDetailsAccountType.md + - docs/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.md + - docs/Models/Components/HRISBankDetailsAccountTypeValue.md + - docs/Models/Components/HRISBankDetailsCurrencyCode.md + - docs/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.md + - docs/Models/Components/HRISBankDetailsCurrencyCodeValue.md + - docs/Models/Components/HRISBankDetailsSourceValueAccountType.md + - docs/Models/Components/HRISBankDetailsSourceValueCurrencyCode.md - docs/Models/Components/HRISBenefit.md - docs/Models/Components/HRISBenefitBenefitType.md - docs/Models/Components/HRISBenefitResult.md @@ -1201,9 +1215,13 @@ generatedFiles: - docs/Models/Components/JobPostingStatusValue.md - docs/Models/Components/JobPostingsPaginated.md - docs/Models/Components/JournalLine.md + - docs/Models/Components/JournalLineAccountType.md + - docs/Models/Components/JournalLineAccountTypeSourceValueUnion.md + - docs/Models/Components/JournalLineAccountTypeValue.md - docs/Models/Components/JournalLineCurrencyCode.md - docs/Models/Components/JournalLineCurrencyCodeSourceValueUnion.md - docs/Models/Components/JournalLineCurrencyCodeValue.md + - docs/Models/Components/JournalLineSourceValueAccountType.md - docs/Models/Components/JournalLineSourceValueCurrencyCode.md - docs/Models/Components/JsonRpcMessageDto.md - docs/Models/Components/Label.md @@ -1457,12 +1475,12 @@ generatedFiles: - docs/Models/Components/SmsTemplateResult.md - docs/Models/Components/SmsTemplatesPaginated.md - docs/Models/Components/SocialLink.md - - docs/Models/Components/SourceValueAccountType.md - docs/Models/Components/SourceValueAvatarCategory.md - docs/Models/Components/SourceValueAvatarFileFormat.md - docs/Models/Components/SourceValueBalanceUnit.md - docs/Models/Components/SourceValueConditionType.md - docs/Models/Components/SourceValueCostCenter.md + - docs/Models/Components/SourceValueCountryCode.md - docs/Models/Components/SourceValueDepartment.md - docs/Models/Components/SourceValueDivision.md - docs/Models/Components/SourceValueHomeLocationLocationType.md @@ -1476,6 +1494,7 @@ generatedFiles: - docs/Models/Components/StepLogResponse.md - docs/Models/Components/StepLogUrl.md - docs/Models/Components/StepLogsPaginated.md + - docs/Models/Components/Tag.md - docs/Models/Components/Task.md - docs/Models/Components/TaskCommentApiModel.md - docs/Models/Components/TaskResult.md @@ -2605,9 +2624,6 @@ generatedFiles: - src/StackOneHQ/Client/Models/Components/AccountAddressSourceValueCountry.cs - src/StackOneHQ/Client/Models/Components/AccountAddressSourceValueLocationType.cs - src/StackOneHQ/Client/Models/Components/AccountResult.cs - - src/StackOneHQ/Client/Models/Components/AccountType.cs - - src/StackOneHQ/Client/Models/Components/AccountTypeSourceValueUnion.cs - - src/StackOneHQ/Client/Models/Components/AccountTypeValue.cs - src/StackOneHQ/Client/Models/Components/AccountingAccount.cs - src/StackOneHQ/Client/Models/Components/AccountingAccountActiveEnum.cs - src/StackOneHQ/Client/Models/Components/AccountingAccountActiveUnion.cs @@ -2894,6 +2910,11 @@ generatedFiles: - src/StackOneHQ/Client/Models/Components/ChannelsEnumSourceValue.cs - src/StackOneHQ/Client/Models/Components/ChannelsEnumSourceValueUnion.cs - src/StackOneHQ/Client/Models/Components/ChannelsEnumValue.cs + - src/StackOneHQ/Client/Models/Components/ClearingCode.cs + - src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValue.cs + - src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValueUnion.cs + - src/StackOneHQ/Client/Models/Components/ClearingCodeType.cs + - src/StackOneHQ/Client/Models/Components/ClearingCodeValue.cs - src/StackOneHQ/Client/Models/Components/CompaniesPaginated.cs - src/StackOneHQ/Client/Models/Components/Company.cs - src/StackOneHQ/Client/Models/Components/CompanyResult.cs @@ -2954,10 +2975,13 @@ generatedFiles: - src/StackOneHQ/Client/Models/Components/CostCenterType.cs - src/StackOneHQ/Client/Models/Components/CostCenterValue.cs - src/StackOneHQ/Client/Models/Components/CostCenters.cs + - src/StackOneHQ/Client/Models/Components/CountryCode.cs - src/StackOneHQ/Client/Models/Components/CountryCodeEnum.cs - src/StackOneHQ/Client/Models/Components/CountryCodeEnumSourceValue.cs - src/StackOneHQ/Client/Models/Components/CountryCodeEnumSourceValueUnion.cs - src/StackOneHQ/Client/Models/Components/CountryCodeEnumValue.cs + - src/StackOneHQ/Client/Models/Components/CountryCodeSourceValueUnion.cs + - src/StackOneHQ/Client/Models/Components/CountryCodeValue.cs - src/StackOneHQ/Client/Models/Components/Course.cs - src/StackOneHQ/Client/Models/Components/CourseActiveEnum.cs - src/StackOneHQ/Client/Models/Components/CourseActiveUnion.cs @@ -3244,6 +3268,15 @@ generatedFiles: - src/StackOneHQ/Client/Models/Components/FoldersHasContentEnum.cs - src/StackOneHQ/Client/Models/Components/FoldersHasContentUnion.cs - src/StackOneHQ/Client/Models/Components/FoldersPaginated.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetails.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountType.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeValue.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCode.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeValue.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueAccountType.cs + - src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueCurrencyCode.cs - src/StackOneHQ/Client/Models/Components/HRISBenefit.cs - src/StackOneHQ/Client/Models/Components/HRISBenefitBenefitType.cs - src/StackOneHQ/Client/Models/Components/HRISBenefitResult.cs @@ -3755,9 +3788,13 @@ generatedFiles: - src/StackOneHQ/Client/Models/Components/JobPostingStatusValue.cs - src/StackOneHQ/Client/Models/Components/JobPostingsPaginated.cs - src/StackOneHQ/Client/Models/Components/JournalLine.cs + - src/StackOneHQ/Client/Models/Components/JournalLineAccountType.cs + - src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeSourceValueUnion.cs + - src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeValue.cs - src/StackOneHQ/Client/Models/Components/JournalLineCurrencyCode.cs - src/StackOneHQ/Client/Models/Components/JournalLineCurrencyCodeSourceValueUnion.cs - src/StackOneHQ/Client/Models/Components/JournalLineCurrencyCodeValue.cs + - src/StackOneHQ/Client/Models/Components/JournalLineSourceValueAccountType.cs - src/StackOneHQ/Client/Models/Components/JournalLineSourceValueCurrencyCode.cs - src/StackOneHQ/Client/Models/Components/JsonRpcMessageDto.cs - src/StackOneHQ/Client/Models/Components/Label.cs @@ -4011,12 +4048,12 @@ generatedFiles: - src/StackOneHQ/Client/Models/Components/SmsTemplateResult.cs - src/StackOneHQ/Client/Models/Components/SmsTemplatesPaginated.cs - src/StackOneHQ/Client/Models/Components/SocialLink.cs - - src/StackOneHQ/Client/Models/Components/SourceValueAccountType.cs - src/StackOneHQ/Client/Models/Components/SourceValueAvatarCategory.cs - src/StackOneHQ/Client/Models/Components/SourceValueAvatarFileFormat.cs - src/StackOneHQ/Client/Models/Components/SourceValueBalanceUnit.cs - src/StackOneHQ/Client/Models/Components/SourceValueConditionType.cs - src/StackOneHQ/Client/Models/Components/SourceValueCostCenter.cs + - src/StackOneHQ/Client/Models/Components/SourceValueCountryCode.cs - src/StackOneHQ/Client/Models/Components/SourceValueDepartment.cs - src/StackOneHQ/Client/Models/Components/SourceValueDivision.cs - src/StackOneHQ/Client/Models/Components/SourceValueHomeLocationLocationType.cs @@ -4030,6 +4067,7 @@ generatedFiles: - src/StackOneHQ/Client/Models/Components/StepLogResponse.cs - src/StackOneHQ/Client/Models/Components/StepLogUrl.cs - src/StackOneHQ/Client/Models/Components/StepLogsPaginated.cs + - src/StackOneHQ/Client/Models/Components/Tag.cs - src/StackOneHQ/Client/Models/Components/Task.cs - src/StackOneHQ/Client/Models/Components/TaskCommentApiModel.cs - src/StackOneHQ/Client/Models/Components/TaskResult.cs @@ -5568,10 +5606,10 @@ examples: speakeasy-default-hris-list-employees: parameters: query: - fields: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields" + fields: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields" filter: {"updated_after": "2020-01-01T00:00:00.000Z"} expand: "company,employments,work_location,home_location,groups,skills" - include: "avatar_url,avatar,custom_fields,job_description,benefits" + include: "avatar_url,avatar,custom_fields,job_description,benefits,bank_details" header: x-account-id: "" responses: @@ -5641,14 +5679,14 @@ examples: path: id: "" query: - fields: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields" + fields: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields" expand: "company,employments,work_location,home_location,groups,skills" - include: "avatar_url,avatar,custom_fields,job_description,benefits" + include: "avatar_url,avatar,custom_fields,job_description,benefits,bank_details" header: x-account-id: "" responses: "200": - application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "title": "Mr", "first_name": "Isaac", "last_name": "Newton", "name": "Isaac Newton", "display_name": "Sir Isaac Newton", "avatar_url": "https://example.com/avatar.png", "personal_email": "isaac.newton@example.com", "personal_phone_number": "+1234567890", "work_email": "newton@example.com", "work_phone_number": "+1234567890", "job_title": "Physicist", "groups": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "company_id": "1234567890", "remote_company_id": "1234567890", "type": {"value": "team"}}], "gender": {}, "preferred_language": {"value": "eng"}, "ethnicity": {}, "date_of_birth": "1990-01-01T00:00:00.000Z", "birthday": "2021-01-01T00:00:00Z", "marital_status": {}, "avatar": {}, "hire_date": "2021-01-01T00:00:00.000Z", "start_date": "2021-01-01T00:00:00.000Z", "tenure": 2, "work_anniversary": "2021-01-01T00:00:00Z", "employment_status": {}, "termination_date": "2021-01-01T00:00:00Z", "company_id": "1234567890", "citizenships": [{"value": "US"}], "home_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": {"value": "US"}, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "work_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": null, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "company": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "StackOne Technologies PLC", "full_name": "American Express Company", "display_name": "StackOne", "created_at": "2023-02-23T00:00:00.000Z", "updated_at": "2024-02-23T00:00:00.000Z"}, "employments": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "job_title": "Software Engineer", "pay_rate": "40.00", "pay_period": {"value": "hour", "source_value": "Hour"}, "pay_frequency": {"value": "hourly", "source_value": "Hourly"}, "pay_currency": "USD", "effective_date": "2021-01-01T01:01:01.000Z", "end_date": "2021-01-01T01:01:01.000Z", "grade": {"id": "1687-3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "1687-4", "description": "Mid-level employee demonstrating proficiency and autonomy."}, "type": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "label": "Permanent", "type": {}}, "contract_type": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "label": "Full-Time", "contract_type": {}}, "work_time": {"duration": "P0Y0M0DT8H0M0S"}, "payroll_code": "PC1", "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "fte": 1, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z", "active": true, "department": null, "cost_centers": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "company_id": "1234567890", "remote_company_id": "1234567890", "distribution_percentage": 85, "type": {"value": "team"}}], "division": null, "job": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "title": "Software Engineer", "description": null, "owner_id": "5356", "parent_id": "7577"}, "manager": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "role": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "label": "Admin", "role_type": {"value": "admin"}}}]}], "custom_fields": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Training Completion Status", "value": "Completed", "value_id": "value_456", "remote_value_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48"}], "benefits": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Health Insurance", "provider": "Aetna", "description": "Health insurance for employees", "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z"}], "employee_number": "125", "national_identity_numbers": [{"value": "123456789", "type": {"value": "ssn"}, "country": {"value": "US"}}], "skills": [{"id": "16873-IT345", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Information-Technology", "active": true, "language": {"value": "en_GB"}, "maximum_proficiency": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Expert"}, "minimum_proficiency": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Expert"}}], "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}} + application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "title": "Mr", "first_name": "Isaac", "last_name": "Newton", "name": "Isaac Newton", "display_name": "Sir Isaac Newton", "avatar_url": "https://example.com/avatar.png", "personal_email": "isaac.newton@example.com", "personal_phone_number": "+1234567890", "work_email": "newton@example.com", "work_phone_number": "+1234567890", "job_title": "Physicist", "groups": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "company_id": "1234567890", "remote_company_id": "1234567890", "type": {"value": "team"}}], "gender": {}, "preferred_language": {"value": "eng"}, "ethnicity": {}, "date_of_birth": "1990-01-01T00:00:00.000Z", "birthday": "2021-01-01T00:00:00Z", "marital_status": {}, "avatar": {}, "hire_date": "2021-01-01T00:00:00.000Z", "start_date": "2021-01-01T00:00:00.000Z", "tenure": 2, "work_anniversary": "2021-01-01T00:00:00Z", "employment_status": {}, "termination_date": "2021-01-01T00:00:00Z", "company_id": "1234567890", "citizenships": [{"value": "US"}], "home_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": {"value": "US"}, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "work_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": null, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "company": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "StackOne Technologies PLC", "full_name": "American Express Company", "display_name": "StackOne", "created_at": "2023-02-23T00:00:00.000Z", "updated_at": "2024-02-23T00:00:00.000Z"}, "employments": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "job_title": "Software Engineer", "pay_rate": "40.00", "pay_period": {"value": "hour", "source_value": "Hour"}, "pay_frequency": {"value": "hourly", "source_value": "Hourly"}, "pay_currency": "USD", "effective_date": "2021-01-01T01:01:01.000Z", "end_date": "2021-01-01T01:01:01.000Z", "grade": {"id": "1687-3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "1687-4", "description": "Mid-level employee demonstrating proficiency and autonomy."}, "type": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "label": "Permanent", "type": {}}, "contract_type": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "label": "Full-Time", "contract_type": {}}, "work_time": {"duration": "P0Y0M0DT8H0M0S"}, "payroll_code": "PC1", "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "fte": 1, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z", "active": true, "department": null, "cost_centers": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "company_id": "1234567890", "remote_company_id": "1234567890", "distribution_percentage": 85, "type": {"value": "team"}}], "division": null, "job": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "title": "Software Engineer", "description": null, "owner_id": "5356", "parent_id": "7577"}, "manager": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "role": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "label": "Admin", "role_type": {"value": "admin"}}}]}], "custom_fields": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Training Completion Status", "value": "Completed", "value_id": "value_456", "remote_value_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48"}], "benefits": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Health Insurance", "provider": "Aetna", "description": "Health insurance for employees", "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z"}], "employee_number": "125", "bank_details": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "account_name": "John Doe Primary Account", "is_primary": true, "country_code": {"value": "US"}, "currency_code": {"value": "USD", "source_value": "USD"}, "bank_name": "Chase Bank", "account_type": {"value": "checking", "source_value": "checking"}, "iban": "GB82WEST12345698765432", "local_account_number": "1234567890", "swift_bic": "CHASUS33", "clearing_codes": [{"type": {"value": "sort_code", "source_value": "sort_code"}, "value": "12-34-56"}]}], "national_identity_numbers": [{"value": "123456789", "type": {"value": "ssn"}, "country": {"value": "US"}}], "skills": [{"id": "16873-IT345", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Information-Technology", "active": true, "language": {"value": "en_GB"}, "maximum_proficiency": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Expert"}, "minimum_proficiency": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Expert"}}], "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}} "400": application/json: {"statusCode": 400, "message": "Bad Request", "timestamp": "2023-05-30T00:00:00.000Z", "data": {"statusCode": 400, "message": "Bad Request", "headers": {}}, "provider_errors": [{"status": 400, "url": "https://api.provider.com/v1/resource", "raw": {}, "headers": {}}]} "401": @@ -8834,7 +8872,7 @@ examples: speakeasy-default-ats-list-candidates: parameters: query: - fields: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields" + fields: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields" filter: {"updated_after": "2020-01-01T00:00:00.000Z", "created_after": "2020-01-01T00:00:00.000Z"} include: "custom_fields" header: @@ -8906,13 +8944,13 @@ examples: path: id: "" query: - fields: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields" + fields: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields" include: "custom_fields" header: x-account-id: "" responses: "200": - application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Romain Sestier", "first_name": "Romain", "last_name": "Sestier", "email": "sestier.romain123@gmail.com", "emails": [{"type": "personal", "value": "sestier.romain123@gmail.com"}], "social_links": [{"type": "linkedin", "url": "https://www.linkedin.com/in/romainsestier/"}], "phone_numbers": [{"phone": "+447700112233"}], "company": "Company Inc.", "title": "Software Engineer", "application_ids": ["123e4567-e89b-12d3-a456-426614174000", "523e1234-e89b-fdd2-a456-762545121101"], "remote_application_ids": ["123e4567-e89b-12d3-a456-426614174000", "523e1234-e89b-fdd2-a456-762545121101"], "hired_at": "2021-01-01T01:01:01.000Z", "country": "United States", "custom_fields": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Training Completion Status", "value": "Completed", "value_id": "value_456", "remote_value_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48"}], "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}} + application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Romain Sestier", "first_name": "Romain", "last_name": "Sestier", "email": "sestier.romain123@gmail.com", "emails": [{"type": "personal", "value": "sestier.romain123@gmail.com"}], "social_links": [{"type": "linkedin", "url": "https://www.linkedin.com/in/romainsestier/"}], "phone_numbers": [{"phone": "+447700112233"}], "company": "Company Inc.", "title": "Software Engineer", "application_ids": ["123e4567-e89b-12d3-a456-426614174000", "523e1234-e89b-fdd2-a456-762545121101"], "remote_application_ids": ["123e4567-e89b-12d3-a456-426614174000", "523e1234-e89b-fdd2-a456-762545121101"], "hired_at": "2021-01-01T01:01:01.000Z", "country": "United States", "custom_fields": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Training Completion Status", "value": "Completed", "value_id": "value_456", "remote_value_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48"}], "tags": [{"remote_id": "123e4567-e89b-12d3-a456-426614174000", "name": "Gold Medalist"}], "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}} "400": application/json: {"statusCode": 400, "message": "Bad Request", "timestamp": "2023-05-30T00:00:00.000Z", "data": {"statusCode": 400, "message": "Bad Request", "headers": {}}, "provider_errors": [{"status": 400, "url": "https://api.provider.com/v1/resource", "raw": {}, "headers": {}}]} "401": @@ -12401,7 +12439,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"passthrough": {"other_known_names": "John Doe"}, "learning_object_id": "e3gd34-23tr21-er234-345er56", "learning_object_external_reference": "learning-content-123", "progress": 40, "created_at": "2021-07-21T14:00:00.000Z", "due_date": "2021-07-21T14:00:00.000Z", "status": {"value": "in_progress"}} + application/json: {"passthrough": {"other_known_names": "John Doe"}, "learning_object_id": "e3gd34-23tr21-er234-345er56", "progress": 40, "created_at": "2021-07-21T14:00:00.000Z", "due_date": "2021-07-21T14:00:00.000Z", "status": {"value": "in_progress"}, "learning_object_external_reference": "learning-content-123"} responses: "201": application/json: {"statusCode": 201, "message": "Record created successfully.", "timestamp": "2021-01-01T01:01:01.000Z", "data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"}} @@ -12470,7 +12508,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"items": [{"unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers.", "languages": [{"value": "en_GB"}], "content_url": "https://www.youtube.com/watch?v=16873", "mobile_launch_content_url": "https://www.mobile.youtube.com/watch?v=16873", "cover_url": "https://www.googledrive.com/?v=16873", "active": true, "duration": "P3Y6M4DT12H30M5S", "skills": [{"id": "12345", "name": "Sales Techniques"}], "order": 1, "localizations": [{"title": "Software Engineer Lv 1", "description": "This course acts as learning resource for software engineers."}, {"title": "Software Engineer: A comprehensive guide", "description": "This course acts as learning resource for software engineers."}], "tags": ["Sales Techniques", "Customer Service"], "authors": [{"id": "123", "name": "John Doe"}], "updated_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "categories": [{"id": "16873-IT345", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Information-Technology", "language": {"value": "en_GB"}}], "additional_data": [{"id": "learning_outcomes", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "value": "This is additional data"}]}]} + application/json: {"items": [{"unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers.", "languages": [{"value": "en_GB"}], "content_url": "https://www.youtube.com/watch?v=16873", "mobile_launch_content_url": "https://www.mobile.youtube.com/watch?v=16873", "cover_url": "https://www.googledrive.com/?v=16873", "active": true, "duration": "P3Y6M4DT12H30M5S", "skills": [{"id": "12345", "name": "Sales Techniques"}], "order": 1, "localizations": [{"title": "Software Engineer Lv 1", "description": "This course acts as learning resource for software engineers."}, {"title": "Software Engineer: A comprehensive guide", "description": "This course acts as learning resource for software engineers."}], "tags": ["Sales Techniques", "Customer Service"], "authors": [{"id": "123", "name": "John Doe"}], "updated_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "categories": [{"id": "16873-IT345", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Information-Technology", "language": {"value": "en_GB"}}], "additional_data": [{"id": "learning_outcomes", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "value": "This is additional data"}]}]} responses: "202": application/json: {"statusCode": 202, "message": "Batch operation accepted", "timestamp": "2021-01-01T01:01:01.000Z", "errors": [["Missing field: name"], [], []]} @@ -12539,7 +12577,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers.", "languages": [{"value": "en_GB"}], "content_url": "https://www.youtube.com/watch?v=16873", "mobile_launch_content_url": "https://www.mobile.youtube.com/watch?v=16873", "cover_url": "https://www.googledrive.com/?v=16873", "active": true, "duration": "P3Y6M4DT12H30M5S", "skills": [{"id": "12345", "name": "Sales Techniques"}], "order": 1, "localizations": [{"title": "Software Engineer Lv 1", "description": "This course acts as learning resource for software engineers."}, {"title": "Software Engineer: A comprehensive guide", "description": "This course acts as learning resource for software engineers."}], "tags": ["Sales Techniques", "Customer Service"], "authors": [{"id": "123", "name": "John Doe"}], "updated_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "categories": [{"id": "16873-IT345", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Information-Technology", "language": {"value": "en_GB"}}], "additional_data": [{"id": "learning_outcomes", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "value": "This is additional data"}]} + application/json: {"unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers.", "languages": [{"value": "en_GB"}], "content_url": "https://www.youtube.com/watch?v=16873", "mobile_launch_content_url": "https://www.mobile.youtube.com/watch?v=16873", "cover_url": "https://www.googledrive.com/?v=16873", "active": true, "duration": "P3Y6M4DT12H30M5S", "skills": [{"id": "12345", "name": "Sales Techniques"}], "order": 1, "localizations": [{"title": "Software Engineer Lv 1", "description": "This course acts as learning resource for software engineers."}, {"title": "Software Engineer: A comprehensive guide", "description": "This course acts as learning resource for software engineers."}], "tags": ["Sales Techniques", "Customer Service"], "authors": [{"id": "123", "name": "John Doe"}], "updated_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "categories": [{"id": "16873-IT345", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Information-Technology", "language": {"value": "en_GB"}}], "additional_data": [{"id": "learning_outcomes", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "value": "This is additional data"}]} responses: "201": application/json: {"statusCode": 201, "message": "Record created successfully.", "timestamp": "2021-01-01T01:01:01.000Z", "data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1"}} @@ -12611,7 +12649,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers.", "languages": [{"value": "en_GB"}], "content_url": "https://www.youtube.com/watch?v=16873", "mobile_launch_content_url": "https://www.mobile.youtube.com/watch?v=16873", "cover_url": "https://www.googledrive.com/?v=16873", "active": true, "duration": "P3Y6M4DT12H30M5S", "skills": [{"id": "12345", "name": "Sales Techniques"}], "order": 1, "localizations": [{"title": "Software Engineer Lv 1", "description": "This course acts as learning resource for software engineers."}, {"title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers."}], "tags": ["Sales Techniques", "Customer Service"], "authors": [{"id": "123", "name": "John Doe"}], "updated_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "categories": [{"name": "Technology"}], "additional_data": [{"id": "learning_outcomes", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "value": "This is additional data"}]} + application/json: {"unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers.", "languages": [{"value": "en_GB"}], "content_url": "https://www.youtube.com/watch?v=16873", "mobile_launch_content_url": "https://www.mobile.youtube.com/watch?v=16873", "cover_url": "https://www.googledrive.com/?v=16873", "active": true, "duration": "P3Y6M4DT12H30M5S", "skills": [{"id": "12345", "name": "Sales Techniques"}], "order": 1, "localizations": [{"title": "Software Engineer Lv 1", "description": "This course acts as learning resource for software engineers."}, {"title": "Software Engineer Lv 1", "description": "This video acts as learning content for software engineers."}], "tags": ["Sales Techniques", "Customer Service"], "authors": [{"id": "123", "name": "John Doe"}], "updated_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", "categories": [{"name": "Technology"}], "additional_data": [{"id": "learning_outcomes", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "value": "This is additional data"}]} responses: "201": application/json: {"statusCode": 200, "message": "Record updated successfully.", "timestamp": "2021-01-01T01:01:01.000Z"} @@ -12651,7 +12689,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": [{"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "learning_object_external_reference": "learning-content-123", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S"}]} + application/json: {"data": [{"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "learning_object_external_reference": "learning-content-123", "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S"}]} "400": application/json: {"statusCode": 400, "message": "Bad Request", "timestamp": "2023-05-30T00:00:00.000Z", "data": {"statusCode": 400, "message": "Bad Request", "headers": {}}, "provider_errors": [{"status": 400, "url": "https://api.provider.com/v1/resource", "raw": {}, "headers": {}}]} "401": @@ -12684,7 +12722,7 @@ examples: header: x-account-id: "" requestBody: - application/json: {"passthrough": {"other_known_names": "John Doe"}, "completed_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "learning_object_external_reference": "learning-content-123", "time_spent": "PT1H30M45S"} + application/json: {"passthrough": {"other_known_names": "John Doe"}, "completed_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "time_spent": "PT1H30M45S", "learning_object_external_reference": "learning-content-123"} responses: "201": application/json: {"statusCode": 201, "message": "Record created successfully.", "timestamp": "2021-01-01T01:01:01.000Z", "data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"}} @@ -12722,7 +12760,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": {"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "learning_object_external_reference": "learning-content-123", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S", "certificate_url": "https://example.com/certificate/12345"}} + application/json: {"data": {"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "learning_object_external_reference": "learning-content-123", "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S", "certificate_url": "https://example.com/certificate/12345"}} "400": application/json: {"statusCode": 400, "message": "Bad Request", "timestamp": "2023-05-30T00:00:00.000Z", "data": {"statusCode": 400, "message": "Bad Request", "headers": {}}, "provider_errors": [{"status": 400, "url": "https://api.provider.com/v1/resource", "raw": {}, "headers": {}}]} "401": @@ -12792,7 +12830,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": [{"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "learning_object_external_reference": "learning-content-123", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S"}]} + application/json: {"data": [{"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "learning_object_external_reference": "learning-content-123", "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S"}]} "400": application/json: {"statusCode": 400, "message": "Bad Request", "timestamp": "2023-05-30T00:00:00.000Z", "data": {"statusCode": 400, "message": "Bad Request", "headers": {}}, "provider_errors": [{"status": 400, "url": "https://api.provider.com/v1/resource", "raw": {}, "headers": {}}]} "401": @@ -12826,7 +12864,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": {"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "learning_object_external_reference": "learning-content-123", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S", "certificate_url": "https://example.com/certificate/12345"}} + application/json: {"data": {"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "learning_object_external_reference": "learning-content-123", "completed_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "updated_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "remote_learning_object_id": "e3cb55bf-aa84-466e-a6c1-b8302b257a49", "user_id": "c28xyrc55866bvuv", "remote_user_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "time_spent": "PT1H30M45S", "certificate_url": "https://example.com/certificate/12345"}} "400": application/json: {"statusCode": 400, "message": "Bad Request", "timestamp": "2023-05-30T00:00:00.000Z", "data": {"statusCode": 400, "message": "Bad Request", "headers": {}}, "provider_errors": null} "401": @@ -15477,4 +15515,4 @@ examples: "502": application/json: {"statusCode": 502, "message": "Bad Gateway", "timestamp": "2023-05-30T00:00:00.000Z"} examplesVersion: 1.0.2 -releaseNotes: "## Csharp SDK Changes Detected:\n* `StackOneHq.client.Hris.GetEmployee()`: `response.data.Title` **Added**\n* `StackOneHq.client.Hris.ListEmployeeTimeOffBalances()`: `response.data.[].IsUnlimited` **Added**\n* `StackOneHq.client.Hris.GetEmployeeTimeOffBalance()`: `response.data.IsUnlimited` **Added**\n* `StackOneHq.client.Hris.Employees.List()`: `response.data.[].Title` **Added**\n* `StackOneHq.client.Hris.Employees.Create()`: \n * `request.hrisCreateEmployeeRequestDto.Title` **Added**\n* `StackOneHq.client.Hris.Employees.Update()`: \n * `request.hrisUpdateEmployeeRequestDto.Title` **Added**\n" +releaseNotes: "## Csharp SDK Changes Detected:\n* `StackOneHq.client.Lms.BatchUpsertContent()`: \n * `request.lmsBatchUpsertContentRequestDto.Items.[].ExternalReference` **Changed** **Breaking** :warning:\n* `StackOneHq.client.Lms.CreateUserCompletion()`: \n * `request.lmsCreateCompletionRequestDto.LearningObjectExternalReference` **Changed** **Breaking** :warning:\n* `StackOneHq.client.Lms.Assignments.Create()`: \n * `request.lmsCreateAssignmentRequestDto.LearningObjectExternalReference` **Changed** **Breaking** :warning:\n* `StackOneHq.client.Lms.Content.Upsert()`: \n * `request.lmsUpsertContentRequestDto.ExternalReference` **Changed** **Breaking** :warning:\n* `StackOneHq.client.Lms.Content.Update()`: \n * `request.lmsCreateContentRequestDto.ExternalReference` **Changed** **Breaking** :warning:\n* `StackOneHq.client.Hris.GetEmployee()`: `response.data.BankDetails` **Added**\n* `StackOneHq.client.Hris.Employees.List()`: `response.data.[].BankDetails` **Added**\n* `StackOneHq.client.Ats.ListCandidates()`: `response.data.[].Tags` **Added**\n* `StackOneHq.client.Ats.Candidates.Get()`: `response.data.Tags` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 3aedd098..84992d71 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -25,7 +25,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false csharp: - version: 0.7.0 + version: 0.7.1 additionalDependencies: [] author: stackone baseErrorName: StackOneError diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 0a84ddb2..1025b0be 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -2885,7 +2885,7 @@ paths: schema: type: "string" nullable: true - example: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields" + example: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields" - name: "filter" in: "query" description: "HRIS Employees filters" @@ -2958,7 +2958,7 @@ paths: schema: type: "string" nullable: true - example: "avatar_url,avatar,custom_fields,job_description,benefits" + example: "avatar_url,avatar,custom_fields,job_description,benefits,bank_details" responses: "200": description: "The list of employees was retrieved." @@ -3172,7 +3172,7 @@ paths: schema: type: "string" nullable: true - example: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields" + example: "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields" - name: "expand" in: "query" description: "The comma separated list of fields that will be expanded in the response" @@ -3188,7 +3188,7 @@ paths: schema: type: "string" nullable: true - example: "avatar_url,avatar,custom_fields,job_description,benefits" + example: "avatar_url,avatar,custom_fields,job_description,benefits,bank_details" responses: "200": description: "The employee with the given identifier was retrieved." @@ -15621,7 +15621,7 @@ paths: schema: type: "string" nullable: true - example: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields" + example: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields" - name: "filter" in: "query" description: "ATS Candidate Filter" @@ -15910,7 +15910,7 @@ paths: schema: type: "string" nullable: true - example: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields" + example: "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields" - name: "include" in: "query" description: "The comma separated list of fields that will be included in the response" @@ -40406,6 +40406,34 @@ components: - "statusCode" - "message" - "timestamp" + BankAccountTypeEnum: + type: "object" + properties: + "value": + type: "string" + enum: + - "savings" + - "checking" + - "current" + - "business" + - "personal" + - "other" + - "unmapped_value" + - null + description: "The type of bank account" + nullable: true + example: "checking" + x-speakeasy-unknown-values: "allow" + "source_value": + oneOf: + - type: "string" + - type: "number" + - type: "boolean" + - type: "object" + - type: "array" + items: {} + nullable: true + example: "checking" BatchResultApiModel: type: "object" properties: @@ -40455,6 +40483,61 @@ components: - type: "array" items: {} nullable: true + ClearingCode: + type: "object" + properties: + "type": + allOf: + - {"$ref": "#/components/schemas/ClearingCodeTypeEnum"} + description: "The type of clearing code" + nullable: true + "value": + type: "string" + description: "The clearing code value" + nullable: true + example: "12-34-56" + ClearingCodeTypeEnum: + type: "object" + properties: + "value": + type: "string" + enum: + - "sort_code" + - "building_society_reference" + - "aba_routing" + - "chips_participant_id" + - "transit_number" + - "institution_number" + - "bsb_code" + - "ifsc_code" + - "micr_code" + - "clabe" + - "cnaps_code" + - "ch_bank_clearing_code" + - "ch_sic_code" + - "zengin_code" + - "nz_clearing_code" + - "hk_bank_code" + - "blz" + - "at_bankleitzahl" + - "nuban" + - "se_bankgiro_code" + - "unmapped_value" + - null + description: "The type of clearing code" + nullable: true + example: "sort_code" + x-speakeasy-unknown-values: "allow" + "source_value": + oneOf: + - type: "string" + - type: "number" + - type: "boolean" + - type: "object" + - type: "array" + items: {} + nullable: true + example: "sort_code" CompaniesPaginated: type: "object" properties: @@ -41366,6 +41449,185 @@ components: description: "Provider's unique identifier" nullable: true example: "8187e5da-dc77-475e-9949-af0f1fa4e4e3" + CurrencyCodeEnum: + type: "object" + properties: + "value": + type: "string" + enum: + - "AED" + - "AFN" + - "ALL" + - "AMD" + - "ANG" + - "AOA" + - "ARS" + - "AUD" + - "AWG" + - "AZN" + - "BAM" + - "BBD" + - "BDT" + - "BGN" + - "BHD" + - "BIF" + - "BMD" + - "BND" + - "BOB" + - "BRL" + - "BSD" + - "BTN" + - "BWP" + - "BYN" + - "BZD" + - "CAD" + - "CDF" + - "CHF" + - "CLP" + - "CNY" + - "COP" + - "CRC" + - "CUC" + - "CUP" + - "CVE" + - "CZK" + - "DJF" + - "DKK" + - "DOP" + - "DZD" + - "EGP" + - "ERN" + - "ETB" + - "EUR" + - "FJD" + - "FKP" + - "GBP" + - "GEL" + - "GHS" + - "GIP" + - "GMD" + - "GNF" + - "GTQ" + - "GYD" + - "HKD" + - "HNL" + - "HRK" + - "HTG" + - "HUF" + - "IDR" + - "ILS" + - "INR" + - "IQD" + - "IRR" + - "ISK" + - "JMD" + - "JOD" + - "JPY" + - "KES" + - "KGS" + - "KHR" + - "KMF" + - "KPW" + - "KRW" + - "KWD" + - "KYD" + - "KZT" + - "LAK" + - "LBP" + - "LKR" + - "LRD" + - "LSL" + - "LYD" + - "MAD" + - "MDL" + - "MGA" + - "MKD" + - "MMK" + - "MNT" + - "MOP" + - "MRU" + - "MUR" + - "MVR" + - "MWK" + - "MXN" + - "MYR" + - "MZN" + - "NAD" + - "NGN" + - "NIO" + - "NOK" + - "NPR" + - "NZD" + - "OMR" + - "PAB" + - "PEN" + - "PGK" + - "PHP" + - "PKR" + - "PLN" + - "PYG" + - "QAR" + - "RON" + - "RSD" + - "RUB" + - "RWF" + - "SAR" + - "SBD" + - "SCR" + - "SDG" + - "SEK" + - "SGD" + - "SHP" + - "SLL" + - "SOS" + - "SRD" + - "SSP" + - "STN" + - "SYP" + - "SZL" + - "THB" + - "TJS" + - "TMT" + - "TND" + - "TOP" + - "TRY" + - "TTD" + - "TWD" + - "TZS" + - "UAH" + - "UGX" + - "USD" + - "UYU" + - "UZS" + - "VES" + - "VND" + - "VUV" + - "WST" + - "XAF" + - "XCD" + - "XDR" + - "XOF" + - "XPF" + - "YER" + - "ZAR" + - "ZMW" + - "ZWL" + - "unmapped_value" + - null + description: "ISO 4217 currency code" + nullable: true + example: "USD" + x-speakeasy-unknown-values: "allow" + "source_value": + oneOf: + - type: "string" + - type: "number" + - type: "boolean" + - type: "object" + - type: "array" + items: {} + nullable: true + example: "USD" CustomFieldDefinition: type: "object" properties: @@ -41898,6 +42160,11 @@ components: description: "The assigned employee number" nullable: true example: "125" + "bank_details": + type: "array" + items: {"$ref": "#/components/schemas/HRISBankDetails"} + description: "Bank account details for the employee" + nullable: true "national_identity_number": allOf: - {"$ref": "#/components/schemas/NationalIdentityNumberApiModel"} @@ -43790,6 +44057,69 @@ components: - type: "array" items: {} nullable: true + HRISBankDetails: + type: "object" + properties: + "id": + type: "string" + description: "Unique identifier" + nullable: true + example: "8187e5da-dc77-475e-9949-af0f1fa4e4e3" + "remote_id": + type: "string" + description: "Provider's unique identifier" + nullable: true + example: "8187e5da-dc77-475e-9949-af0f1fa4e4e3" + "account_name": + type: "string" + description: "The name of the bank account" + nullable: true + example: "John Doe Primary Account" + "is_primary": + type: "boolean" + description: "Whether this is the primary bank account" + nullable: true + example: true + "country_code": + allOf: + - {"$ref": "#/components/schemas/CountryCodeEnum"} + description: "The country code where the bank is located" + nullable: true + "currency_code": + allOf: + - {"$ref": "#/components/schemas/CurrencyCodeEnum"} + description: "The currency code for the account" + nullable: true + "bank_name": + type: "string" + description: "The name of the bank" + nullable: true + example: "Chase Bank" + "account_type": + allOf: + - {"$ref": "#/components/schemas/BankAccountTypeEnum"} + description: "The type of bank account" + nullable: true + "iban": + type: "string" + description: "International Bank Account Number (IBAN)" + nullable: true + example: "GB82WEST12345698765432" + "local_account_number": + type: "string" + description: "Local account number (used when IBAN is not available)" + nullable: true + example: "1234567890" + "swift_bic": + type: "string" + description: "SWIFT/BIC code for international transfers" + nullable: true + example: "CHASUS33" + "clearing_codes": + type: "array" + items: {"$ref": "#/components/schemas/ClearingCode"} + description: "Array of clearing codes required by the country" + nullable: true HrisBatchDocumentUploadRequestDto: type: "object" properties: @@ -50104,6 +50434,11 @@ components: items: {"$ref": "#/components/schemas/CustomFields"} description: "The candidate custom fields" nullable: true + "tags": + type: "array" + items: {"$ref": "#/components/schemas/Tag"} + description: "List of candidate tags indicating metadata associated with the candidate" + nullable: true "created_at": type: "string" format: "date-time" @@ -52351,6 +52686,19 @@ components: description: "The source of the application" nullable: true example: "LinkedIn" + Tag: + type: "object" + properties: + "remote_id": + type: "string" + description: "Remote ID of the tag" + nullable: true + example: "123e4567-e89b-12d3-a456-426614174000" + "name": + type: "string" + description: "Name of the tag" + nullable: true + example: "Gold Medalist" UpdatePackage: type: "object" properties: @@ -54904,6 +55252,11 @@ components: description: "Custom Unified Fields configured in your StackOne project" nullable: true example: {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"} + "learning_object_external_reference": + type: "string" + description: "The external reference of the learning object associated with this completion, this is the main identifier for creating completions." + nullable: true + example: "learning-content-123" "external_reference": type: "string" description: "The external reference associated with this completion" @@ -54948,11 +55301,6 @@ components: description: "Provider's unique identifier of the learning object related to the completion" nullable: true example: "e3cb55bf-aa84-466e-a6c1-b8302b257a49" - "learning_object_external_reference": - type: "string" - description: "The external reference of the learning object associated with this completion, this is the main identifier for creating completions." - nullable: true - example: "learning-content-123" "user_id": type: "string" description: "The user ID associated with this completion" @@ -55363,11 +55711,6 @@ components: description: "The learning_object_id associated with this assignment. This is not required unless specified in an integration." nullable: true example: "e3gd34-23tr21-er234-345er56" - "learning_object_external_reference": - type: "string" - description: "The external reference of the learning object associated with this assignment, this is the main identifier for creating assignments." - nullable: true - example: "learning-content-123" "progress": type: "number" description: "The progress associated with this assigment" @@ -55390,6 +55733,12 @@ components: - {"$ref": "#/components/schemas/AssignmentStatusEnum"} description: "The status of the assignment" nullable: true + "learning_object_external_reference": + type: "string" + description: "The external reference of the learning object associated with this assignment, this is the main identifier for creating assignments." + example: "learning-content-123" + required: + - "learning_object_external_reference" LmsCreateCompletionRequestDto: type: "object" properties: @@ -55415,11 +55764,6 @@ components: description: "The id of the learning object associated with this completion. This is not required unless specified in an integration." nullable: true example: "e3gd34-23tr21-er234-345er56" - "learning_object_external_reference": - type: "string" - description: "The external reference of the learning object associated with this completion, this is the main identifier for creating completions." - nullable: true - example: "learning-content-123" "time_spent": type: "string" format: "string" @@ -55438,6 +55782,12 @@ components: nullable: true example: "16873-ENG-VIDEO-1" deprecated: true + "learning_object_external_reference": + type: "string" + description: "The external reference of the learning object associated with this completion, this is the main identifier for creating completions." + example: "learning-content-123" + required: + - "learning_object_external_reference" LmsCreateContentRequestDto: type: "object" properties: @@ -55447,11 +55797,6 @@ components: description: "Custom Unified Fields configured in your StackOne project" nullable: true example: {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"} - "external_reference": - type: "string" - description: "The external ID associated with this content" - nullable: true - example: "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1" "title": type: "string" description: "The title of the content" @@ -55479,7 +55824,7 @@ components: example: "https://www.mobile.youtube.com/watch?v=16873" "content_type": allOf: - - {"$ref": "#/components/schemas/ContentTypeEnum"} + - {"$ref": "#/components/schemas/WriteContentTypeEnum"} description: "The type of content" nullable: true "cover_url": @@ -55552,6 +55897,10 @@ components: description: "The date on which the content was created." nullable: true example: "2021-07-21T14:00:00.000Z" + "external_reference": + type: "string" + description: "The external ID associated with this content" + example: "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1" "categories": type: "array" items: {"$ref": "#/components/schemas/CreateCategoriesApiModel"} @@ -55563,6 +55912,8 @@ components: items: {"$ref": "#/components/schemas/AdditionalData"} description: "The additional_data associated with this content" nullable: true + required: + - "external_reference" LmsUpsertContentRequestDto: type: "object" properties: @@ -55572,11 +55923,6 @@ components: description: "Custom Unified Fields configured in your StackOne project" nullable: true example: {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"} - "external_reference": - type: "string" - description: "The external ID associated with this content" - nullable: true - example: "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1" "title": type: "string" description: "The title of the content" @@ -55672,6 +56018,10 @@ components: description: "The date on which the content was created." nullable: true example: "2021-07-21T14:00:00.000Z" + "external_reference": + type: "string" + description: "The external ID associated with this content" + example: "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1" "categories": type: "array" items: {"$ref": "#/components/schemas/CreateCategoriesApiModel"} @@ -55687,6 +56037,8 @@ components: - {"$ref": "#/components/schemas/WriteContentTypeEnum"} description: "The type of content" nullable: true + required: + - "external_reference" LmsUser: type: "object" properties: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 19d48dbd..fb1811a4 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.637.0 +speakeasyVersion: 1.638.1 sources: StackOne: sourceNamespace: stack-one - sourceRevisionDigest: sha256:a245565ac56565f958ad759d4fe20cf8fab83decbdb72f1dc4ea1d988620d90f - sourceBlobDigest: sha256:7f70ce7b7cb85bcba7762dd5e45a33f4f1bd3c736717b06742c0dce0ffc490a9 + sourceRevisionDigest: sha256:2875a46481ef7e14d961bc79c6114e37ddce3a4721451f2cc0cf9c77bbd02f09 + sourceBlobDigest: sha256:18db85c2bafd9c2acbe2a3f32cf9a26820ff3ef4ab81e6443d9ceee27274e0e8 tags: - latest - - speakeasy-sdk-regen-1760715214 + - speakeasy-sdk-regen-1761231341 - 1.0.0 targets: stack-one: source: StackOne sourceNamespace: stack-one - sourceRevisionDigest: sha256:a245565ac56565f958ad759d4fe20cf8fab83decbdb72f1dc4ea1d988620d90f - sourceBlobDigest: sha256:7f70ce7b7cb85bcba7762dd5e45a33f4f1bd3c736717b06742c0dce0ffc490a9 + sourceRevisionDigest: sha256:2875a46481ef7e14d961bc79c6114e37ddce3a4721451f2cc0cf9c77bbd02f09 + sourceBlobDigest: sha256:18db85c2bafd9c2acbe2a3f32cf9a26820ff3ef4ab81e6443d9ceee27274e0e8 codeSamplesNamespace: stack-one-csharp-code-samples - codeSamplesRevisionDigest: sha256:ebc421728664d6303af622b5cdcd6425d544855e093e4654cbbc4a5201d41802 + codeSamplesRevisionDigest: sha256:6ef6447768bdc0541d1903e5dddc5f6d324b6a1b100590958657231a594d0301 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/NUGET.md b/NUGET.md index 2fc06d8c..e5351702 100644 --- a/NUGET.md +++ b/NUGET.md @@ -19,12 +19,12 @@ var sdk = new StackOneHQClient(security: new Security() { HrisListEmployeesRequest req = new HrisListEmployeesRequest() { XAccountId = "", - Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields", + Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields", Filter = new HrisListEmployeesFilter() { UpdatedAfter = System.DateTime.Parse("2020-01-01T00:00:00.000Z"), }, Expand = "company,employments,work_location,home_location,groups,skills", - Include = "avatar_url,avatar,custom_fields,job_description,benefits", + Include = "avatar_url,avatar,custom_fields,job_description,benefits,bank_details", }; HrisListEmployeesResponse? res = await sdk.Hris.Employees.ListAsync(req); @@ -411,4 +411,150 @@ var res = await sdk.ConnectSessions.CreateAsync(req); ``` + +## Custom HTTP Client + +The C# SDK makes API calls using an `ISpeakeasyHttpClient` that wraps the native +[HttpClient](https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient). This +client provides the ability to attach hooks around the request lifecycle that can be used to modify the request or handle +errors and response. + +The `ISpeakeasyHttpClient` interface allows you to either use the default `SpeakeasyHttpClient` that comes with the SDK, +or provide your own custom implementation with customized configuration such as custom message handlers, timeouts, +connection pooling, and other HTTP client settings. + +The following example shows how to create a custom HTTP client with request modification and error handling: + +```csharp +using StackOneHQ.Client; +using StackOneHQ.Client.Utils; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +// Create a custom HTTP client +public class CustomHttpClient : ISpeakeasyHttpClient +{ + private readonly ISpeakeasyHttpClient _defaultClient; + + public CustomHttpClient() + { + _defaultClient = new SpeakeasyHttpClient(); + } + + public async Task SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null) + { + // Add custom header and timeout + request.Headers.Add("x-custom-header", "custom value"); + request.Headers.Add("x-request-timeout", "30"); + + try + { + var response = await _defaultClient.SendAsync(request, cancellationToken); + // Log successful response + Console.WriteLine($"Request successful: {response.StatusCode}"); + return response; + } + catch (Exception error) + { + // Log error + Console.WriteLine($"Request failed: {error.Message}"); + throw; + } + } + + public void Dispose() + { + _httpClient?.Dispose(); + _defaultClient?.Dispose(); + } +} + +// Use the custom HTTP client with the SDK +var customHttpClient = new CustomHttpClient(); +var sdk = new StackOneHQClient(client: customHttpClient); +``` + +
+You can also provide a completely custom HTTP client with your own configuration: + +```csharp +using StackOneHQ.Client.Utils; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +// Custom HTTP client with custom configuration +public class AdvancedHttpClient : ISpeakeasyHttpClient +{ + private readonly HttpClient _httpClient; + + public AdvancedHttpClient() + { + var handler = new HttpClientHandler() + { + MaxConnectionsPerServer = 10, + // ServerCertificateCustomValidationCallback = customCertValidation, // Custom SSL validation if needed + }; + + _httpClient = new HttpClient(handler) + { + Timeout = TimeSpan.FromSeconds(30) + }; + } + + public async Task SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null) + { + return await _httpClient.SendAsync(request, cancellationToken ?? CancellationToken.None); + } + + public void Dispose() + { + _httpClient?.Dispose(); + } +} + +var sdk = StackOneHQClient.Builder() + .WithClient(new AdvancedHttpClient()) + .Build(); +``` +
+ +
+For simple debugging, you can enable request/response logging by implementing a custom client: + +```csharp +public class LoggingHttpClient : ISpeakeasyHttpClient +{ + private readonly ISpeakeasyHttpClient _innerClient; + + public LoggingHttpClient(ISpeakeasyHttpClient innerClient = null) + { + _innerClient = innerClient ?? new SpeakeasyHttpClient(); + } + + public async Task SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null) + { + // Log request + Console.WriteLine($"Sending {request.Method} request to {request.RequestUri}"); + + var response = await _innerClient.SendAsync(request, cancellationToken); + + // Log response + Console.WriteLine($"Received {response.StatusCode} response"); + + return response; + } + + public void Dispose() => _innerClient?.Dispose(); +} + +var sdk = new StackOneHQClient(client: new LoggingHttpClient()); +``` +
+ +The SDK also provides built-in hook support through the `SDKConfiguration.Hooks` system, which automatically handles +`BeforeRequestAsync`, `AfterSuccessAsync`, and `AfterErrorAsync` hooks for advanced request lifecycle management. + + \ No newline at end of file diff --git a/README.md b/README.md index 93d6eccd..949c787c 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Accounting: The documentation for the StackOne Unified API - ACCOUNTING * [Retries](#retries) * [Error Handling](#error-handling) * [Server Selection](#server-selection) + * [Custom HTTP Client](#custom-http-client) * [Development](#development) * [Maturity](#maturity) * [Contributions](#contributions) @@ -69,12 +70,12 @@ var sdk = new StackOneHQClient(security: new Security() { HrisListEmployeesRequest req = new HrisListEmployeesRequest() { XAccountId = "", - Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields", + Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields", Filter = new HrisListEmployeesFilter() { UpdatedAfter = System.DateTime.Parse("2020-01-01T00:00:00.000Z"), }, Expand = "company,employments,work_location,home_location,groups,skills", - Include = "avatar_url,avatar,custom_fields,job_description,benefits", + Include = "avatar_url,avatar,custom_fields,job_description,benefits,bank_details", }; HrisListEmployeesResponse? res = await sdk.Hris.Employees.ListAsync(req); @@ -1025,6 +1026,152 @@ var res = await sdk.ConnectSessions.CreateAsync(req); ``` + +## Custom HTTP Client + +The C# SDK makes API calls using an `ISpeakeasyHttpClient` that wraps the native +[HttpClient](https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient). This +client provides the ability to attach hooks around the request lifecycle that can be used to modify the request or handle +errors and response. + +The `ISpeakeasyHttpClient` interface allows you to either use the default `SpeakeasyHttpClient` that comes with the SDK, +or provide your own custom implementation with customized configuration such as custom message handlers, timeouts, +connection pooling, and other HTTP client settings. + +The following example shows how to create a custom HTTP client with request modification and error handling: + +```csharp +using StackOneHQ.Client; +using StackOneHQ.Client.Utils; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +// Create a custom HTTP client +public class CustomHttpClient : ISpeakeasyHttpClient +{ + private readonly ISpeakeasyHttpClient _defaultClient; + + public CustomHttpClient() + { + _defaultClient = new SpeakeasyHttpClient(); + } + + public async Task SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null) + { + // Add custom header and timeout + request.Headers.Add("x-custom-header", "custom value"); + request.Headers.Add("x-request-timeout", "30"); + + try + { + var response = await _defaultClient.SendAsync(request, cancellationToken); + // Log successful response + Console.WriteLine($"Request successful: {response.StatusCode}"); + return response; + } + catch (Exception error) + { + // Log error + Console.WriteLine($"Request failed: {error.Message}"); + throw; + } + } + + public void Dispose() + { + _httpClient?.Dispose(); + _defaultClient?.Dispose(); + } +} + +// Use the custom HTTP client with the SDK +var customHttpClient = new CustomHttpClient(); +var sdk = new StackOneHQClient(client: customHttpClient); +``` + +
+You can also provide a completely custom HTTP client with your own configuration: + +```csharp +using StackOneHQ.Client.Utils; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +// Custom HTTP client with custom configuration +public class AdvancedHttpClient : ISpeakeasyHttpClient +{ + private readonly HttpClient _httpClient; + + public AdvancedHttpClient() + { + var handler = new HttpClientHandler() + { + MaxConnectionsPerServer = 10, + // ServerCertificateCustomValidationCallback = customCertValidation, // Custom SSL validation if needed + }; + + _httpClient = new HttpClient(handler) + { + Timeout = TimeSpan.FromSeconds(30) + }; + } + + public async Task SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null) + { + return await _httpClient.SendAsync(request, cancellationToken ?? CancellationToken.None); + } + + public void Dispose() + { + _httpClient?.Dispose(); + } +} + +var sdk = StackOneHQClient.Builder() + .WithClient(new AdvancedHttpClient()) + .Build(); +``` +
+ +
+For simple debugging, you can enable request/response logging by implementing a custom client: + +```csharp +public class LoggingHttpClient : ISpeakeasyHttpClient +{ + private readonly ISpeakeasyHttpClient _innerClient; + + public LoggingHttpClient(ISpeakeasyHttpClient innerClient = null) + { + _innerClient = innerClient ?? new SpeakeasyHttpClient(); + } + + public async Task SendAsync(HttpRequestMessage request, CancellationToken? cancellationToken = null) + { + // Log request + Console.WriteLine($"Sending {request.Method} request to {request.RequestUri}"); + + var response = await _innerClient.SendAsync(request, cancellationToken); + + // Log response + Console.WriteLine($"Received {response.StatusCode} response"); + + return response; + } + + public void Dispose() => _innerClient?.Dispose(); +} + +var sdk = new StackOneHQClient(client: new LoggingHttpClient()); +``` +
+ +The SDK also provides built-in hook support through the `SDKConfiguration.Hooks` system, which automatically handles +`BeforeRequestAsync`, `AfterSuccessAsync`, and `AfterErrorAsync` hooks for advanced request lifecycle management. + + # Development diff --git a/RELEASES.md b/RELEASES.md index 6166b1db..cecec0c5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -128,4 +128,14 @@ Based on: ### Generated - [csharp v0.7.0] . ### Releases -- [NuGet v0.7.0] https://www.nuget.org/packages/StackOneHQ.Client/0.7.0 - . \ No newline at end of file +- [NuGet v0.7.0] https://www.nuget.org/packages/StackOneHQ.Client/0.7.0 - . + +## 2025-10-23 14:55:20 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.638.1 (2.729.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v0.7.1] . +### Releases +- [NuGet v0.7.1] https://www.nuget.org/packages/StackOneHQ.Client/0.7.1 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 5b33c012..31fefbf1 100644 --- a/USAGE.md +++ b/USAGE.md @@ -14,12 +14,12 @@ var sdk = new StackOneHQClient(security: new Security() { HrisListEmployeesRequest req = new HrisListEmployeesRequest() { XAccountId = "", - Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields", + Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields", Filter = new HrisListEmployeesFilter() { UpdatedAfter = System.DateTime.Parse("2020-01-01T00:00:00.000Z"), }, Expand = "company,employments,work_location,home_location,groups,skills", - Include = "avatar_url,avatar,custom_fields,job_description,benefits", + Include = "avatar_url,avatar,custom_fields,job_description,benefits,bank_details", }; HrisListEmployeesResponse? res = await sdk.Hris.Employees.ListAsync(req); diff --git a/docs/Models/Components/AccountTypeSourceValueUnion.md b/docs/Models/Components/AccountTypeSourceValueUnion.md deleted file mode 100644 index 40c240aa..00000000 --- a/docs/Models/Components/AccountTypeSourceValueUnion.md +++ /dev/null @@ -1,34 +0,0 @@ -# AccountTypeSourceValueUnion - - -## Supported Types - -### Str - -```csharp -AccountTypeSourceValueUnion.CreateStr(/* values here */); -``` - -### Number - -```csharp -AccountTypeSourceValueUnion.CreateNumber(/* values here */); -``` - -### Boolean - -```csharp -AccountTypeSourceValueUnion.CreateBoolean(/* values here */); -``` - -### SourceValueAccountType - -```csharp -AccountTypeSourceValueUnion.CreateSourceValueAccountType(/* values here */); -``` - -### ArrayOfAny - -```csharp -AccountTypeSourceValueUnion.CreateArrayOfAny(/* values here */); -``` diff --git a/docs/Models/Components/Candidate.md b/docs/Models/Components/Candidate.md index af6bb3c3..080cb93a 100644 --- a/docs/Models/Components/Candidate.md +++ b/docs/Models/Components/Candidate.md @@ -23,5 +23,6 @@ | `HiredAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Candidate hired date | 2021-01-01T01:01:01.000Z | | `Country` | *string* | :heavy_minus_sign: | Candidate country | United States | | `CustomFields` | List<[CustomFields](../../Models/Components/CustomFields.md)> | :heavy_minus_sign: | The candidate custom fields | | +| `Tags` | List<[Tag](../../Models/Components/Tag.md)> | :heavy_minus_sign: | List of candidate tags indicating metadata associated with the candidate | | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Candidate created date | 2021-01-01T01:01:01.000Z | | `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Candidate updated date | 2021-01-01T01:01:01.000Z | \ No newline at end of file diff --git a/docs/Models/Components/ClearingCode.md b/docs/Models/Components/ClearingCode.md new file mode 100644 index 00000000..67426f86 --- /dev/null +++ b/docs/Models/Components/ClearingCode.md @@ -0,0 +1,9 @@ +# ClearingCode + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `Type` | [ClearingCodeType](../../Models/Components/ClearingCodeType.md) | :heavy_minus_sign: | The type of clearing code | | +| `Value` | *string* | :heavy_minus_sign: | The clearing code value | 12-34-56 | \ No newline at end of file diff --git a/docs/Models/Components/ClearingCodeSourceValue.md b/docs/Models/Components/ClearingCodeSourceValue.md new file mode 100644 index 00000000..63674387 --- /dev/null +++ b/docs/Models/Components/ClearingCodeSourceValue.md @@ -0,0 +1,7 @@ +# ClearingCodeSourceValue + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Components/ClearingCodeSourceValueUnion.md b/docs/Models/Components/ClearingCodeSourceValueUnion.md new file mode 100644 index 00000000..19536737 --- /dev/null +++ b/docs/Models/Components/ClearingCodeSourceValueUnion.md @@ -0,0 +1,34 @@ +# ClearingCodeSourceValueUnion + + +## Supported Types + +### Str + +```csharp +ClearingCodeSourceValueUnion.CreateStr(/* values here */); +``` + +### Number + +```csharp +ClearingCodeSourceValueUnion.CreateNumber(/* values here */); +``` + +### Boolean + +```csharp +ClearingCodeSourceValueUnion.CreateBoolean(/* values here */); +``` + +### ClearingCodeSourceValue + +```csharp +ClearingCodeSourceValueUnion.CreateClearingCodeSourceValue(/* values here */); +``` + +### ArrayOfAny + +```csharp +ClearingCodeSourceValueUnion.CreateArrayOfAny(/* values here */); +``` diff --git a/docs/Models/Components/ClearingCodeType.md b/docs/Models/Components/ClearingCodeType.md new file mode 100644 index 00000000..bb6bfcca --- /dev/null +++ b/docs/Models/Components/ClearingCodeType.md @@ -0,0 +1,11 @@ +# ClearingCodeType + +The type of clearing code + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `Value` | [ClearingCodeValue](../../Models/Components/ClearingCodeValue.md) | :heavy_minus_sign: | The type of clearing code | sort_code | +| `SourceValue` | [ClearingCodeSourceValueUnion](../../Models/Components/ClearingCodeSourceValueUnion.md) | :heavy_minus_sign: | N/A | sort_code | \ No newline at end of file diff --git a/docs/Models/Components/ClearingCodeValue.md b/docs/Models/Components/ClearingCodeValue.md new file mode 100644 index 00000000..9472b170 --- /dev/null +++ b/docs/Models/Components/ClearingCodeValue.md @@ -0,0 +1,30 @@ +# ClearingCodeValue + +The type of clearing code + + +## Values + +| Name | Value | +| -------------------------- | -------------------------- | +| `SortCode` | sort_code | +| `BuildingSocietyReference` | building_society_reference | +| `AbaRouting` | aba_routing | +| `ChipsParticipantId` | chips_participant_id | +| `TransitNumber` | transit_number | +| `InstitutionNumber` | institution_number | +| `BsbCode` | bsb_code | +| `IfscCode` | ifsc_code | +| `MicrCode` | micr_code | +| `Clabe` | clabe | +| `CnapsCode` | cnaps_code | +| `ChBankClearingCode` | ch_bank_clearing_code | +| `ChSicCode` | ch_sic_code | +| `ZenginCode` | zengin_code | +| `NzClearingCode` | nz_clearing_code | +| `HkBankCode` | hk_bank_code | +| `Blz` | blz | +| `AtBankleitzahl` | at_bankleitzahl | +| `Nuban` | nuban | +| `SeBankgiroCode` | se_bankgiro_code | +| `UnmappedValue` | unmapped_value | \ No newline at end of file diff --git a/docs/Models/Components/Completion.md b/docs/Models/Components/Completion.md index 690cf633..781ee3d5 100644 --- a/docs/Models/Components/Completion.md +++ b/docs/Models/Components/Completion.md @@ -8,6 +8,7 @@ | `Id` | *string* | :heavy_minus_sign: | The ID associated with this completion | 123456 | | `RemoteId` | *string* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `UnifiedCustomFields` | Dictionary | :heavy_minus_sign: | Custom Unified Fields configured in your StackOne project | {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
} | +| `LearningObjectExternalReference` | *string* | :heavy_minus_sign: | The external reference of the learning object associated with this completion, this is the main identifier for creating completions. | learning-content-123 | | ~~`ExternalReference`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The external reference associated with this completion | e3gd34-23tr21-er234-345er56 | | `Result` | [CompletionResult1](../../Models/Components/CompletionResult1.md) | :heavy_minus_sign: | The result of the completion | | | `CompletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date the content was completed | 2021-07-21T14:00:00.000Z | @@ -16,7 +17,6 @@ | `LearningObjectType` | [CompletionLearningObjectType](../../Models/Components/CompletionLearningObjectType.md) | :heavy_minus_sign: | The learning object type of the completion | | | `LearningObjectId` | *string* | :heavy_minus_sign: | The id of the learning object associated with this completion. This is not required unless specified in an integration. | e3gd34-23tr21-er234-345er56 | | `RemoteLearningObjectId` | *string* | :heavy_minus_sign: | Provider's unique identifier of the learning object related to the completion | e3cb55bf-aa84-466e-a6c1-b8302b257a49 | -| `LearningObjectExternalReference` | *string* | :heavy_minus_sign: | The external reference of the learning object associated with this completion, this is the main identifier for creating completions. | learning-content-123 | | `UserId` | *string* | :heavy_minus_sign: | The user ID associated with this completion | c28xyrc55866bvuv | | `RemoteUserId` | *string* | :heavy_minus_sign: | Provider's unique identifier of the user related to the completion | e3cb75bf-aa84-466e-a6c1-b8322b257a48 | | `TimeSpent` | *string* | :heavy_minus_sign: | ISO 8601 duration format representing the time spent on completing the learning object | PT1H30M45S | diff --git a/docs/Models/Components/AccountType.md b/docs/Models/Components/CountryCode.md similarity index 72% rename from docs/Models/Components/AccountType.md rename to docs/Models/Components/CountryCode.md index 3eb88302..f03a5200 100644 --- a/docs/Models/Components/AccountType.md +++ b/docs/Models/Components/CountryCode.md @@ -1,11 +1,11 @@ -# AccountType +# CountryCode -Type of the account +The country code where the bank is located ## Fields | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `Value` | [AccountTypeValue](../../Models/Components/AccountTypeValue.md) | :heavy_minus_sign: | Type of account | asset | -| `SourceValue` | [AccountTypeSourceValueUnion](../../Models/Components/AccountTypeSourceValueUnion.md) | :heavy_minus_sign: | N/A | asset | \ No newline at end of file +| `Value` | [CountryCodeValue](../../Models/Components/CountryCodeValue.md) | :heavy_minus_sign: | The ISO3166-1 Alpha2 Code of the Country | US | +| `SourceValue` | [CountryCodeSourceValueUnion](../../Models/Components/CountryCodeSourceValueUnion.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Components/CountryCodeSourceValueUnion.md b/docs/Models/Components/CountryCodeSourceValueUnion.md new file mode 100644 index 00000000..c1d10669 --- /dev/null +++ b/docs/Models/Components/CountryCodeSourceValueUnion.md @@ -0,0 +1,34 @@ +# CountryCodeSourceValueUnion + + +## Supported Types + +### Str + +```csharp +CountryCodeSourceValueUnion.CreateStr(/* values here */); +``` + +### Number + +```csharp +CountryCodeSourceValueUnion.CreateNumber(/* values here */); +``` + +### Boolean + +```csharp +CountryCodeSourceValueUnion.CreateBoolean(/* values here */); +``` + +### SourceValueCountryCode + +```csharp +CountryCodeSourceValueUnion.CreateSourceValueCountryCode(/* values here */); +``` + +### ArrayOfAny + +```csharp +CountryCodeSourceValueUnion.CreateArrayOfAny(/* values here */); +``` diff --git a/docs/Models/Components/CountryCodeValue.md b/docs/Models/Components/CountryCodeValue.md new file mode 100644 index 00000000..02411211 --- /dev/null +++ b/docs/Models/Components/CountryCodeValue.md @@ -0,0 +1,258 @@ +# CountryCodeValue + +The ISO3166-1 Alpha2 Code of the Country + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `Af` | AF | +| `Al` | AL | +| `Dz` | DZ | +| `As` | AS | +| `Ad` | AD | +| `Ao` | AO | +| `Ai` | AI | +| `Aq` | AQ | +| `Ag` | AG | +| `Ar` | AR | +| `Am` | AM | +| `Aw` | AW | +| `Au` | AU | +| `At` | AT | +| `Az` | AZ | +| `Bs` | BS | +| `Bh` | BH | +| `Bd` | BD | +| `Bb` | BB | +| `By` | BY | +| `Be` | BE | +| `Bz` | BZ | +| `Bj` | BJ | +| `Bm` | BM | +| `Bt` | BT | +| `Bo` | BO | +| `Bq` | BQ | +| `Ba` | BA | +| `Bw` | BW | +| `Bv` | BV | +| `Br` | BR | +| `Io` | IO | +| `Bn` | BN | +| `Bg` | BG | +| `Bf` | BF | +| `Bi` | BI | +| `Kh` | KH | +| `Cm` | CM | +| `Ca` | CA | +| `Cv` | CV | +| `Ky` | KY | +| `Cf` | CF | +| `Td` | TD | +| `Cl` | CL | +| `Cn` | CN | +| `Cx` | CX | +| `Cc` | CC | +| `Co` | CO | +| `Km` | KM | +| `Cg` | CG | +| `Cd` | CD | +| `Ck` | CK | +| `Cr` | CR | +| `Hr` | HR | +| `Cu` | CU | +| `Cw` | CW | +| `Cy` | CY | +| `Cz` | CZ | +| `Ci` | CI | +| `Dk` | DK | +| `Dj` | DJ | +| `Dm` | DM | +| `Do` | DO | +| `Ec` | EC | +| `Eg` | EG | +| `Sv` | SV | +| `Gq` | GQ | +| `Er` | ER | +| `Ee` | EE | +| `Et` | ET | +| `Fk` | FK | +| `Fo` | FO | +| `Fj` | FJ | +| `Fi` | FI | +| `Fr` | FR | +| `Gf` | GF | +| `Pf` | PF | +| `Tf` | TF | +| `Ga` | GA | +| `Gm` | GM | +| `Ge` | GE | +| `De` | DE | +| `Gh` | GH | +| `Gi` | GI | +| `Gr` | GR | +| `Gl` | GL | +| `Gd` | GD | +| `Gp` | GP | +| `Gu` | GU | +| `Gt` | GT | +| `Gg` | GG | +| `Gn` | GN | +| `Gw` | GW | +| `Gy` | GY | +| `Ht` | HT | +| `Hm` | HM | +| `Va` | VA | +| `Hn` | HN | +| `Hk` | HK | +| `Hu` | HU | +| `Is` | IS | +| `In` | IN | +| `Id` | ID | +| `Ir` | IR | +| `Iq` | IQ | +| `Ie` | IE | +| `Im` | IM | +| `Il` | IL | +| `It` | IT | +| `Jm` | JM | +| `Jp` | JP | +| `Je` | JE | +| `Jo` | JO | +| `Kz` | KZ | +| `Ke` | KE | +| `Ki` | KI | +| `Kp` | KP | +| `Kr` | KR | +| `Kw` | KW | +| `Kg` | KG | +| `La` | LA | +| `Lv` | LV | +| `Lb` | LB | +| `Ls` | LS | +| `Lr` | LR | +| `Ly` | LY | +| `Li` | LI | +| `Lt` | LT | +| `Lu` | LU | +| `Mo` | MO | +| `Mk` | MK | +| `Mg` | MG | +| `Mw` | MW | +| `My` | MY | +| `Mv` | MV | +| `Ml` | ML | +| `Mt` | MT | +| `Mh` | MH | +| `Mq` | MQ | +| `Mr` | MR | +| `Mu` | MU | +| `Yt` | YT | +| `Mx` | MX | +| `Fm` | FM | +| `Md` | MD | +| `Mc` | MC | +| `Mn` | MN | +| `Me` | ME | +| `Ms` | MS | +| `Ma` | MA | +| `Mz` | MZ | +| `Mm` | MM | +| `Na` | NA | +| `Nr` | NR | +| `Np` | NP | +| `Nl` | NL | +| `Nc` | NC | +| `Nz` | NZ | +| `Ni` | NI | +| `Ne` | NE | +| `Ng` | NG | +| `Nu` | NU | +| `Nf` | NF | +| `Mp` | MP | +| `No` | NO | +| `Om` | OM | +| `Pk` | PK | +| `Pw` | PW | +| `Ps` | PS | +| `Pa` | PA | +| `Pg` | PG | +| `Py` | PY | +| `Pe` | PE | +| `Ph` | PH | +| `Pn` | PN | +| `Pl` | PL | +| `Pt` | PT | +| `Pr` | PR | +| `Qa` | QA | +| `Ro` | RO | +| `Ru` | RU | +| `Rw` | RW | +| `Re` | RE | +| `Bl` | BL | +| `Sh` | SH | +| `Kn` | KN | +| `Lc` | LC | +| `Mf` | MF | +| `Pm` | PM | +| `Vc` | VC | +| `Ws` | WS | +| `Sm` | SM | +| `St` | ST | +| `Sa` | SA | +| `Sn` | SN | +| `Rs` | RS | +| `Sc` | SC | +| `Sl` | SL | +| `Sg` | SG | +| `Sx` | SX | +| `Sk` | SK | +| `Si` | SI | +| `Sb` | SB | +| `So` | SO | +| `Za` | ZA | +| `Gs` | GS | +| `Ss` | SS | +| `Es` | ES | +| `Lk` | LK | +| `Sd` | SD | +| `Sr` | SR | +| `Sj` | SJ | +| `Sz` | SZ | +| `Se` | SE | +| `Ch` | CH | +| `Sy` | SY | +| `Tw` | TW | +| `Tj` | TJ | +| `Tz` | TZ | +| `Th` | TH | +| `Tl` | TL | +| `Tg` | TG | +| `Tk` | TK | +| `To` | TO | +| `Tt` | TT | +| `Tn` | TN | +| `Tr` | TR | +| `Tm` | TM | +| `Tc` | TC | +| `Tv` | TV | +| `Ug` | UG | +| `Ua` | UA | +| `Ae` | AE | +| `Gb` | GB | +| `Us` | US | +| `Um` | UM | +| `Uy` | UY | +| `Uz` | UZ | +| `Vu` | VU | +| `Ve` | VE | +| `Vn` | VN | +| `Vg` | VG | +| `Vi` | VI | +| `Wf` | WF | +| `Eh` | EH | +| `Ye` | YE | +| `Zm` | ZM | +| `Zw` | ZW | +| `UnmappedValue` | unmapped_value | \ No newline at end of file diff --git a/docs/Models/Components/Employee.md b/docs/Models/Components/Employee.md index 28090422..72fa98df 100644 --- a/docs/Models/Components/Employee.md +++ b/docs/Models/Components/Employee.md @@ -52,6 +52,7 @@ | `CustomFields` | List<[CustomFields](../../Models/Components/CustomFields.md)> | :heavy_minus_sign: | The employee custom fields | | | `Benefits` | List<[HRISBenefit](../../Models/Components/HRISBenefit.md)> | :heavy_minus_sign: | Current benefits of the employee | | | `EmployeeNumber` | *string* | :heavy_minus_sign: | The assigned employee number | 125 | +| `BankDetails` | List<[HRISBankDetails](../../Models/Components/HRISBankDetails.md)> | :heavy_minus_sign: | Bank account details for the employee | | | ~~`NationalIdentityNumber`~~ | [EmployeeNationalIdentityNumber](../../Models/Components/EmployeeNationalIdentityNumber.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The national identity number | | | `NationalIdentityNumbers` | List<[NationalIdentityNumberApiModel](../../Models/Components/NationalIdentityNumberApiModel.md)> | :heavy_minus_sign: | The national identity numbers | | | `Skills` | List<[EntitySkills](../../Models/Components/EntitySkills.md)> | :heavy_minus_sign: | The employee skills | | diff --git a/docs/Models/Components/HRISBankDetails.md b/docs/Models/Components/HRISBankDetails.md new file mode 100644 index 00000000..bb9e0119 --- /dev/null +++ b/docs/Models/Components/HRISBankDetails.md @@ -0,0 +1,19 @@ +# HRISBankDetails + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `Id` | *string* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `RemoteId` | *string* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `AccountName` | *string* | :heavy_minus_sign: | The name of the bank account | John Doe Primary Account | +| `IsPrimary` | *bool* | :heavy_minus_sign: | Whether this is the primary bank account | true | +| `CountryCode` | [CountryCode](../../Models/Components/CountryCode.md) | :heavy_minus_sign: | The country code where the bank is located | | +| `CurrencyCode` | [HRISBankDetailsCurrencyCode](../../Models/Components/HRISBankDetailsCurrencyCode.md) | :heavy_minus_sign: | The currency code for the account | | +| `BankName` | *string* | :heavy_minus_sign: | The name of the bank | Chase Bank | +| `AccountType` | [HRISBankDetailsAccountType](../../Models/Components/HRISBankDetailsAccountType.md) | :heavy_minus_sign: | The type of bank account | | +| `Iban` | *string* | :heavy_minus_sign: | International Bank Account Number (IBAN) | GB82WEST12345698765432 | +| `LocalAccountNumber` | *string* | :heavy_minus_sign: | Local account number (used when IBAN is not available) | 1234567890 | +| `SwiftBic` | *string* | :heavy_minus_sign: | SWIFT/BIC code for international transfers | CHASUS33 | +| `ClearingCodes` | List<[ClearingCode](../../Models/Components/ClearingCode.md)> | :heavy_minus_sign: | Array of clearing codes required by the country | | \ No newline at end of file diff --git a/docs/Models/Components/HRISBankDetailsAccountType.md b/docs/Models/Components/HRISBankDetailsAccountType.md new file mode 100644 index 00000000..8b33e302 --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsAccountType.md @@ -0,0 +1,11 @@ +# HRISBankDetailsAccountType + +The type of bank account + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `Value` | [HRISBankDetailsAccountTypeValue](../../Models/Components/HRISBankDetailsAccountTypeValue.md) | :heavy_minus_sign: | The type of bank account | checking | +| `SourceValue` | [HRISBankDetailsAccountTypeSourceValueUnion](../../Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.md) | :heavy_minus_sign: | N/A | checking | \ No newline at end of file diff --git a/docs/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.md b/docs/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.md new file mode 100644 index 00000000..bb554302 --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.md @@ -0,0 +1,34 @@ +# HRISBankDetailsAccountTypeSourceValueUnion + + +## Supported Types + +### Str + +```csharp +HRISBankDetailsAccountTypeSourceValueUnion.CreateStr(/* values here */); +``` + +### Number + +```csharp +HRISBankDetailsAccountTypeSourceValueUnion.CreateNumber(/* values here */); +``` + +### Boolean + +```csharp +HRISBankDetailsAccountTypeSourceValueUnion.CreateBoolean(/* values here */); +``` + +### HRISBankDetailsSourceValueAccountType + +```csharp +HRISBankDetailsAccountTypeSourceValueUnion.CreateHRISBankDetailsSourceValueAccountType(/* values here */); +``` + +### ArrayOfAny + +```csharp +HRISBankDetailsAccountTypeSourceValueUnion.CreateArrayOfAny(/* values here */); +``` diff --git a/docs/Models/Components/HRISBankDetailsAccountTypeValue.md b/docs/Models/Components/HRISBankDetailsAccountTypeValue.md new file mode 100644 index 00000000..0eca513f --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsAccountTypeValue.md @@ -0,0 +1,16 @@ +# HRISBankDetailsAccountTypeValue + +The type of bank account + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `Savings` | savings | +| `Checking` | checking | +| `Current` | current | +| `Business` | business | +| `Personal` | personal | +| `Other` | other | +| `UnmappedValue` | unmapped_value | \ No newline at end of file diff --git a/docs/Models/Components/HRISBankDetailsCurrencyCode.md b/docs/Models/Components/HRISBankDetailsCurrencyCode.md new file mode 100644 index 00000000..cfac7ae8 --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsCurrencyCode.md @@ -0,0 +1,11 @@ +# HRISBankDetailsCurrencyCode + +The currency code for the account + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `Value` | [HRISBankDetailsCurrencyCodeValue](../../Models/Components/HRISBankDetailsCurrencyCodeValue.md) | :heavy_minus_sign: | ISO 4217 currency code | USD | +| `SourceValue` | [HRISBankDetailsCurrencyCodeSourceValueUnion](../../Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.md) | :heavy_minus_sign: | N/A | USD | \ No newline at end of file diff --git a/docs/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.md b/docs/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.md new file mode 100644 index 00000000..eebf1cc5 --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.md @@ -0,0 +1,34 @@ +# HRISBankDetailsCurrencyCodeSourceValueUnion + + +## Supported Types + +### Str + +```csharp +HRISBankDetailsCurrencyCodeSourceValueUnion.CreateStr(/* values here */); +``` + +### Number + +```csharp +HRISBankDetailsCurrencyCodeSourceValueUnion.CreateNumber(/* values here */); +``` + +### Boolean + +```csharp +HRISBankDetailsCurrencyCodeSourceValueUnion.CreateBoolean(/* values here */); +``` + +### HRISBankDetailsSourceValueCurrencyCode + +```csharp +HRISBankDetailsCurrencyCodeSourceValueUnion.CreateHRISBankDetailsSourceValueCurrencyCode(/* values here */); +``` + +### ArrayOfAny + +```csharp +HRISBankDetailsCurrencyCodeSourceValueUnion.CreateArrayOfAny(/* values here */); +``` diff --git a/docs/Models/Components/HRISBankDetailsCurrencyCodeValue.md b/docs/Models/Components/HRISBankDetailsCurrencyCodeValue.md new file mode 100644 index 00000000..2c96941e --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsCurrencyCodeValue.md @@ -0,0 +1,167 @@ +# HRISBankDetailsCurrencyCodeValue + +ISO 4217 currency code + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `Aed` | AED | +| `Afn` | AFN | +| `All` | ALL | +| `Amd` | AMD | +| `Ang` | ANG | +| `Aoa` | AOA | +| `Ars` | ARS | +| `Aud` | AUD | +| `Awg` | AWG | +| `Azn` | AZN | +| `Bam` | BAM | +| `Bbd` | BBD | +| `Bdt` | BDT | +| `Bgn` | BGN | +| `Bhd` | BHD | +| `Bif` | BIF | +| `Bmd` | BMD | +| `Bnd` | BND | +| `Bob` | BOB | +| `Brl` | BRL | +| `Bsd` | BSD | +| `Btn` | BTN | +| `Bwp` | BWP | +| `Byn` | BYN | +| `Bzd` | BZD | +| `Cad` | CAD | +| `Cdf` | CDF | +| `Chf` | CHF | +| `Clp` | CLP | +| `Cny` | CNY | +| `Cop` | COP | +| `Crc` | CRC | +| `Cuc` | CUC | +| `Cup` | CUP | +| `Cve` | CVE | +| `Czk` | CZK | +| `Djf` | DJF | +| `Dkk` | DKK | +| `Dop` | DOP | +| `Dzd` | DZD | +| `Egp` | EGP | +| `Ern` | ERN | +| `Etb` | ETB | +| `Eur` | EUR | +| `Fjd` | FJD | +| `Fkp` | FKP | +| `Gbp` | GBP | +| `Gel` | GEL | +| `Ghs` | GHS | +| `Gip` | GIP | +| `Gmd` | GMD | +| `Gnf` | GNF | +| `Gtq` | GTQ | +| `Gyd` | GYD | +| `Hkd` | HKD | +| `Hnl` | HNL | +| `Hrk` | HRK | +| `Htg` | HTG | +| `Huf` | HUF | +| `Idr` | IDR | +| `Ils` | ILS | +| `Inr` | INR | +| `Iqd` | IQD | +| `Irr` | IRR | +| `Isk` | ISK | +| `Jmd` | JMD | +| `Jod` | JOD | +| `Jpy` | JPY | +| `Kes` | KES | +| `Kgs` | KGS | +| `Khr` | KHR | +| `Kmf` | KMF | +| `Kpw` | KPW | +| `Krw` | KRW | +| `Kwd` | KWD | +| `Kyd` | KYD | +| `Kzt` | KZT | +| `Lak` | LAK | +| `Lbp` | LBP | +| `Lkr` | LKR | +| `Lrd` | LRD | +| `Lsl` | LSL | +| `Lyd` | LYD | +| `Mad` | MAD | +| `Mdl` | MDL | +| `Mga` | MGA | +| `Mkd` | MKD | +| `Mmk` | MMK | +| `Mnt` | MNT | +| `Mop` | MOP | +| `Mru` | MRU | +| `Mur` | MUR | +| `Mvr` | MVR | +| `Mwk` | MWK | +| `Mxn` | MXN | +| `Myr` | MYR | +| `Mzn` | MZN | +| `Nad` | NAD | +| `Ngn` | NGN | +| `Nio` | NIO | +| `Nok` | NOK | +| `Npr` | NPR | +| `Nzd` | NZD | +| `Omr` | OMR | +| `Pab` | PAB | +| `Pen` | PEN | +| `Pgk` | PGK | +| `Php` | PHP | +| `Pkr` | PKR | +| `Pln` | PLN | +| `Pyg` | PYG | +| `Qar` | QAR | +| `Ron` | RON | +| `Rsd` | RSD | +| `Rub` | RUB | +| `Rwf` | RWF | +| `Sar` | SAR | +| `Sbd` | SBD | +| `Scr` | SCR | +| `Sdg` | SDG | +| `Sek` | SEK | +| `Sgd` | SGD | +| `Shp` | SHP | +| `Sll` | SLL | +| `Sos` | SOS | +| `Srd` | SRD | +| `Ssp` | SSP | +| `Stn` | STN | +| `Syp` | SYP | +| `Szl` | SZL | +| `Thb` | THB | +| `Tjs` | TJS | +| `Tmt` | TMT | +| `Tnd` | TND | +| `Top` | TOP | +| `Try` | TRY | +| `Ttd` | TTD | +| `Twd` | TWD | +| `Tzs` | TZS | +| `Uah` | UAH | +| `Ugx` | UGX | +| `Usd` | USD | +| `Uyu` | UYU | +| `Uzs` | UZS | +| `Ves` | VES | +| `Vnd` | VND | +| `Vuv` | VUV | +| `Wst` | WST | +| `Xaf` | XAF | +| `Xcd` | XCD | +| `Xdr` | XDR | +| `Xof` | XOF | +| `Xpf` | XPF | +| `Yer` | YER | +| `Zar` | ZAR | +| `Zmw` | ZMW | +| `Zwl` | ZWL | +| `UnmappedValue` | unmapped_value | \ No newline at end of file diff --git a/docs/Models/Components/HRISBankDetailsSourceValueAccountType.md b/docs/Models/Components/HRISBankDetailsSourceValueAccountType.md new file mode 100644 index 00000000..77f7e2aa --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsSourceValueAccountType.md @@ -0,0 +1,7 @@ +# HRISBankDetailsSourceValueAccountType + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Components/HRISBankDetailsSourceValueCurrencyCode.md b/docs/Models/Components/HRISBankDetailsSourceValueCurrencyCode.md new file mode 100644 index 00000000..6156f259 --- /dev/null +++ b/docs/Models/Components/HRISBankDetailsSourceValueCurrencyCode.md @@ -0,0 +1,7 @@ +# HRISBankDetailsSourceValueCurrencyCode + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Components/JournalLine.md b/docs/Models/Components/JournalLine.md index ecdcba20..b8da1613 100644 --- a/docs/Models/Components/JournalLine.md +++ b/docs/Models/Components/JournalLine.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | `Id` | *string* | :heavy_minus_sign: | Unique identifier for the journal line | line_123456789 | | `AccountId` | *string* | :heavy_minus_sign: | ID of the ledger account this line references | acc_123456789 | -| `AccountType` | [AccountType](../../Models/Components/AccountType.md) | :heavy_minus_sign: | Type of the account | | +| `AccountType` | [JournalLineAccountType](../../Models/Components/JournalLineAccountType.md) | :heavy_minus_sign: | Type of the account | | | `Description` | *string* | :heavy_minus_sign: | Description of the journal line | Payment for office supplies | | `CurrencyCode` | [JournalLineCurrencyCode](../../Models/Components/JournalLineCurrencyCode.md) | :heavy_minus_sign: | Currency code for this line | | | `ExchangeRate` | *double* | :heavy_minus_sign: | Exchange rate to company base currency | 1 | diff --git a/docs/Models/Components/JournalLineAccountType.md b/docs/Models/Components/JournalLineAccountType.md new file mode 100644 index 00000000..7790f010 --- /dev/null +++ b/docs/Models/Components/JournalLineAccountType.md @@ -0,0 +1,11 @@ +# JournalLineAccountType + +Type of the account + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `Value` | [JournalLineAccountTypeValue](../../Models/Components/JournalLineAccountTypeValue.md) | :heavy_minus_sign: | Type of account | asset | +| `SourceValue` | [JournalLineAccountTypeSourceValueUnion](../../Models/Components/JournalLineAccountTypeSourceValueUnion.md) | :heavy_minus_sign: | N/A | asset | \ No newline at end of file diff --git a/docs/Models/Components/JournalLineAccountTypeSourceValueUnion.md b/docs/Models/Components/JournalLineAccountTypeSourceValueUnion.md new file mode 100644 index 00000000..1262f848 --- /dev/null +++ b/docs/Models/Components/JournalLineAccountTypeSourceValueUnion.md @@ -0,0 +1,34 @@ +# JournalLineAccountTypeSourceValueUnion + + +## Supported Types + +### Str + +```csharp +JournalLineAccountTypeSourceValueUnion.CreateStr(/* values here */); +``` + +### Number + +```csharp +JournalLineAccountTypeSourceValueUnion.CreateNumber(/* values here */); +``` + +### Boolean + +```csharp +JournalLineAccountTypeSourceValueUnion.CreateBoolean(/* values here */); +``` + +### JournalLineSourceValueAccountType + +```csharp +JournalLineAccountTypeSourceValueUnion.CreateJournalLineSourceValueAccountType(/* values here */); +``` + +### ArrayOfAny + +```csharp +JournalLineAccountTypeSourceValueUnion.CreateArrayOfAny(/* values here */); +``` diff --git a/docs/Models/Components/AccountTypeValue.md b/docs/Models/Components/JournalLineAccountTypeValue.md similarity index 91% rename from docs/Models/Components/AccountTypeValue.md rename to docs/Models/Components/JournalLineAccountTypeValue.md index 2e5a4403..0768acdd 100644 --- a/docs/Models/Components/AccountTypeValue.md +++ b/docs/Models/Components/JournalLineAccountTypeValue.md @@ -1,4 +1,4 @@ -# AccountTypeValue +# JournalLineAccountTypeValue Type of account diff --git a/docs/Models/Components/JournalLineSourceValueAccountType.md b/docs/Models/Components/JournalLineSourceValueAccountType.md new file mode 100644 index 00000000..ca2b988f --- /dev/null +++ b/docs/Models/Components/JournalLineSourceValueAccountType.md @@ -0,0 +1,7 @@ +# JournalLineSourceValueAccountType + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Components/LmsCreateAssignmentRequestDto.md b/docs/Models/Components/LmsCreateAssignmentRequestDto.md index d3ae50e2..70efbab5 100644 --- a/docs/Models/Components/LmsCreateAssignmentRequestDto.md +++ b/docs/Models/Components/LmsCreateAssignmentRequestDto.md @@ -8,8 +8,8 @@ | `Passthrough` | Dictionary | :heavy_minus_sign: | Value to pass through to the provider | {
"other_known_names": "John Doe"
} | | ~~`ExternalReference`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The external reference associated with this assignment | e3gd34-23tr21-er234-345er56 | | `LearningObjectId` | *string* | :heavy_minus_sign: | The learning_object_id associated with this assignment. This is not required unless specified in an integration. | e3gd34-23tr21-er234-345er56 | -| `LearningObjectExternalReference` | *string* | :heavy_minus_sign: | The external reference of the learning object associated with this assignment, this is the main identifier for creating assignments. | learning-content-123 | | `Progress` | *double* | :heavy_minus_sign: | The progress associated with this assigment | 40 | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date the assignment was created | 2021-07-21T14:00:00.000Z | | `DueDate` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date the assignment is due to be completed | 2021-07-21T14:00:00.000Z | -| `Status` | [LmsCreateAssignmentRequestDtoStatus](../../Models/Components/LmsCreateAssignmentRequestDtoStatus.md) | :heavy_minus_sign: | The status of the assignment | | \ No newline at end of file +| `Status` | [LmsCreateAssignmentRequestDtoStatus](../../Models/Components/LmsCreateAssignmentRequestDtoStatus.md) | :heavy_minus_sign: | The status of the assignment | | +| `LearningObjectExternalReference` | *string* | :heavy_check_mark: | The external reference of the learning object associated with this assignment, this is the main identifier for creating assignments. | learning-content-123 | \ No newline at end of file diff --git a/docs/Models/Components/LmsCreateCompletionRequestDto.md b/docs/Models/Components/LmsCreateCompletionRequestDto.md index e79dc341..a85d3843 100644 --- a/docs/Models/Components/LmsCreateCompletionRequestDto.md +++ b/docs/Models/Components/LmsCreateCompletionRequestDto.md @@ -9,7 +9,7 @@ | `Result` | [LmsCreateCompletionRequestDtoResult](../../Models/Components/LmsCreateCompletionRequestDtoResult.md) | :heavy_minus_sign: | The result of the completion | | | `CompletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date the content was completed | 2021-07-21T14:00:00.000Z | | `LearningObjectId` | *string* | :heavy_minus_sign: | The id of the learning object associated with this completion. This is not required unless specified in an integration. | e3gd34-23tr21-er234-345er56 | -| `LearningObjectExternalReference` | *string* | :heavy_minus_sign: | The external reference of the learning object associated with this completion, this is the main identifier for creating completions. | learning-content-123 | | `TimeSpent` | *string* | :heavy_minus_sign: | ISO 8601 duration format representing the time spent on completing the learning object | PT1H30M45S | | ~~`ContentExternalReference`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The external reference associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT | -| ~~`ContentId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The content ID associated with this completion | 16873-ENG-VIDEO-1 | \ No newline at end of file +| ~~`ContentId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The content ID associated with this completion | 16873-ENG-VIDEO-1 | +| `LearningObjectExternalReference` | *string* | :heavy_check_mark: | The external reference of the learning object associated with this completion, this is the main identifier for creating completions. | learning-content-123 | \ No newline at end of file diff --git a/docs/Models/Components/LmsCreateContentRequestDto.md b/docs/Models/Components/LmsCreateContentRequestDto.md index b4bb74b6..1c447051 100644 --- a/docs/Models/Components/LmsCreateContentRequestDto.md +++ b/docs/Models/Components/LmsCreateContentRequestDto.md @@ -6,7 +6,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `UnifiedCustomFields` | Dictionary | :heavy_minus_sign: | Custom Unified Fields configured in your StackOne project | {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
} | -| `ExternalReference` | *string* | :heavy_minus_sign: | The external ID associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1 | | `Title` | *string* | :heavy_minus_sign: | The title of the content | Software Engineer Lv 1 | | `Description` | *string* | :heavy_minus_sign: | The description of the content | This video acts as learning content for software engineers. | | `Languages` | List<[LanguageEnum](../../Models/Components/LanguageEnum.md)> | :heavy_minus_sign: | The languages associated with this content | | @@ -24,5 +23,6 @@ | `Authors` | List<[AuthorModel](../../Models/Components/AuthorModel.md)> | :heavy_minus_sign: | The authors of the content | [
{
"id": "123",
"name": "John Doe"
}
] | | `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date on which the content was last updated. | 2021-07-21T14:00:00.000Z | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date on which the content was created. | 2021-07-21T14:00:00.000Z | +| `ExternalReference` | *string* | :heavy_check_mark: | The external ID associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1 | | `Categories` | List<[CreateCategoriesApiModel](../../Models/Components/CreateCategoriesApiModel.md)> | :heavy_minus_sign: | The categories associated with this content | [
{
"name": "Technology"
}
] | | `AdditionalData` | List<[AdditionalData](../../Models/Components/AdditionalData.md)> | :heavy_minus_sign: | The additional_data associated with this content | | \ No newline at end of file diff --git a/docs/Models/Components/LmsCreateContentRequestDtoContentType.md b/docs/Models/Components/LmsCreateContentRequestDtoContentType.md index ad3bd38c..a6227840 100644 --- a/docs/Models/Components/LmsCreateContentRequestDtoContentType.md +++ b/docs/Models/Components/LmsCreateContentRequestDtoContentType.md @@ -5,7 +5,7 @@ The type of content ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `Value` | [LmsCreateContentRequestDtoValue](../../Models/Components/LmsCreateContentRequestDtoValue.md) | :heavy_minus_sign: | The StackOne unified content type. | -| `SourceValue` | [LmsCreateContentRequestDtoSourceValueUnion](../../Models/Components/LmsCreateContentRequestDtoSourceValueUnion.md) | :heavy_minus_sign: | The original value from the provider before normalization. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Value` | [LmsCreateContentRequestDtoValue](../../Models/Components/LmsCreateContentRequestDtoValue.md) | :heavy_minus_sign: | The content type for write operations. Provide one of the listed enum values. If omitted or set to "unmapped_value", the source_value will be sent to the provider instead. | +| `SourceValue` | [LmsCreateContentRequestDtoSourceValueUnion](../../Models/Components/LmsCreateContentRequestDtoSourceValueUnion.md) | :heavy_minus_sign: | The provider-specific value to use when value is omitted or set to "unmapped_value". You are responsible for ensuring this matches the provider's expected format. | \ No newline at end of file diff --git a/docs/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.md b/docs/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.md index 962635b5..cce26902 100644 --- a/docs/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.md +++ b/docs/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.md @@ -1,6 +1,6 @@ # LmsCreateContentRequestDtoSourceValueUnion -The original value from the provider before normalization. +The provider-specific value to use when value is omitted or set to "unmapped_value". You are responsible for ensuring this matches the provider's expected format. ## Supported Types diff --git a/docs/Models/Components/LmsCreateContentRequestDtoValue.md b/docs/Models/Components/LmsCreateContentRequestDtoValue.md index efff5e18..3f32f947 100644 --- a/docs/Models/Components/LmsCreateContentRequestDtoValue.md +++ b/docs/Models/Components/LmsCreateContentRequestDtoValue.md @@ -1,6 +1,6 @@ # LmsCreateContentRequestDtoValue -The StackOne unified content type. +The content type for write operations. Provide one of the listed enum values. If omitted or set to "unmapped_value", the source_value will be sent to the provider instead. ## Values @@ -12,4 +12,9 @@ The StackOne unified content type. | `Document` | document | | `Audio` | audio | | `Article` | article | +| `Book` | book | +| `Event` | event | +| `Course` | course | +| `Collection` | collection | +| `Interactive` | interactive | | `UnmappedValue` | unmapped_value | \ No newline at end of file diff --git a/docs/Models/Components/LmsUpsertContentRequestDto.md b/docs/Models/Components/LmsUpsertContentRequestDto.md index ce0f2627..a481f4c5 100644 --- a/docs/Models/Components/LmsUpsertContentRequestDto.md +++ b/docs/Models/Components/LmsUpsertContentRequestDto.md @@ -6,7 +6,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `UnifiedCustomFields` | Dictionary | :heavy_minus_sign: | Custom Unified Fields configured in your StackOne project | {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
} | -| `ExternalReference` | *string* | :heavy_minus_sign: | The external ID associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1 | | `Title` | *string* | :heavy_minus_sign: | The title of the content | Software Engineer Lv 1 | | `Description` | *string* | :heavy_minus_sign: | The description of the content | This video acts as learning content for software engineers. | | `Languages` | List<[LanguageEnum](../../Models/Components/LanguageEnum.md)> | :heavy_minus_sign: | The languages associated with this content | | @@ -23,6 +22,7 @@ | `Authors` | List<[AuthorModel](../../Models/Components/AuthorModel.md)> | :heavy_minus_sign: | The authors of the content | [
{
"id": "123",
"name": "John Doe"
}
] | | `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date on which the content was last updated. | 2021-07-21T14:00:00.000Z | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | The date on which the content was created. | 2021-07-21T14:00:00.000Z | +| `ExternalReference` | *string* | :heavy_check_mark: | The external ID associated with this content | SOFTWARE-ENG-LV1-TRAINING-VIDEO-1 | | `Categories` | List<[CreateCategoriesApiModel](../../Models/Components/CreateCategoriesApiModel.md)> | :heavy_minus_sign: | The categories associated with this content | | | `AdditionalData` | List<[AdditionalData](../../Models/Components/AdditionalData.md)> | :heavy_minus_sign: | The additional_data associated with this content | | | `ContentType` | [LmsUpsertContentRequestDtoContentType](../../Models/Components/LmsUpsertContentRequestDtoContentType.md) | :heavy_minus_sign: | The type of content | | \ No newline at end of file diff --git a/docs/Models/Components/SourceValueAccountType.md b/docs/Models/Components/SourceValueCountryCode.md similarity index 83% rename from docs/Models/Components/SourceValueAccountType.md rename to docs/Models/Components/SourceValueCountryCode.md index 72b84a00..ee80d3c3 100644 --- a/docs/Models/Components/SourceValueAccountType.md +++ b/docs/Models/Components/SourceValueCountryCode.md @@ -1,4 +1,4 @@ -# SourceValueAccountType +# SourceValueCountryCode ## Fields diff --git a/docs/Models/Components/Tag.md b/docs/Models/Components/Tag.md new file mode 100644 index 00000000..89deac2a --- /dev/null +++ b/docs/Models/Components/Tag.md @@ -0,0 +1,9 @@ +# Tag + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `RemoteId` | *string* | :heavy_minus_sign: | Remote ID of the tag | 123e4567-e89b-12d3-a456-426614174000 | +| `Name` | *string* | :heavy_minus_sign: | Name of the tag | Gold Medalist | \ No newline at end of file diff --git a/docs/Models/Requests/AtsGetCandidateRequest.md b/docs/Models/Requests/AtsGetCandidateRequest.md index af663e32..98e1617c 100644 --- a/docs/Models/Requests/AtsGetCandidateRequest.md +++ b/docs/Models/Requests/AtsGetCandidateRequest.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | -| `Id` | *string* | :heavy_check_mark: | N/A | | -| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields | -| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | custom_fields | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | +| `Id` | *string* | :heavy_check_mark: | N/A | | +| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields | +| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | custom_fields | \ No newline at end of file diff --git a/docs/Models/Requests/AtsListCandidatesRequest.md b/docs/Models/Requests/AtsListCandidatesRequest.md index d11a890b..19902fcc 100644 --- a/docs/Models/Requests/AtsListCandidatesRequest.md +++ b/docs/Models/Requests/AtsListCandidatesRequest.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | -| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields | -| `Filter` | [AtsListCandidatesFilter](../../Models/Requests/AtsListCandidatesFilter.md) | :heavy_minus_sign: | ATS Candidate Filter | | -| ~~`Page`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | -| `PageSize` | *string* | :heavy_minus_sign: | The number of results per page (default value is 25) | | -| `Next` | *string* | :heavy_minus_sign: | The unified cursor | | -| ~~`UpdatedAfter`~~ | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | -| ~~`SyncToken`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The sync token to select the only updated results | | -| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | custom_fields | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | +| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields | +| `Filter` | [AtsListCandidatesFilter](../../Models/Requests/AtsListCandidatesFilter.md) | :heavy_minus_sign: | ATS Candidate Filter | | +| ~~`Page`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | +| `PageSize` | *string* | :heavy_minus_sign: | The number of results per page (default value is 25) | | +| `Next` | *string* | :heavy_minus_sign: | The unified cursor | | +| ~~`UpdatedAfter`~~ | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | +| ~~`SyncToken`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The sync token to select the only updated results | | +| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | custom_fields | \ No newline at end of file diff --git a/docs/Models/Requests/HrisGetEmployeeRequest.md b/docs/Models/Requests/HrisGetEmployeeRequest.md index e2d9f8b0..0dc5ad33 100644 --- a/docs/Models/Requests/HrisGetEmployeeRequest.md +++ b/docs/Models/Requests/HrisGetEmployeeRequest.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | -| `Id` | *string* | :heavy_check_mark: | N/A | | -| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields | -| `Expand` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be expanded in the response | company,employments,work_location,home_location,groups,skills | -| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | avatar_url,avatar,custom_fields,job_description,benefits | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | +| `Id` | *string* | :heavy_check_mark: | N/A | | +| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields | +| `Expand` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be expanded in the response | company,employments,work_location,home_location,groups,skills | +| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | avatar_url,avatar,custom_fields,job_description,benefits,bank_details | \ No newline at end of file diff --git a/docs/Models/Requests/HrisListEmployeesRequest.md b/docs/Models/Requests/HrisListEmployeesRequest.md index 80a768b9..918131d1 100644 --- a/docs/Models/Requests/HrisListEmployeesRequest.md +++ b/docs/Models/Requests/HrisListEmployeesRequest.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | -| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields | -| `Filter` | [HrisListEmployeesFilter](../../Models/Requests/HrisListEmployeesFilter.md) | :heavy_minus_sign: | HRIS Employees filters | | -| ~~`Page`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | -| `PageSize` | *string* | :heavy_minus_sign: | The number of results per page (default value is 25) | | -| `Next` | *string* | :heavy_minus_sign: | The unified cursor | | -| ~~`UpdatedAfter`~~ | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | -| `Expand` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be expanded in the response | company,employments,work_location,home_location,groups,skills | -| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | avatar_url,avatar,custom_fields,job_description,benefits | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `XAccountId` | *string* | :heavy_check_mark: | The account identifier | | +| `Raw` | *bool* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `Proxy` | Dictionary | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `Fields` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields | +| `Filter` | [HrisListEmployeesFilter](../../Models/Requests/HrisListEmployeesFilter.md) | :heavy_minus_sign: | HRIS Employees filters | | +| ~~`Page`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | +| `PageSize` | *string* | :heavy_minus_sign: | The number of results per page (default value is 25) | | +| `Next` | *string* | :heavy_minus_sign: | The unified cursor | | +| ~~`UpdatedAfter`~~ | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | +| `Expand` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be expanded in the response | company,employments,work_location,home_location,groups,skills | +| `Include` | *string* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | avatar_url,avatar,custom_fields,job_description,benefits,bank_details | \ No newline at end of file diff --git a/docs/sdks/assignments/README.md b/docs/sdks/assignments/README.md index 7685a4af..676413de 100644 --- a/docs/sdks/assignments/README.md +++ b/docs/sdks/assignments/README.md @@ -35,13 +35,13 @@ var res = await sdk.Lms.Assignments.CreateAsync( { "other_known_names", "John Doe" }, }, LearningObjectId = "e3gd34-23tr21-er234-345er56", - LearningObjectExternalReference = "learning-content-123", Progress = 40D, CreatedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), DueDate = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), Status = new LmsCreateAssignmentRequestDtoStatus() { Value = LmsCreateAssignmentRequestDtoValue.InProgress, }, + LearningObjectExternalReference = "learning-content-123", } ); diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index c1b636a1..2f56dd1c 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -638,7 +638,7 @@ var sdk = new StackOneHQClient(security: new Security() { AtsListCandidatesRequest req = new AtsListCandidatesRequest() { XAccountId = "", - Fields = "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields", + Fields = "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields", Filter = new AtsListCandidatesFilter() { UpdatedAfter = System.DateTime.Parse("2020-01-01T00:00:00.000Z"), CreatedAfter = System.DateTime.Parse("2020-01-01T00:00:00.000Z"), diff --git a/docs/sdks/candidates/README.md b/docs/sdks/candidates/README.md index e940f2dd..6d67718e 100644 --- a/docs/sdks/candidates/README.md +++ b/docs/sdks/candidates/README.md @@ -122,7 +122,7 @@ var sdk = new StackOneHQClient(security: new Security() { AtsGetCandidateRequest req = new AtsGetCandidateRequest() { XAccountId = "", Id = "", - Fields = "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,created_at,updated_at,unified_custom_fields", + Fields = "id,remote_id,name,first_name,last_name,email,emails,social_links,phone,phone_numbers,company,country,title,application_ids,remote_application_ids,hired_at,custom_fields,tags,created_at,updated_at,unified_custom_fields", Include = "custom_fields", }; diff --git a/docs/sdks/content/README.md b/docs/sdks/content/README.md index 4a6e9323..161b7123 100644 --- a/docs/sdks/content/README.md +++ b/docs/sdks/content/README.md @@ -34,7 +34,6 @@ var res = await sdk.Lms.Content.UpsertAsync( { "my_project_custom_field_1", "REF-1236" }, { "my_project_custom_field_2", "some other value" }, }, - ExternalReference = "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", Title = "Software Engineer Lv 1", Description = "This video acts as learning content for software engineers.", Languages = new List() { @@ -78,6 +77,7 @@ var res = await sdk.Lms.Content.UpsertAsync( }, UpdatedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), CreatedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), + ExternalReference = "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", Categories = new List() { new CreateCategoriesApiModel() { Id = "16873-IT345", @@ -217,7 +217,6 @@ var res = await sdk.Lms.Content.UpdateAsync( { "my_project_custom_field_1", "REF-1236" }, { "my_project_custom_field_2", "some other value" }, }, - ExternalReference = "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", Title = "Software Engineer Lv 1", Description = "This video acts as learning content for software engineers.", Languages = new List() { @@ -261,6 +260,7 @@ var res = await sdk.Lms.Content.UpdateAsync( }, UpdatedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), CreatedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), + ExternalReference = "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", Categories = new List() { new CreateCategoriesApiModel() { Name = "Technology", diff --git a/docs/sdks/employees/README.md b/docs/sdks/employees/README.md index befeaec5..1999fbf2 100644 --- a/docs/sdks/employees/README.md +++ b/docs/sdks/employees/README.md @@ -104,12 +104,12 @@ var sdk = new StackOneHQClient(security: new Security() { HrisListEmployeesRequest req = new HrisListEmployeesRequest() { XAccountId = "", - Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields", + Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields", Filter = new HrisListEmployeesFilter() { UpdatedAfter = System.DateTime.Parse("2020-01-01T00:00:00.000Z"), }, Expand = "company,employments,work_location,home_location,groups,skills", - Include = "avatar_url,avatar,custom_fields,job_description,benefits", + Include = "avatar_url,avatar,custom_fields,job_description,benefits,bank_details", }; HrisListEmployeesResponse? res = await sdk.Hris.Employees.ListAsync(req); diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md index b2a875ad..645d4e19 100644 --- a/docs/sdks/hris/README.md +++ b/docs/sdks/hris/README.md @@ -238,9 +238,9 @@ var sdk = new StackOneHQClient(security: new Security() { HrisGetEmployeeRequest req = new HrisGetEmployeeRequest() { XAccountId = "", Id = "", - Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills,unified_custom_fields", + Fields = "id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields", Expand = "company,employments,work_location,home_location,groups,skills", - Include = "avatar_url,avatar,custom_fields,job_description,benefits", + Include = "avatar_url,avatar,custom_fields,job_description,benefits,bank_details", }; var res = await sdk.Hris.GetEmployeeAsync(req); diff --git a/docs/sdks/lms/README.md b/docs/sdks/lms/README.md index c56500aa..e8363e3d 100644 --- a/docs/sdks/lms/README.md +++ b/docs/sdks/lms/README.md @@ -167,7 +167,6 @@ var res = await sdk.Lms.BatchUpsertContentAsync( { "my_project_custom_field_1", "REF-1236" }, { "my_project_custom_field_2", "some other value" }, }, - ExternalReference = "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", Title = "Software Engineer Lv 1", Description = "This video acts as learning content for software engineers.", Languages = new List() { @@ -211,6 +210,7 @@ var res = await sdk.Lms.BatchUpsertContentAsync( }, UpdatedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), CreatedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), + ExternalReference = "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1", Categories = new List() { new CreateCategoriesApiModel() { Id = "16873-IT345", @@ -361,8 +361,8 @@ var res = await sdk.Lms.CreateUserCompletionAsync( }, CompletedAt = System.DateTime.Parse("2021-07-21T14:00:00.000Z"), LearningObjectId = "e3gd34-23tr21-er234-345er56", - LearningObjectExternalReference = "learning-content-123", TimeSpent = "PT1H30M45S", + LearningObjectExternalReference = "learning-content-123", } ); diff --git a/src/StackOneHQ/Client/Accounting.cs b/src/StackOneHQ/Client/Accounting.cs index 36d7e5f1..8d23809c 100644 --- a/src/StackOneHQ/Client/Accounting.cs +++ b/src/StackOneHQ/Client/Accounting.cs @@ -82,8 +82,8 @@ public class Accounting: IAccounting { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Accounting(SDKConfig config) diff --git a/src/StackOneHQ/Client/Accounts.cs b/src/StackOneHQ/Client/Accounts.cs index cc5329a7..449f8d51 100644 --- a/src/StackOneHQ/Client/Accounts.cs +++ b/src/StackOneHQ/Client/Accounts.cs @@ -61,8 +61,8 @@ public class Accounts: IAccounts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Accounts(SDKConfig config) diff --git a/src/StackOneHQ/Client/Actions.cs b/src/StackOneHQ/Client/Actions.cs index 6b596535..b76e9d63 100644 --- a/src/StackOneHQ/Client/Actions.cs +++ b/src/StackOneHQ/Client/Actions.cs @@ -56,8 +56,8 @@ public class Actions: IActions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Actions(SDKConfig config) diff --git a/src/StackOneHQ/Client/ApplicationCategories.cs b/src/StackOneHQ/Client/ApplicationCategories.cs index 4794211b..0af0796d 100644 --- a/src/StackOneHQ/Client/ApplicationCategories.cs +++ b/src/StackOneHQ/Client/ApplicationCategories.cs @@ -35,8 +35,8 @@ public class ApplicationCategories: IApplicationCategories { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ApplicationCategories(SDKConfig config) diff --git a/src/StackOneHQ/Client/Applications.cs b/src/StackOneHQ/Client/Applications.cs index fd77a2f7..d5f1c4d8 100644 --- a/src/StackOneHQ/Client/Applications.cs +++ b/src/StackOneHQ/Client/Applications.cs @@ -35,8 +35,8 @@ public class Applications: IApplications { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Applications(SDKConfig config) diff --git a/src/StackOneHQ/Client/ApplicationsDocuments.cs b/src/StackOneHQ/Client/ApplicationsDocuments.cs index 59fe1a78..a90a62bd 100644 --- a/src/StackOneHQ/Client/ApplicationsDocuments.cs +++ b/src/StackOneHQ/Client/ApplicationsDocuments.cs @@ -37,8 +37,8 @@ public class ApplicationsDocuments: IApplicationsDocuments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ApplicationsDocuments(SDKConfig config) diff --git a/src/StackOneHQ/Client/Assessments.cs b/src/StackOneHQ/Client/Assessments.cs index 7f602257..a2697c32 100644 --- a/src/StackOneHQ/Client/Assessments.cs +++ b/src/StackOneHQ/Client/Assessments.cs @@ -38,8 +38,8 @@ public class Assessments: IAssessments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IAssessmentsPackages Packages { get; private set; } diff --git a/src/StackOneHQ/Client/AssessmentsPackages.cs b/src/StackOneHQ/Client/AssessmentsPackages.cs index 67b9ffe9..9de09c7d 100644 --- a/src/StackOneHQ/Client/AssessmentsPackages.cs +++ b/src/StackOneHQ/Client/AssessmentsPackages.cs @@ -35,8 +35,8 @@ public class AssessmentsPackages: IAssessmentsPackages { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AssessmentsPackages(SDKConfig config) diff --git a/src/StackOneHQ/Client/Assignments.cs b/src/StackOneHQ/Client/Assignments.cs index 9d8b5bd0..7fe05eb0 100644 --- a/src/StackOneHQ/Client/Assignments.cs +++ b/src/StackOneHQ/Client/Assignments.cs @@ -47,8 +47,8 @@ public class Assignments: IAssignments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Assignments(SDKConfig config) diff --git a/src/StackOneHQ/Client/Ats.cs b/src/StackOneHQ/Client/Ats.cs index ed20d95a..700131a6 100644 --- a/src/StackOneHQ/Client/Ats.cs +++ b/src/StackOneHQ/Client/Ats.cs @@ -193,8 +193,8 @@ public class Ats: IAts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IAtsApplications Applications { get; private set; } public ICandidates Candidates { get; private set; } diff --git a/src/StackOneHQ/Client/AtsApplications.cs b/src/StackOneHQ/Client/AtsApplications.cs index 3100ffec..4810b6c7 100644 --- a/src/StackOneHQ/Client/AtsApplications.cs +++ b/src/StackOneHQ/Client/AtsApplications.cs @@ -93,8 +93,8 @@ public class AtsApplications: IAtsApplications { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IApplicationsDocuments Documents { get; private set; } diff --git a/src/StackOneHQ/Client/AtsBackgroundChecks.cs b/src/StackOneHQ/Client/AtsBackgroundChecks.cs index d6a5f0de..5bcfcd6e 100644 --- a/src/StackOneHQ/Client/AtsBackgroundChecks.cs +++ b/src/StackOneHQ/Client/AtsBackgroundChecks.cs @@ -43,8 +43,8 @@ public class AtsBackgroundChecks: IAtsBackgroundChecks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IBackgroundChecksPackages Packages { get; private set; } diff --git a/src/StackOneHQ/Client/AtsCustomFieldDefinitions.cs b/src/StackOneHQ/Client/AtsCustomFieldDefinitions.cs index 5d30507b..cadb63f8 100644 --- a/src/StackOneHQ/Client/AtsCustomFieldDefinitions.cs +++ b/src/StackOneHQ/Client/AtsCustomFieldDefinitions.cs @@ -42,8 +42,8 @@ public class AtsCustomFieldDefinitions: IAtsCustomFieldDefinitions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AtsCustomFieldDefinitions(SDKConfig config) diff --git a/src/StackOneHQ/Client/AtsDepartments.cs b/src/StackOneHQ/Client/AtsDepartments.cs index 571fe98b..e5be8a7a 100644 --- a/src/StackOneHQ/Client/AtsDepartments.cs +++ b/src/StackOneHQ/Client/AtsDepartments.cs @@ -35,8 +35,8 @@ public class AtsDepartments: IAtsDepartments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AtsDepartments(SDKConfig config) diff --git a/src/StackOneHQ/Client/AtsDocuments.cs b/src/StackOneHQ/Client/AtsDocuments.cs index fea4e6ea..729731bf 100644 --- a/src/StackOneHQ/Client/AtsDocuments.cs +++ b/src/StackOneHQ/Client/AtsDocuments.cs @@ -23,8 +23,8 @@ public class AtsDocuments: IAtsDocuments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IApplicationCategories ApplicationCategories { get; private set; } diff --git a/src/StackOneHQ/Client/AtsInterviews.cs b/src/StackOneHQ/Client/AtsInterviews.cs index cd124e83..c22ae037 100644 --- a/src/StackOneHQ/Client/AtsInterviews.cs +++ b/src/StackOneHQ/Client/AtsInterviews.cs @@ -37,8 +37,8 @@ public class AtsInterviews: IAtsInterviews { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AtsInterviews(SDKConfig config) diff --git a/src/StackOneHQ/Client/AtsJobs.cs b/src/StackOneHQ/Client/AtsJobs.cs index 0bcc171f..ff34b46b 100644 --- a/src/StackOneHQ/Client/AtsJobs.cs +++ b/src/StackOneHQ/Client/AtsJobs.cs @@ -35,8 +35,8 @@ public class AtsJobs: IAtsJobs { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AtsJobs(SDKConfig config) diff --git a/src/StackOneHQ/Client/AtsLists.cs b/src/StackOneHQ/Client/AtsLists.cs index ecc292b4..f92f4cab 100644 --- a/src/StackOneHQ/Client/AtsLists.cs +++ b/src/StackOneHQ/Client/AtsLists.cs @@ -42,8 +42,8 @@ public class AtsLists: IAtsLists { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AtsLists(SDKConfig config) diff --git a/src/StackOneHQ/Client/AtsLocations.cs b/src/StackOneHQ/Client/AtsLocations.cs index 5fde0e23..acf2e314 100644 --- a/src/StackOneHQ/Client/AtsLocations.cs +++ b/src/StackOneHQ/Client/AtsLocations.cs @@ -42,8 +42,8 @@ public class AtsLocations: IAtsLocations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AtsLocations(SDKConfig config) diff --git a/src/StackOneHQ/Client/AtsUsers.cs b/src/StackOneHQ/Client/AtsUsers.cs index 1c7ec8be..f1850873 100644 --- a/src/StackOneHQ/Client/AtsUsers.cs +++ b/src/StackOneHQ/Client/AtsUsers.cs @@ -37,8 +37,8 @@ public class AtsUsers: IAtsUsers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public AtsUsers(SDKConfig config) diff --git a/src/StackOneHQ/Client/Attachments.cs b/src/StackOneHQ/Client/Attachments.cs index 0cbd84c1..1a92f1ce 100644 --- a/src/StackOneHQ/Client/Attachments.cs +++ b/src/StackOneHQ/Client/Attachments.cs @@ -39,8 +39,8 @@ public class Attachments: IAttachments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Attachments(SDKConfig config) diff --git a/src/StackOneHQ/Client/BackgroundChecks.cs b/src/StackOneHQ/Client/BackgroundChecks.cs index 0890a18f..c33c2f11 100644 --- a/src/StackOneHQ/Client/BackgroundChecks.cs +++ b/src/StackOneHQ/Client/BackgroundChecks.cs @@ -35,8 +35,8 @@ public class BackgroundChecks: IBackgroundChecks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public BackgroundChecks(SDKConfig config) diff --git a/src/StackOneHQ/Client/BackgroundChecksPackages.cs b/src/StackOneHQ/Client/BackgroundChecksPackages.cs index 5a830209..f6ca3d5c 100644 --- a/src/StackOneHQ/Client/BackgroundChecksPackages.cs +++ b/src/StackOneHQ/Client/BackgroundChecksPackages.cs @@ -35,8 +35,8 @@ public class BackgroundChecksPackages: IBackgroundChecksPackages { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public BackgroundChecksPackages(SDKConfig config) diff --git a/src/StackOneHQ/Client/Benefits.cs b/src/StackOneHQ/Client/Benefits.cs index 06cae2d2..405de753 100644 --- a/src/StackOneHQ/Client/Benefits.cs +++ b/src/StackOneHQ/Client/Benefits.cs @@ -35,8 +35,8 @@ public class Benefits: IBenefits { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Benefits(SDKConfig config) diff --git a/src/StackOneHQ/Client/Campaigns.cs b/src/StackOneHQ/Client/Campaigns.cs index fbf03fd5..dec62879 100644 --- a/src/StackOneHQ/Client/Campaigns.cs +++ b/src/StackOneHQ/Client/Campaigns.cs @@ -42,8 +42,8 @@ public class Campaigns: ICampaigns { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Campaigns(SDKConfig config) diff --git a/src/StackOneHQ/Client/Candidates.cs b/src/StackOneHQ/Client/Candidates.cs index 5be9c670..c03bb027 100644 --- a/src/StackOneHQ/Client/Candidates.cs +++ b/src/StackOneHQ/Client/Candidates.cs @@ -42,8 +42,8 @@ public class Candidates: ICandidates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public INotes Notes { get; private set; } public ICandidatesCustomFieldDefinitions CustomFieldDefinitions { get; private set; } diff --git a/src/StackOneHQ/Client/CandidatesCustomFieldDefinitions.cs b/src/StackOneHQ/Client/CandidatesCustomFieldDefinitions.cs index 3227bb65..ac3a2788 100644 --- a/src/StackOneHQ/Client/CandidatesCustomFieldDefinitions.cs +++ b/src/StackOneHQ/Client/CandidatesCustomFieldDefinitions.cs @@ -35,8 +35,8 @@ public class CandidatesCustomFieldDefinitions: ICandidatesCustomFieldDefinitions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public CandidatesCustomFieldDefinitions(SDKConfig config) diff --git a/src/StackOneHQ/Client/Categories.cs b/src/StackOneHQ/Client/Categories.cs index 93a54864..247540b4 100644 --- a/src/StackOneHQ/Client/Categories.cs +++ b/src/StackOneHQ/Client/Categories.cs @@ -37,8 +37,8 @@ public class Categories: ICategories { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Categories(SDKConfig config) diff --git a/src/StackOneHQ/Client/Comments.cs b/src/StackOneHQ/Client/Comments.cs index 06b19912..bfa8616d 100644 --- a/src/StackOneHQ/Client/Comments.cs +++ b/src/StackOneHQ/Client/Comments.cs @@ -39,8 +39,8 @@ public class Comments: IComments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Comments(SDKConfig config) diff --git a/src/StackOneHQ/Client/Companies.cs b/src/StackOneHQ/Client/Companies.cs index df168942..5774f260 100644 --- a/src/StackOneHQ/Client/Companies.cs +++ b/src/StackOneHQ/Client/Companies.cs @@ -35,8 +35,8 @@ public class Companies: ICompanies { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Companies(SDKConfig config) diff --git a/src/StackOneHQ/Client/Completions.cs b/src/StackOneHQ/Client/Completions.cs index 76f37142..99233112 100644 --- a/src/StackOneHQ/Client/Completions.cs +++ b/src/StackOneHQ/Client/Completions.cs @@ -42,8 +42,8 @@ public class Completions: ICompletions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Completions(SDKConfig config) diff --git a/src/StackOneHQ/Client/ConnectSessions.cs b/src/StackOneHQ/Client/ConnectSessions.cs index 58794c96..ab6816d5 100644 --- a/src/StackOneHQ/Client/ConnectSessions.cs +++ b/src/StackOneHQ/Client/ConnectSessions.cs @@ -40,8 +40,8 @@ public class ConnectSessions: IConnectSessions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ConnectSessions(SDKConfig config) diff --git a/src/StackOneHQ/Client/Connectors.cs b/src/StackOneHQ/Client/Connectors.cs index 6a2bc0c5..2a84fff5 100644 --- a/src/StackOneHQ/Client/Connectors.cs +++ b/src/StackOneHQ/Client/Connectors.cs @@ -46,8 +46,8 @@ public class Connectors: IConnectors { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Connectors(SDKConfig config) diff --git a/src/StackOneHQ/Client/Contacts.cs b/src/StackOneHQ/Client/Contacts.cs index a97afeff..8836d8e1 100644 --- a/src/StackOneHQ/Client/Contacts.cs +++ b/src/StackOneHQ/Client/Contacts.cs @@ -42,8 +42,8 @@ public class Contacts: IContacts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Contacts(SDKConfig config) diff --git a/src/StackOneHQ/Client/Content.cs b/src/StackOneHQ/Client/Content.cs index eedc7ec1..6844565e 100644 --- a/src/StackOneHQ/Client/Content.cs +++ b/src/StackOneHQ/Client/Content.cs @@ -45,8 +45,8 @@ public class Content: IContent { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Content(SDKConfig config) diff --git a/src/StackOneHQ/Client/ContentBlocks.cs b/src/StackOneHQ/Client/ContentBlocks.cs index efcffe22..313ad95c 100644 --- a/src/StackOneHQ/Client/ContentBlocks.cs +++ b/src/StackOneHQ/Client/ContentBlocks.cs @@ -35,8 +35,8 @@ public class ContentBlocks: IContentBlocks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ContentBlocks(SDKConfig config) diff --git a/src/StackOneHQ/Client/CostCenters.cs b/src/StackOneHQ/Client/CostCenters.cs index bb0c456f..09273475 100644 --- a/src/StackOneHQ/Client/CostCenters.cs +++ b/src/StackOneHQ/Client/CostCenters.cs @@ -35,8 +35,8 @@ public class CostCenters: ICostCenters { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public CostCenters(SDKConfig config) diff --git a/src/StackOneHQ/Client/Courses.cs b/src/StackOneHQ/Client/Courses.cs index 261d3d67..90ad57d7 100644 --- a/src/StackOneHQ/Client/Courses.cs +++ b/src/StackOneHQ/Client/Courses.cs @@ -37,8 +37,8 @@ public class Courses: ICourses { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Courses(SDKConfig config) diff --git a/src/StackOneHQ/Client/Crm.cs b/src/StackOneHQ/Client/Crm.cs index a66325f1..5d09f3d4 100644 --- a/src/StackOneHQ/Client/Crm.cs +++ b/src/StackOneHQ/Client/Crm.cs @@ -55,8 +55,8 @@ public class Crm: ICrm { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IContacts Contacts { get; private set; } public ICrmLists Lists { get; private set; } diff --git a/src/StackOneHQ/Client/CrmCustomFieldDefinitions.cs b/src/StackOneHQ/Client/CrmCustomFieldDefinitions.cs index 3b218448..7bf52b10 100644 --- a/src/StackOneHQ/Client/CrmCustomFieldDefinitions.cs +++ b/src/StackOneHQ/Client/CrmCustomFieldDefinitions.cs @@ -23,8 +23,8 @@ public class CrmCustomFieldDefinitions: ICrmCustomFieldDefinitions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ICustomFieldDefinitionsContacts Contacts { get; private set; } diff --git a/src/StackOneHQ/Client/CrmLists.cs b/src/StackOneHQ/Client/CrmLists.cs index bcce376e..79bccc7b 100644 --- a/src/StackOneHQ/Client/CrmLists.cs +++ b/src/StackOneHQ/Client/CrmLists.cs @@ -42,8 +42,8 @@ public class CrmLists: ICrmLists { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public CrmLists(SDKConfig config) diff --git a/src/StackOneHQ/Client/CustomFieldDefinitionsContacts.cs b/src/StackOneHQ/Client/CustomFieldDefinitionsContacts.cs index 2039992a..001521a1 100644 --- a/src/StackOneHQ/Client/CustomFieldDefinitionsContacts.cs +++ b/src/StackOneHQ/Client/CustomFieldDefinitionsContacts.cs @@ -42,8 +42,8 @@ public class CustomFieldDefinitionsContacts: ICustomFieldDefinitionsContacts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public CustomFieldDefinitionsContacts(SDKConfig config) diff --git a/src/StackOneHQ/Client/Divisions.cs b/src/StackOneHQ/Client/Divisions.cs index 44e5dc05..8669a61f 100644 --- a/src/StackOneHQ/Client/Divisions.cs +++ b/src/StackOneHQ/Client/Divisions.cs @@ -35,8 +35,8 @@ public class Divisions: IDivisions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Divisions(SDKConfig config) diff --git a/src/StackOneHQ/Client/Documents.cs b/src/StackOneHQ/Client/Documents.cs index 04925a94..db832123 100644 --- a/src/StackOneHQ/Client/Documents.cs +++ b/src/StackOneHQ/Client/Documents.cs @@ -45,8 +45,8 @@ public class Documents: IDocuments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IFiles Files { get; private set; } public IFolders Folders { get; private set; } diff --git a/src/StackOneHQ/Client/DocumentsDrives.cs b/src/StackOneHQ/Client/DocumentsDrives.cs index 2ea0bc57..0a324a8d 100644 --- a/src/StackOneHQ/Client/DocumentsDrives.cs +++ b/src/StackOneHQ/Client/DocumentsDrives.cs @@ -37,8 +37,8 @@ public class DocumentsDrives: IDocumentsDrives { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public DocumentsDrives(SDKConfig config) diff --git a/src/StackOneHQ/Client/Drives.cs b/src/StackOneHQ/Client/Drives.cs index 0dfd380f..dd53cf52 100644 --- a/src/StackOneHQ/Client/Drives.cs +++ b/src/StackOneHQ/Client/Drives.cs @@ -35,8 +35,8 @@ public class Drives: IDrives { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Drives(SDKConfig config) diff --git a/src/StackOneHQ/Client/EmployeeCategories.cs b/src/StackOneHQ/Client/EmployeeCategories.cs index a18cc531..512ff108 100644 --- a/src/StackOneHQ/Client/EmployeeCategories.cs +++ b/src/StackOneHQ/Client/EmployeeCategories.cs @@ -42,8 +42,8 @@ public class EmployeeCategories: IEmployeeCategories { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public EmployeeCategories(SDKConfig config) diff --git a/src/StackOneHQ/Client/Employees.cs b/src/StackOneHQ/Client/Employees.cs index 2d0fdc06..db2e7b73 100644 --- a/src/StackOneHQ/Client/Employees.cs +++ b/src/StackOneHQ/Client/Employees.cs @@ -107,8 +107,8 @@ public class Employees: IEmployees { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IEmployeesDocuments Documents { get; private set; } public IWorkEligibility WorkEligibility { get; private set; } diff --git a/src/StackOneHQ/Client/EmployeesDocuments.cs b/src/StackOneHQ/Client/EmployeesDocuments.cs index 7aedfa34..6c20a0c5 100644 --- a/src/StackOneHQ/Client/EmployeesDocuments.cs +++ b/src/StackOneHQ/Client/EmployeesDocuments.cs @@ -35,8 +35,8 @@ public class EmployeesDocuments: IEmployeesDocuments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public EmployeesDocuments(SDKConfig config) diff --git a/src/StackOneHQ/Client/EmployeesEmployments.cs b/src/StackOneHQ/Client/EmployeesEmployments.cs index e1e260d5..afd25c78 100644 --- a/src/StackOneHQ/Client/EmployeesEmployments.cs +++ b/src/StackOneHQ/Client/EmployeesEmployments.cs @@ -42,8 +42,8 @@ public class EmployeesEmployments: IEmployeesEmployments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public EmployeesEmployments(SDKConfig config) diff --git a/src/StackOneHQ/Client/EmployeesSkills.cs b/src/StackOneHQ/Client/EmployeesSkills.cs index 77b00576..980b9932 100644 --- a/src/StackOneHQ/Client/EmployeesSkills.cs +++ b/src/StackOneHQ/Client/EmployeesSkills.cs @@ -37,8 +37,8 @@ public class EmployeesSkills: IEmployeesSkills { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public EmployeesSkills(SDKConfig config) diff --git a/src/StackOneHQ/Client/EmployeesTasks.cs b/src/StackOneHQ/Client/EmployeesTasks.cs index 3b19c60c..627e1b86 100644 --- a/src/StackOneHQ/Client/EmployeesTasks.cs +++ b/src/StackOneHQ/Client/EmployeesTasks.cs @@ -42,8 +42,8 @@ public class EmployeesTasks: IEmployeesTasks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public EmployeesTasks(SDKConfig config) diff --git a/src/StackOneHQ/Client/Employments.cs b/src/StackOneHQ/Client/Employments.cs index 00534a0f..e7326e41 100644 --- a/src/StackOneHQ/Client/Employments.cs +++ b/src/StackOneHQ/Client/Employments.cs @@ -37,8 +37,8 @@ public class Employments: IEmployments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Employments(SDKConfig config) diff --git a/src/StackOneHQ/Client/Files.cs b/src/StackOneHQ/Client/Files.cs index 4608f184..d345fb13 100644 --- a/src/StackOneHQ/Client/Files.cs +++ b/src/StackOneHQ/Client/Files.cs @@ -47,8 +47,8 @@ public class Files: IFiles { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Files(SDKConfig config) diff --git a/src/StackOneHQ/Client/Folders.cs b/src/StackOneHQ/Client/Folders.cs index 2784f85e..55c11bf8 100644 --- a/src/StackOneHQ/Client/Folders.cs +++ b/src/StackOneHQ/Client/Folders.cs @@ -42,8 +42,8 @@ public class Folders: IFolders { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Folders(SDKConfig config) diff --git a/src/StackOneHQ/Client/GroupsCompanies.cs b/src/StackOneHQ/Client/GroupsCompanies.cs index 0c131a0f..02dd3522 100644 --- a/src/StackOneHQ/Client/GroupsCompanies.cs +++ b/src/StackOneHQ/Client/GroupsCompanies.cs @@ -37,8 +37,8 @@ public class GroupsCompanies: IGroupsCompanies { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public GroupsCompanies(SDKConfig config) diff --git a/src/StackOneHQ/Client/Hris.cs b/src/StackOneHQ/Client/Hris.cs index d02f7b6b..e7884b07 100644 --- a/src/StackOneHQ/Client/Hris.cs +++ b/src/StackOneHQ/Client/Hris.cs @@ -205,8 +205,8 @@ public class Hris: IHris { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IEmployees Employees { get; private set; } public IHrisDocuments Documents { get; private set; } diff --git a/src/StackOneHQ/Client/HrisDepartments.cs b/src/StackOneHQ/Client/HrisDepartments.cs index e51d77c3..aed8943e 100644 --- a/src/StackOneHQ/Client/HrisDepartments.cs +++ b/src/StackOneHQ/Client/HrisDepartments.cs @@ -35,8 +35,8 @@ public class HrisDepartments: IHrisDepartments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public HrisDepartments(SDKConfig config) diff --git a/src/StackOneHQ/Client/HrisDocuments.cs b/src/StackOneHQ/Client/HrisDocuments.cs index 4c37c28e..bffbb655 100644 --- a/src/StackOneHQ/Client/HrisDocuments.cs +++ b/src/StackOneHQ/Client/HrisDocuments.cs @@ -23,8 +23,8 @@ public class HrisDocuments: IHrisDocuments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IEmployeeCategories EmployeeCategories { get; private set; } diff --git a/src/StackOneHQ/Client/HrisGroups.cs b/src/StackOneHQ/Client/HrisGroups.cs index 511c4a69..fe4daca9 100644 --- a/src/StackOneHQ/Client/HrisGroups.cs +++ b/src/StackOneHQ/Client/HrisGroups.cs @@ -60,8 +60,8 @@ public class HrisGroups: IHrisGroups { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IGroupsCompanies Companies { get; private set; } public ICostCenters CostCenters { get; private set; } diff --git a/src/StackOneHQ/Client/HrisJobs.cs b/src/StackOneHQ/Client/HrisJobs.cs index 2a7dd87c..38bd8b1a 100644 --- a/src/StackOneHQ/Client/HrisJobs.cs +++ b/src/StackOneHQ/Client/HrisJobs.cs @@ -42,8 +42,8 @@ public class HrisJobs: IHrisJobs { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public HrisJobs(SDKConfig config) diff --git a/src/StackOneHQ/Client/HrisLocations.cs b/src/StackOneHQ/Client/HrisLocations.cs index 5cf13602..561bc3e4 100644 --- a/src/StackOneHQ/Client/HrisLocations.cs +++ b/src/StackOneHQ/Client/HrisLocations.cs @@ -37,8 +37,8 @@ public class HrisLocations: IHrisLocations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public HrisLocations(SDKConfig config) diff --git a/src/StackOneHQ/Client/Iam.cs b/src/StackOneHQ/Client/Iam.cs index 93318bb5..f9367e75 100644 --- a/src/StackOneHQ/Client/Iam.cs +++ b/src/StackOneHQ/Client/Iam.cs @@ -60,8 +60,8 @@ public class Iam: IIam { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IIamUsers Users { get; private set; } public IIamGroups Groups { get; private set; } diff --git a/src/StackOneHQ/Client/IamGroups.cs b/src/StackOneHQ/Client/IamGroups.cs index 748fda72..8da19887 100644 --- a/src/StackOneHQ/Client/IamGroups.cs +++ b/src/StackOneHQ/Client/IamGroups.cs @@ -37,8 +37,8 @@ public class IamGroups: IIamGroups { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IamGroups(SDKConfig config) diff --git a/src/StackOneHQ/Client/IamUsers.cs b/src/StackOneHQ/Client/IamUsers.cs index f76de015..aeceb1d6 100644 --- a/src/StackOneHQ/Client/IamUsers.cs +++ b/src/StackOneHQ/Client/IamUsers.cs @@ -47,8 +47,8 @@ public class IamUsers: IIamUsers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IamUsers(SDKConfig config) diff --git a/src/StackOneHQ/Client/InApp.cs b/src/StackOneHQ/Client/InApp.cs index 6f2b27e0..9061fd57 100644 --- a/src/StackOneHQ/Client/InApp.cs +++ b/src/StackOneHQ/Client/InApp.cs @@ -40,8 +40,8 @@ public class InApp: IInApp { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public InApp(SDKConfig config) diff --git a/src/StackOneHQ/Client/InterviewStages.cs b/src/StackOneHQ/Client/InterviewStages.cs index 336e063b..a7f979e3 100644 --- a/src/StackOneHQ/Client/InterviewStages.cs +++ b/src/StackOneHQ/Client/InterviewStages.cs @@ -42,8 +42,8 @@ public class InterviewStages: IInterviewStages { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public InterviewStages(SDKConfig config) diff --git a/src/StackOneHQ/Client/Interviews.cs b/src/StackOneHQ/Client/Interviews.cs index bca60112..9459eed6 100644 --- a/src/StackOneHQ/Client/Interviews.cs +++ b/src/StackOneHQ/Client/Interviews.cs @@ -35,8 +35,8 @@ public class Interviews: IInterviews { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Interviews(SDKConfig config) diff --git a/src/StackOneHQ/Client/JobPostings.cs b/src/StackOneHQ/Client/JobPostings.cs index d0840882..538d3236 100644 --- a/src/StackOneHQ/Client/JobPostings.cs +++ b/src/StackOneHQ/Client/JobPostings.cs @@ -35,8 +35,8 @@ public class JobPostings: IJobPostings { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public JobPostings(SDKConfig config) diff --git a/src/StackOneHQ/Client/Lms.cs b/src/StackOneHQ/Client/Lms.cs index fc7a9e0a..1ee9334a 100644 --- a/src/StackOneHQ/Client/Lms.cs +++ b/src/StackOneHQ/Client/Lms.cs @@ -94,8 +94,8 @@ public class Lms: ILms { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IAssignments Assignments { get; private set; } public IUsersAssignments UsersAssignments { get; private set; } diff --git a/src/StackOneHQ/Client/LmsSkills.cs b/src/StackOneHQ/Client/LmsSkills.cs index 32e13f48..ac813f3d 100644 --- a/src/StackOneHQ/Client/LmsSkills.cs +++ b/src/StackOneHQ/Client/LmsSkills.cs @@ -35,8 +35,8 @@ public class LmsSkills: ILmsSkills { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public LmsSkills(SDKConfig config) diff --git a/src/StackOneHQ/Client/LmsUsers.cs b/src/StackOneHQ/Client/LmsUsers.cs index e1d74eb6..c778639b 100644 --- a/src/StackOneHQ/Client/LmsUsers.cs +++ b/src/StackOneHQ/Client/LmsUsers.cs @@ -37,8 +37,8 @@ public class LmsUsers: ILmsUsers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public LmsUsers(SDKConfig config) diff --git a/src/StackOneHQ/Client/Marketing.cs b/src/StackOneHQ/Client/Marketing.cs index 1fb22561..aa7daaa9 100644 --- a/src/StackOneHQ/Client/Marketing.cs +++ b/src/StackOneHQ/Client/Marketing.cs @@ -120,8 +120,8 @@ public class Marketing: IMarketing { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ITemplates Templates { get; private set; } public ICampaigns Campaigns { get; private set; } diff --git a/src/StackOneHQ/Client/Mcp.cs b/src/StackOneHQ/Client/Mcp.cs index a2c8819f..03cffbf8 100644 --- a/src/StackOneHQ/Client/Mcp.cs +++ b/src/StackOneHQ/Client/Mcp.cs @@ -63,8 +63,8 @@ public class Mcp: IMcp { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Mcp(SDKConfig config) diff --git a/src/StackOneHQ/Client/Messaging.cs b/src/StackOneHQ/Client/Messaging.cs index 7fc4d656..fa186658 100644 --- a/src/StackOneHQ/Client/Messaging.cs +++ b/src/StackOneHQ/Client/Messaging.cs @@ -87,8 +87,8 @@ public class Messaging: IMessaging { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Messaging(SDKConfig config) diff --git a/src/StackOneHQ/Client/Models/Components/Candidate.cs b/src/StackOneHQ/Client/Models/Components/Candidate.cs index a6d7a5ba..5b54d969 100644 --- a/src/StackOneHQ/Client/Models/Components/Candidate.cs +++ b/src/StackOneHQ/Client/Models/Components/Candidate.cs @@ -127,6 +127,12 @@ public class Candidate [JsonProperty("custom_fields")] public List? CustomFields { get; set; } = null; + /// + /// List of candidate tags indicating metadata associated with the candidate + /// + [JsonProperty("tags")] + public List? Tags { get; set; } = null; + /// /// Candidate created date /// diff --git a/src/StackOneHQ/Client/Models/Components/ClearingCode.cs b/src/StackOneHQ/Client/Models/Components/ClearingCode.cs new file mode 100644 index 00000000..ab33d9f6 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/ClearingCode.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + + public class ClearingCode + { + + /// + /// The type of clearing code + /// + [JsonProperty("type")] + public ClearingCodeType? Type { get; set; } = null; + + /// + /// The clearing code value + /// + [JsonProperty("value")] + public string? Value { get; set; } = null; + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValue.cs b/src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValue.cs new file mode 100644 index 00000000..77364e71 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValue.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using StackOneHQ.Client.Utils; + + public class ClearingCodeSourceValue + { + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValueUnion.cs b/src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValueUnion.cs new file mode 100644 index 00000000..9f91ccf2 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/ClearingCodeSourceValueUnion.cs @@ -0,0 +1,300 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Generic; + using System.Numerics; + using System.Reflection; + + public class ClearingCodeSourceValueUnionType + { + private ClearingCodeSourceValueUnionType(string value) { Value = value; } + + public string Value { get; private set; } + + public static ClearingCodeSourceValueUnionType Str { get { return new ClearingCodeSourceValueUnionType("str"); } } + + public static ClearingCodeSourceValueUnionType Number { get { return new ClearingCodeSourceValueUnionType("number"); } } + + public static ClearingCodeSourceValueUnionType Boolean { get { return new ClearingCodeSourceValueUnionType("boolean"); } } + + public static ClearingCodeSourceValueUnionType ClearingCodeSourceValue { get { return new ClearingCodeSourceValueUnionType("ClearingCode_source_value"); } } + + public static ClearingCodeSourceValueUnionType ArrayOfAny { get { return new ClearingCodeSourceValueUnionType("arrayOfAny"); } } + + public static ClearingCodeSourceValueUnionType Null { get { return new ClearingCodeSourceValueUnionType("null"); } } + + public override string ToString() { return Value; } + public static implicit operator String(ClearingCodeSourceValueUnionType v) { return v.Value; } + public static ClearingCodeSourceValueUnionType FromString(string v) { + switch(v) { + case "str": return Str; + case "number": return Number; + case "boolean": return Boolean; + case "ClearingCode_source_value": return ClearingCodeSourceValue; + case "arrayOfAny": return ArrayOfAny; + case "null": return Null; + default: throw new ArgumentException("Invalid value for ClearingCodeSourceValueUnionType"); + } + } + public override bool Equals(object? obj) + { + if (obj == null || GetType() != obj.GetType()) + { + return false; + } + return Value.Equals(((ClearingCodeSourceValueUnionType)obj).Value); + } + + public override int GetHashCode() + { + return Value.GetHashCode(); + } + } + + + [JsonConverter(typeof(ClearingCodeSourceValueUnion.ClearingCodeSourceValueUnionConverter))] + public class ClearingCodeSourceValueUnion + { + public ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType type) + { + Type = type; + } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public double? Number { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public bool? Boolean { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ClearingCodeSourceValue? ClearingCodeSourceValue { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public List? ArrayOfAny { get; set; } + + public ClearingCodeSourceValueUnionType Type { get; set; } + public static ClearingCodeSourceValueUnion CreateStr(string str) + { + ClearingCodeSourceValueUnionType typ = ClearingCodeSourceValueUnionType.Str; + + ClearingCodeSourceValueUnion res = new ClearingCodeSourceValueUnion(typ); + res.Str = str; + return res; + } + public static ClearingCodeSourceValueUnion CreateNumber(double number) + { + ClearingCodeSourceValueUnionType typ = ClearingCodeSourceValueUnionType.Number; + + ClearingCodeSourceValueUnion res = new ClearingCodeSourceValueUnion(typ); + res.Number = number; + return res; + } + public static ClearingCodeSourceValueUnion CreateBoolean(bool boolean) + { + ClearingCodeSourceValueUnionType typ = ClearingCodeSourceValueUnionType.Boolean; + + ClearingCodeSourceValueUnion res = new ClearingCodeSourceValueUnion(typ); + res.Boolean = boolean; + return res; + } + public static ClearingCodeSourceValueUnion CreateClearingCodeSourceValue(ClearingCodeSourceValue clearingCodeSourceValue) + { + ClearingCodeSourceValueUnionType typ = ClearingCodeSourceValueUnionType.ClearingCodeSourceValue; + + ClearingCodeSourceValueUnion res = new ClearingCodeSourceValueUnion(typ); + res.ClearingCodeSourceValue = clearingCodeSourceValue; + return res; + } + public static ClearingCodeSourceValueUnion CreateArrayOfAny(List arrayOfAny) + { + ClearingCodeSourceValueUnionType typ = ClearingCodeSourceValueUnionType.ArrayOfAny; + + ClearingCodeSourceValueUnion res = new ClearingCodeSourceValueUnion(typ); + res.ArrayOfAny = arrayOfAny; + return res; + } + + public static ClearingCodeSourceValueUnion CreateNull() + { + ClearingCodeSourceValueUnionType typ = ClearingCodeSourceValueUnionType.Null; + return new ClearingCodeSourceValueUnion(typ); + } + + public class ClearingCodeSourceValueUnionConverter : JsonConverter + { + public override bool CanConvert(System.Type objectType) => objectType == typeof(ClearingCodeSourceValueUnion); + + public override bool CanRead => true; + + public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.Null) + { + return null; + } + + var json = JRaw.Create(reader).ToString(); + var fallbackCandidates = new List<(System.Type, object, string)>(); + + try + { + return new ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType.ClearingCodeSourceValue) + { + ClearingCodeSourceValue = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(ClearingCodeSourceValue), new ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType.ClearingCodeSourceValue), "ClearingCodeSourceValue")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (json[0] == '"' && json[^1] == '"'){ + return new ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType.Str) + { + Str = json[1..^1] + }; + } + + try + { + var converted = Convert.ToDouble(json); + return new ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType.Number) + { + Number = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + var converted = Convert.ToBoolean(json); + return new ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType.Boolean) + { + Boolean = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + return new ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType.ArrayOfAny) + { + ArrayOfAny = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember>(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(List), new ClearingCodeSourceValueUnion(ClearingCodeSourceValueUnionType.ArrayOfAny), "ArrayOfAny")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (fallbackCandidates.Count > 0) + { + fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); + foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates) + { + try + { + return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next fallback option + } + catch (Exception) + { + throw; + } + } + } + + throw new InvalidOperationException("Could not deserialize into any supported types."); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteRawValue("null"); + return; + } + + ClearingCodeSourceValueUnion res = (ClearingCodeSourceValueUnion)value; + if (ClearingCodeSourceValueUnionType.FromString(res.Type).Equals(ClearingCodeSourceValueUnionType.Null)) + { + writer.WriteRawValue("null"); + return; + } + + if (res.Str != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Str)); + return; + } + + if (res.Number != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Number)); + return; + } + + if (res.Boolean != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean)); + return; + } + + if (res.ClearingCodeSourceValue != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.ClearingCodeSourceValue)); + return; + } + + if (res.ArrayOfAny != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.ArrayOfAny)); + return; + } + } + + } + + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/ClearingCodeType.cs b/src/StackOneHQ/Client/Models/Components/ClearingCodeType.cs new file mode 100644 index 00000000..8994ce32 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/ClearingCodeType.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// The type of clearing code + /// + public class ClearingCodeType + { + + /// + /// The type of clearing code + /// + [JsonProperty("value")] + public ClearingCodeValue? Value { get; set; } = null; + + [JsonProperty("source_value", NullValueHandling = NullValueHandling.Include)] + public ClearingCodeSourceValueUnion? SourceValue { get; set; } = null; + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/ClearingCodeValue.cs b/src/StackOneHQ/Client/Models/Components/ClearingCodeValue.cs new file mode 100644 index 00000000..dc8ef5db --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/ClearingCodeValue.cs @@ -0,0 +1,116 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// The type of clearing code + /// + [JsonConverter(typeof(OpenEnumConverter))] + public class ClearingCodeValue : IEquatable + { + public static readonly ClearingCodeValue SortCode = new ClearingCodeValue("sort_code"); + public static readonly ClearingCodeValue BuildingSocietyReference = new ClearingCodeValue("building_society_reference"); + public static readonly ClearingCodeValue AbaRouting = new ClearingCodeValue("aba_routing"); + public static readonly ClearingCodeValue ChipsParticipantId = new ClearingCodeValue("chips_participant_id"); + public static readonly ClearingCodeValue TransitNumber = new ClearingCodeValue("transit_number"); + public static readonly ClearingCodeValue InstitutionNumber = new ClearingCodeValue("institution_number"); + public static readonly ClearingCodeValue BsbCode = new ClearingCodeValue("bsb_code"); + public static readonly ClearingCodeValue IfscCode = new ClearingCodeValue("ifsc_code"); + public static readonly ClearingCodeValue MicrCode = new ClearingCodeValue("micr_code"); + public static readonly ClearingCodeValue Clabe = new ClearingCodeValue("clabe"); + public static readonly ClearingCodeValue CnapsCode = new ClearingCodeValue("cnaps_code"); + public static readonly ClearingCodeValue ChBankClearingCode = new ClearingCodeValue("ch_bank_clearing_code"); + public static readonly ClearingCodeValue ChSicCode = new ClearingCodeValue("ch_sic_code"); + public static readonly ClearingCodeValue ZenginCode = new ClearingCodeValue("zengin_code"); + public static readonly ClearingCodeValue NzClearingCode = new ClearingCodeValue("nz_clearing_code"); + public static readonly ClearingCodeValue HkBankCode = new ClearingCodeValue("hk_bank_code"); + public static readonly ClearingCodeValue Blz = new ClearingCodeValue("blz"); + public static readonly ClearingCodeValue AtBankleitzahl = new ClearingCodeValue("at_bankleitzahl"); + public static readonly ClearingCodeValue Nuban = new ClearingCodeValue("nuban"); + public static readonly ClearingCodeValue SeBankgiroCode = new ClearingCodeValue("se_bankgiro_code"); + public static readonly ClearingCodeValue UnmappedValue = new ClearingCodeValue("unmapped_value"); + + private static readonly Dictionary _knownValues = + new Dictionary () + { + ["sort_code"] = SortCode, + ["building_society_reference"] = BuildingSocietyReference, + ["aba_routing"] = AbaRouting, + ["chips_participant_id"] = ChipsParticipantId, + ["transit_number"] = TransitNumber, + ["institution_number"] = InstitutionNumber, + ["bsb_code"] = BsbCode, + ["ifsc_code"] = IfscCode, + ["micr_code"] = MicrCode, + ["clabe"] = Clabe, + ["cnaps_code"] = CnapsCode, + ["ch_bank_clearing_code"] = ChBankClearingCode, + ["ch_sic_code"] = ChSicCode, + ["zengin_code"] = ZenginCode, + ["nz_clearing_code"] = NzClearingCode, + ["hk_bank_code"] = HkBankCode, + ["blz"] = Blz, + ["at_bankleitzahl"] = AtBankleitzahl, + ["nuban"] = Nuban, + ["se_bankgiro_code"] = SeBankgiroCode, + ["unmapped_value"] = UnmappedValue + }; + + private static readonly ConcurrentDictionary _values = + new ConcurrentDictionary(_knownValues); + + private ClearingCodeValue(string value) + { + if (value == null) throw new ArgumentNullException(nameof(value)); + Value = value; + } + + public string Value { get; } + + public static ClearingCodeValue Of(string value) + { + return _values.GetOrAdd(value, _ => new ClearingCodeValue(value)); + } + + public static implicit operator ClearingCodeValue(string value) => Of(value); + public static implicit operator string(ClearingCodeValue clearingcodevalue) => clearingcodevalue.Value; + + public static ClearingCodeValue[] Values() + { + return _values.Values.ToArray(); + } + + public override string ToString() => Value.ToString(); + + public bool IsKnown() + { + return _knownValues.ContainsKey(Value); + } + + public override bool Equals(object? obj) => Equals(obj as ClearingCodeValue); + + public bool Equals(ClearingCodeValue? other) + { + if (ReferenceEquals(this, other)) return true; + if (other is null) return false; + return string.Equals(Value, other.Value); + } + + public override int GetHashCode() => Value.GetHashCode(); + } + +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/Completion.cs b/src/StackOneHQ/Client/Models/Components/Completion.cs index 7307032d..886740f8 100644 --- a/src/StackOneHQ/Client/Models/Components/Completion.cs +++ b/src/StackOneHQ/Client/Models/Components/Completion.cs @@ -36,6 +36,12 @@ public class Completion [JsonProperty("unified_custom_fields")] public Dictionary? UnifiedCustomFields { get; set; } = null; + /// + /// The external reference of the learning object associated with this completion, this is the main identifier for creating completions. + /// + [JsonProperty("learning_object_external_reference")] + public string? LearningObjectExternalReference { get; set; } = null; + /// /// The external reference associated with this completion /// @@ -85,12 +91,6 @@ public class Completion [JsonProperty("remote_learning_object_id")] public string? RemoteLearningObjectId { get; set; } = null; - /// - /// The external reference of the learning object associated with this completion, this is the main identifier for creating completions. - /// - [JsonProperty("learning_object_external_reference")] - public string? LearningObjectExternalReference { get; set; } = null; - /// /// The user ID associated with this completion /// diff --git a/src/StackOneHQ/Client/Models/Components/CountryCode.cs b/src/StackOneHQ/Client/Models/Components/CountryCode.cs new file mode 100644 index 00000000..9cb79e2c --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/CountryCode.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// The country code where the bank is located + /// + public class CountryCode + { + + /// + /// The ISO3166-1 Alpha2 Code of the Country + /// + [JsonProperty("value")] + public CountryCodeValue? Value { get; set; } = null; + + [JsonProperty("source_value", NullValueHandling = NullValueHandling.Include)] + public CountryCodeSourceValueUnion? SourceValue { get; set; } = null; + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/AccountTypeSourceValueUnion.cs b/src/StackOneHQ/Client/Models/Components/CountryCodeSourceValueUnion.cs similarity index 64% rename from src/StackOneHQ/Client/Models/Components/AccountTypeSourceValueUnion.cs rename to src/StackOneHQ/Client/Models/Components/CountryCodeSourceValueUnion.cs index a1d3031a..d2c94c17 100644 --- a/src/StackOneHQ/Client/Models/Components/AccountTypeSourceValueUnion.cs +++ b/src/StackOneHQ/Client/Models/Components/CountryCodeSourceValueUnion.cs @@ -18,35 +18,35 @@ namespace StackOneHQ.Client.Models.Components using System.Numerics; using System.Reflection; - public class AccountTypeSourceValueUnionType + public class CountryCodeSourceValueUnionType { - private AccountTypeSourceValueUnionType(string value) { Value = value; } + private CountryCodeSourceValueUnionType(string value) { Value = value; } public string Value { get; private set; } - public static AccountTypeSourceValueUnionType Str { get { return new AccountTypeSourceValueUnionType("str"); } } + public static CountryCodeSourceValueUnionType Str { get { return new CountryCodeSourceValueUnionType("str"); } } - public static AccountTypeSourceValueUnionType Number { get { return new AccountTypeSourceValueUnionType("number"); } } + public static CountryCodeSourceValueUnionType Number { get { return new CountryCodeSourceValueUnionType("number"); } } - public static AccountTypeSourceValueUnionType Boolean { get { return new AccountTypeSourceValueUnionType("boolean"); } } + public static CountryCodeSourceValueUnionType Boolean { get { return new CountryCodeSourceValueUnionType("boolean"); } } - public static AccountTypeSourceValueUnionType SourceValueAccountType { get { return new AccountTypeSourceValueUnionType("source_value_account_type"); } } + public static CountryCodeSourceValueUnionType SourceValueCountryCode { get { return new CountryCodeSourceValueUnionType("source_value_country_code"); } } - public static AccountTypeSourceValueUnionType ArrayOfAny { get { return new AccountTypeSourceValueUnionType("arrayOfAny"); } } + public static CountryCodeSourceValueUnionType ArrayOfAny { get { return new CountryCodeSourceValueUnionType("arrayOfAny"); } } - public static AccountTypeSourceValueUnionType Null { get { return new AccountTypeSourceValueUnionType("null"); } } + public static CountryCodeSourceValueUnionType Null { get { return new CountryCodeSourceValueUnionType("null"); } } public override string ToString() { return Value; } - public static implicit operator String(AccountTypeSourceValueUnionType v) { return v.Value; } - public static AccountTypeSourceValueUnionType FromString(string v) { + public static implicit operator String(CountryCodeSourceValueUnionType v) { return v.Value; } + public static CountryCodeSourceValueUnionType FromString(string v) { switch(v) { case "str": return Str; case "number": return Number; case "boolean": return Boolean; - case "source_value_account_type": return SourceValueAccountType; + case "source_value_country_code": return SourceValueCountryCode; case "arrayOfAny": return ArrayOfAny; case "null": return Null; - default: throw new ArgumentException("Invalid value for AccountTypeSourceValueUnionType"); + default: throw new ArgumentException("Invalid value for CountryCodeSourceValueUnionType"); } } public override bool Equals(object? obj) @@ -55,7 +55,7 @@ public override bool Equals(object? obj) { return false; } - return Value.Equals(((AccountTypeSourceValueUnionType)obj).Value); + return Value.Equals(((CountryCodeSourceValueUnionType)obj).Value); } public override int GetHashCode() @@ -65,10 +65,10 @@ public override int GetHashCode() } - [JsonConverter(typeof(AccountTypeSourceValueUnion.AccountTypeSourceValueUnionConverter))] - public class AccountTypeSourceValueUnion + [JsonConverter(typeof(CountryCodeSourceValueUnion.CountryCodeSourceValueUnionConverter))] + public class CountryCodeSourceValueUnion { - public AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType type) + public CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType type) { Type = type; } @@ -83,62 +83,62 @@ public AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType type) public bool? Boolean { get; set; } [SpeakeasyMetadata("form:explode=true")] - public SourceValueAccountType? SourceValueAccountType { get; set; } + public SourceValueCountryCode? SourceValueCountryCode { get; set; } [SpeakeasyMetadata("form:explode=true")] public List? ArrayOfAny { get; set; } - public AccountTypeSourceValueUnionType Type { get; set; } - public static AccountTypeSourceValueUnion CreateStr(string str) + public CountryCodeSourceValueUnionType Type { get; set; } + public static CountryCodeSourceValueUnion CreateStr(string str) { - AccountTypeSourceValueUnionType typ = AccountTypeSourceValueUnionType.Str; + CountryCodeSourceValueUnionType typ = CountryCodeSourceValueUnionType.Str; - AccountTypeSourceValueUnion res = new AccountTypeSourceValueUnion(typ); + CountryCodeSourceValueUnion res = new CountryCodeSourceValueUnion(typ); res.Str = str; return res; } - public static AccountTypeSourceValueUnion CreateNumber(double number) + public static CountryCodeSourceValueUnion CreateNumber(double number) { - AccountTypeSourceValueUnionType typ = AccountTypeSourceValueUnionType.Number; + CountryCodeSourceValueUnionType typ = CountryCodeSourceValueUnionType.Number; - AccountTypeSourceValueUnion res = new AccountTypeSourceValueUnion(typ); + CountryCodeSourceValueUnion res = new CountryCodeSourceValueUnion(typ); res.Number = number; return res; } - public static AccountTypeSourceValueUnion CreateBoolean(bool boolean) + public static CountryCodeSourceValueUnion CreateBoolean(bool boolean) { - AccountTypeSourceValueUnionType typ = AccountTypeSourceValueUnionType.Boolean; + CountryCodeSourceValueUnionType typ = CountryCodeSourceValueUnionType.Boolean; - AccountTypeSourceValueUnion res = new AccountTypeSourceValueUnion(typ); + CountryCodeSourceValueUnion res = new CountryCodeSourceValueUnion(typ); res.Boolean = boolean; return res; } - public static AccountTypeSourceValueUnion CreateSourceValueAccountType(SourceValueAccountType sourceValueAccountType) + public static CountryCodeSourceValueUnion CreateSourceValueCountryCode(SourceValueCountryCode sourceValueCountryCode) { - AccountTypeSourceValueUnionType typ = AccountTypeSourceValueUnionType.SourceValueAccountType; + CountryCodeSourceValueUnionType typ = CountryCodeSourceValueUnionType.SourceValueCountryCode; - AccountTypeSourceValueUnion res = new AccountTypeSourceValueUnion(typ); - res.SourceValueAccountType = sourceValueAccountType; + CountryCodeSourceValueUnion res = new CountryCodeSourceValueUnion(typ); + res.SourceValueCountryCode = sourceValueCountryCode; return res; } - public static AccountTypeSourceValueUnion CreateArrayOfAny(List arrayOfAny) + public static CountryCodeSourceValueUnion CreateArrayOfAny(List arrayOfAny) { - AccountTypeSourceValueUnionType typ = AccountTypeSourceValueUnionType.ArrayOfAny; + CountryCodeSourceValueUnionType typ = CountryCodeSourceValueUnionType.ArrayOfAny; - AccountTypeSourceValueUnion res = new AccountTypeSourceValueUnion(typ); + CountryCodeSourceValueUnion res = new CountryCodeSourceValueUnion(typ); res.ArrayOfAny = arrayOfAny; return res; } - public static AccountTypeSourceValueUnion CreateNull() + public static CountryCodeSourceValueUnion CreateNull() { - AccountTypeSourceValueUnionType typ = AccountTypeSourceValueUnionType.Null; - return new AccountTypeSourceValueUnion(typ); + CountryCodeSourceValueUnionType typ = CountryCodeSourceValueUnionType.Null; + return new CountryCodeSourceValueUnion(typ); } - public class AccountTypeSourceValueUnionConverter : JsonConverter + public class CountryCodeSourceValueUnionConverter : JsonConverter { - public override bool CanConvert(System.Type objectType) => objectType == typeof(AccountTypeSourceValueUnion); + public override bool CanConvert(System.Type objectType) => objectType == typeof(CountryCodeSourceValueUnion); public override bool CanRead => true; @@ -154,14 +154,14 @@ public class AccountTypeSourceValueUnionConverter : JsonConverter try { - return new AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType.SourceValueAccountType) + return new CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType.SourceValueCountryCode) { - SourceValueAccountType = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + SourceValueCountryCode = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(SourceValueAccountType), new AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType.SourceValueAccountType), "SourceValueAccountType")); + fallbackCandidates.Add((typeof(SourceValueCountryCode), new CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType.SourceValueCountryCode), "SourceValueCountryCode")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -173,7 +173,7 @@ public class AccountTypeSourceValueUnionConverter : JsonConverter } if (json[0] == '"' && json[^1] == '"'){ - return new AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType.Str) + return new CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType.Str) { Str = json[1..^1] }; @@ -182,7 +182,7 @@ public class AccountTypeSourceValueUnionConverter : JsonConverter try { var converted = Convert.ToDouble(json); - return new AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType.Number) + return new CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType.Number) { Number = converted }; @@ -195,7 +195,7 @@ public class AccountTypeSourceValueUnionConverter : JsonConverter try { var converted = Convert.ToBoolean(json); - return new AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType.Boolean) + return new CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType.Boolean) { Boolean = converted }; @@ -207,14 +207,14 @@ public class AccountTypeSourceValueUnionConverter : JsonConverter try { - return new AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType.ArrayOfAny) + return new CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType.ArrayOfAny) { ArrayOfAny = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember>(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(List), new AccountTypeSourceValueUnion(AccountTypeSourceValueUnionType.ArrayOfAny), "ArrayOfAny")); + fallbackCandidates.Add((typeof(List), new CountryCodeSourceValueUnion(CountryCodeSourceValueUnionType.ArrayOfAny), "ArrayOfAny")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -256,8 +256,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer return; } - AccountTypeSourceValueUnion res = (AccountTypeSourceValueUnion)value; - if (AccountTypeSourceValueUnionType.FromString(res.Type).Equals(AccountTypeSourceValueUnionType.Null)) + CountryCodeSourceValueUnion res = (CountryCodeSourceValueUnion)value; + if (CountryCodeSourceValueUnionType.FromString(res.Type).Equals(CountryCodeSourceValueUnionType.Null)) { writer.WriteRawValue("null"); return; @@ -281,9 +281,9 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer return; } - if (res.SourceValueAccountType != null) + if (res.SourceValueCountryCode != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.SourceValueAccountType)); + writer.WriteRawValue(Utilities.SerializeJSON(res.SourceValueCountryCode)); return; } diff --git a/src/StackOneHQ/Client/Models/Components/CountryCodeValue.cs b/src/StackOneHQ/Client/Models/Components/CountryCodeValue.cs new file mode 100644 index 00000000..161a6d2b --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/CountryCodeValue.cs @@ -0,0 +1,572 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// The ISO3166-1 Alpha2 Code of the Country + /// + [JsonConverter(typeof(OpenEnumConverter))] + public class CountryCodeValue : IEquatable + { + public static readonly CountryCodeValue Af = new CountryCodeValue("AF"); + public static readonly CountryCodeValue Al = new CountryCodeValue("AL"); + public static readonly CountryCodeValue Dz = new CountryCodeValue("DZ"); + public static readonly CountryCodeValue As = new CountryCodeValue("AS"); + public static readonly CountryCodeValue Ad = new CountryCodeValue("AD"); + public static readonly CountryCodeValue Ao = new CountryCodeValue("AO"); + public static readonly CountryCodeValue Ai = new CountryCodeValue("AI"); + public static readonly CountryCodeValue Aq = new CountryCodeValue("AQ"); + public static readonly CountryCodeValue Ag = new CountryCodeValue("AG"); + public static readonly CountryCodeValue Ar = new CountryCodeValue("AR"); + public static readonly CountryCodeValue Am = new CountryCodeValue("AM"); + public static readonly CountryCodeValue Aw = new CountryCodeValue("AW"); + public static readonly CountryCodeValue Au = new CountryCodeValue("AU"); + public static readonly CountryCodeValue At = new CountryCodeValue("AT"); + public static readonly CountryCodeValue Az = new CountryCodeValue("AZ"); + public static readonly CountryCodeValue Bs = new CountryCodeValue("BS"); + public static readonly CountryCodeValue Bh = new CountryCodeValue("BH"); + public static readonly CountryCodeValue Bd = new CountryCodeValue("BD"); + public static readonly CountryCodeValue Bb = new CountryCodeValue("BB"); + public static readonly CountryCodeValue By = new CountryCodeValue("BY"); + public static readonly CountryCodeValue Be = new CountryCodeValue("BE"); + public static readonly CountryCodeValue Bz = new CountryCodeValue("BZ"); + public static readonly CountryCodeValue Bj = new CountryCodeValue("BJ"); + public static readonly CountryCodeValue Bm = new CountryCodeValue("BM"); + public static readonly CountryCodeValue Bt = new CountryCodeValue("BT"); + public static readonly CountryCodeValue Bo = new CountryCodeValue("BO"); + public static readonly CountryCodeValue Bq = new CountryCodeValue("BQ"); + public static readonly CountryCodeValue Ba = new CountryCodeValue("BA"); + public static readonly CountryCodeValue Bw = new CountryCodeValue("BW"); + public static readonly CountryCodeValue Bv = new CountryCodeValue("BV"); + public static readonly CountryCodeValue Br = new CountryCodeValue("BR"); + public static readonly CountryCodeValue Io = new CountryCodeValue("IO"); + public static readonly CountryCodeValue Bn = new CountryCodeValue("BN"); + public static readonly CountryCodeValue Bg = new CountryCodeValue("BG"); + public static readonly CountryCodeValue Bf = new CountryCodeValue("BF"); + public static readonly CountryCodeValue Bi = new CountryCodeValue("BI"); + public static readonly CountryCodeValue Kh = new CountryCodeValue("KH"); + public static readonly CountryCodeValue Cm = new CountryCodeValue("CM"); + public static readonly CountryCodeValue Ca = new CountryCodeValue("CA"); + public static readonly CountryCodeValue Cv = new CountryCodeValue("CV"); + public static readonly CountryCodeValue Ky = new CountryCodeValue("KY"); + public static readonly CountryCodeValue Cf = new CountryCodeValue("CF"); + public static readonly CountryCodeValue Td = new CountryCodeValue("TD"); + public static readonly CountryCodeValue Cl = new CountryCodeValue("CL"); + public static readonly CountryCodeValue Cn = new CountryCodeValue("CN"); + public static readonly CountryCodeValue Cx = new CountryCodeValue("CX"); + public static readonly CountryCodeValue Cc = new CountryCodeValue("CC"); + public static readonly CountryCodeValue Co = new CountryCodeValue("CO"); + public static readonly CountryCodeValue Km = new CountryCodeValue("KM"); + public static readonly CountryCodeValue Cg = new CountryCodeValue("CG"); + public static readonly CountryCodeValue Cd = new CountryCodeValue("CD"); + public static readonly CountryCodeValue Ck = new CountryCodeValue("CK"); + public static readonly CountryCodeValue Cr = new CountryCodeValue("CR"); + public static readonly CountryCodeValue Hr = new CountryCodeValue("HR"); + public static readonly CountryCodeValue Cu = new CountryCodeValue("CU"); + public static readonly CountryCodeValue Cw = new CountryCodeValue("CW"); + public static readonly CountryCodeValue Cy = new CountryCodeValue("CY"); + public static readonly CountryCodeValue Cz = new CountryCodeValue("CZ"); + public static readonly CountryCodeValue Ci = new CountryCodeValue("CI"); + public static readonly CountryCodeValue Dk = new CountryCodeValue("DK"); + public static readonly CountryCodeValue Dj = new CountryCodeValue("DJ"); + public static readonly CountryCodeValue Dm = new CountryCodeValue("DM"); + public static readonly CountryCodeValue Do = new CountryCodeValue("DO"); + public static readonly CountryCodeValue Ec = new CountryCodeValue("EC"); + public static readonly CountryCodeValue Eg = new CountryCodeValue("EG"); + public static readonly CountryCodeValue Sv = new CountryCodeValue("SV"); + public static readonly CountryCodeValue Gq = new CountryCodeValue("GQ"); + public static readonly CountryCodeValue Er = new CountryCodeValue("ER"); + public static readonly CountryCodeValue Ee = new CountryCodeValue("EE"); + public static readonly CountryCodeValue Et = new CountryCodeValue("ET"); + public static readonly CountryCodeValue Fk = new CountryCodeValue("FK"); + public static readonly CountryCodeValue Fo = new CountryCodeValue("FO"); + public static readonly CountryCodeValue Fj = new CountryCodeValue("FJ"); + public static readonly CountryCodeValue Fi = new CountryCodeValue("FI"); + public static readonly CountryCodeValue Fr = new CountryCodeValue("FR"); + public static readonly CountryCodeValue Gf = new CountryCodeValue("GF"); + public static readonly CountryCodeValue Pf = new CountryCodeValue("PF"); + public static readonly CountryCodeValue Tf = new CountryCodeValue("TF"); + public static readonly CountryCodeValue Ga = new CountryCodeValue("GA"); + public static readonly CountryCodeValue Gm = new CountryCodeValue("GM"); + public static readonly CountryCodeValue Ge = new CountryCodeValue("GE"); + public static readonly CountryCodeValue De = new CountryCodeValue("DE"); + public static readonly CountryCodeValue Gh = new CountryCodeValue("GH"); + public static readonly CountryCodeValue Gi = new CountryCodeValue("GI"); + public static readonly CountryCodeValue Gr = new CountryCodeValue("GR"); + public static readonly CountryCodeValue Gl = new CountryCodeValue("GL"); + public static readonly CountryCodeValue Gd = new CountryCodeValue("GD"); + public static readonly CountryCodeValue Gp = new CountryCodeValue("GP"); + public static readonly CountryCodeValue Gu = new CountryCodeValue("GU"); + public static readonly CountryCodeValue Gt = new CountryCodeValue("GT"); + public static readonly CountryCodeValue Gg = new CountryCodeValue("GG"); + public static readonly CountryCodeValue Gn = new CountryCodeValue("GN"); + public static readonly CountryCodeValue Gw = new CountryCodeValue("GW"); + public static readonly CountryCodeValue Gy = new CountryCodeValue("GY"); + public static readonly CountryCodeValue Ht = new CountryCodeValue("HT"); + public static readonly CountryCodeValue Hm = new CountryCodeValue("HM"); + public static readonly CountryCodeValue Va = new CountryCodeValue("VA"); + public static readonly CountryCodeValue Hn = new CountryCodeValue("HN"); + public static readonly CountryCodeValue Hk = new CountryCodeValue("HK"); + public static readonly CountryCodeValue Hu = new CountryCodeValue("HU"); + public static readonly CountryCodeValue Is = new CountryCodeValue("IS"); + public static readonly CountryCodeValue In = new CountryCodeValue("IN"); + public static readonly CountryCodeValue Id = new CountryCodeValue("ID"); + public static readonly CountryCodeValue Ir = new CountryCodeValue("IR"); + public static readonly CountryCodeValue Iq = new CountryCodeValue("IQ"); + public static readonly CountryCodeValue Ie = new CountryCodeValue("IE"); + public static readonly CountryCodeValue Im = new CountryCodeValue("IM"); + public static readonly CountryCodeValue Il = new CountryCodeValue("IL"); + public static readonly CountryCodeValue It = new CountryCodeValue("IT"); + public static readonly CountryCodeValue Jm = new CountryCodeValue("JM"); + public static readonly CountryCodeValue Jp = new CountryCodeValue("JP"); + public static readonly CountryCodeValue Je = new CountryCodeValue("JE"); + public static readonly CountryCodeValue Jo = new CountryCodeValue("JO"); + public static readonly CountryCodeValue Kz = new CountryCodeValue("KZ"); + public static readonly CountryCodeValue Ke = new CountryCodeValue("KE"); + public static readonly CountryCodeValue Ki = new CountryCodeValue("KI"); + public static readonly CountryCodeValue Kp = new CountryCodeValue("KP"); + public static readonly CountryCodeValue Kr = new CountryCodeValue("KR"); + public static readonly CountryCodeValue Kw = new CountryCodeValue("KW"); + public static readonly CountryCodeValue Kg = new CountryCodeValue("KG"); + public static readonly CountryCodeValue La = new CountryCodeValue("LA"); + public static readonly CountryCodeValue Lv = new CountryCodeValue("LV"); + public static readonly CountryCodeValue Lb = new CountryCodeValue("LB"); + public static readonly CountryCodeValue Ls = new CountryCodeValue("LS"); + public static readonly CountryCodeValue Lr = new CountryCodeValue("LR"); + public static readonly CountryCodeValue Ly = new CountryCodeValue("LY"); + public static readonly CountryCodeValue Li = new CountryCodeValue("LI"); + public static readonly CountryCodeValue Lt = new CountryCodeValue("LT"); + public static readonly CountryCodeValue Lu = new CountryCodeValue("LU"); + public static readonly CountryCodeValue Mo = new CountryCodeValue("MO"); + public static readonly CountryCodeValue Mk = new CountryCodeValue("MK"); + public static readonly CountryCodeValue Mg = new CountryCodeValue("MG"); + public static readonly CountryCodeValue Mw = new CountryCodeValue("MW"); + public static readonly CountryCodeValue My = new CountryCodeValue("MY"); + public static readonly CountryCodeValue Mv = new CountryCodeValue("MV"); + public static readonly CountryCodeValue Ml = new CountryCodeValue("ML"); + public static readonly CountryCodeValue Mt = new CountryCodeValue("MT"); + public static readonly CountryCodeValue Mh = new CountryCodeValue("MH"); + public static readonly CountryCodeValue Mq = new CountryCodeValue("MQ"); + public static readonly CountryCodeValue Mr = new CountryCodeValue("MR"); + public static readonly CountryCodeValue Mu = new CountryCodeValue("MU"); + public static readonly CountryCodeValue Yt = new CountryCodeValue("YT"); + public static readonly CountryCodeValue Mx = new CountryCodeValue("MX"); + public static readonly CountryCodeValue Fm = new CountryCodeValue("FM"); + public static readonly CountryCodeValue Md = new CountryCodeValue("MD"); + public static readonly CountryCodeValue Mc = new CountryCodeValue("MC"); + public static readonly CountryCodeValue Mn = new CountryCodeValue("MN"); + public static readonly CountryCodeValue Me = new CountryCodeValue("ME"); + public static readonly CountryCodeValue Ms = new CountryCodeValue("MS"); + public static readonly CountryCodeValue Ma = new CountryCodeValue("MA"); + public static readonly CountryCodeValue Mz = new CountryCodeValue("MZ"); + public static readonly CountryCodeValue Mm = new CountryCodeValue("MM"); + public static readonly CountryCodeValue Na = new CountryCodeValue("NA"); + public static readonly CountryCodeValue Nr = new CountryCodeValue("NR"); + public static readonly CountryCodeValue Np = new CountryCodeValue("NP"); + public static readonly CountryCodeValue Nl = new CountryCodeValue("NL"); + public static readonly CountryCodeValue Nc = new CountryCodeValue("NC"); + public static readonly CountryCodeValue Nz = new CountryCodeValue("NZ"); + public static readonly CountryCodeValue Ni = new CountryCodeValue("NI"); + public static readonly CountryCodeValue Ne = new CountryCodeValue("NE"); + public static readonly CountryCodeValue Ng = new CountryCodeValue("NG"); + public static readonly CountryCodeValue Nu = new CountryCodeValue("NU"); + public static readonly CountryCodeValue Nf = new CountryCodeValue("NF"); + public static readonly CountryCodeValue Mp = new CountryCodeValue("MP"); + public static readonly CountryCodeValue No = new CountryCodeValue("NO"); + public static readonly CountryCodeValue Om = new CountryCodeValue("OM"); + public static readonly CountryCodeValue Pk = new CountryCodeValue("PK"); + public static readonly CountryCodeValue Pw = new CountryCodeValue("PW"); + public static readonly CountryCodeValue Ps = new CountryCodeValue("PS"); + public static readonly CountryCodeValue Pa = new CountryCodeValue("PA"); + public static readonly CountryCodeValue Pg = new CountryCodeValue("PG"); + public static readonly CountryCodeValue Py = new CountryCodeValue("PY"); + public static readonly CountryCodeValue Pe = new CountryCodeValue("PE"); + public static readonly CountryCodeValue Ph = new CountryCodeValue("PH"); + public static readonly CountryCodeValue Pn = new CountryCodeValue("PN"); + public static readonly CountryCodeValue Pl = new CountryCodeValue("PL"); + public static readonly CountryCodeValue Pt = new CountryCodeValue("PT"); + public static readonly CountryCodeValue Pr = new CountryCodeValue("PR"); + public static readonly CountryCodeValue Qa = new CountryCodeValue("QA"); + public static readonly CountryCodeValue Ro = new CountryCodeValue("RO"); + public static readonly CountryCodeValue Ru = new CountryCodeValue("RU"); + public static readonly CountryCodeValue Rw = new CountryCodeValue("RW"); + public static readonly CountryCodeValue Re = new CountryCodeValue("RE"); + public static readonly CountryCodeValue Bl = new CountryCodeValue("BL"); + public static readonly CountryCodeValue Sh = new CountryCodeValue("SH"); + public static readonly CountryCodeValue Kn = new CountryCodeValue("KN"); + public static readonly CountryCodeValue Lc = new CountryCodeValue("LC"); + public static readonly CountryCodeValue Mf = new CountryCodeValue("MF"); + public static readonly CountryCodeValue Pm = new CountryCodeValue("PM"); + public static readonly CountryCodeValue Vc = new CountryCodeValue("VC"); + public static readonly CountryCodeValue Ws = new CountryCodeValue("WS"); + public static readonly CountryCodeValue Sm = new CountryCodeValue("SM"); + public static readonly CountryCodeValue St = new CountryCodeValue("ST"); + public static readonly CountryCodeValue Sa = new CountryCodeValue("SA"); + public static readonly CountryCodeValue Sn = new CountryCodeValue("SN"); + public static readonly CountryCodeValue Rs = new CountryCodeValue("RS"); + public static readonly CountryCodeValue Sc = new CountryCodeValue("SC"); + public static readonly CountryCodeValue Sl = new CountryCodeValue("SL"); + public static readonly CountryCodeValue Sg = new CountryCodeValue("SG"); + public static readonly CountryCodeValue Sx = new CountryCodeValue("SX"); + public static readonly CountryCodeValue Sk = new CountryCodeValue("SK"); + public static readonly CountryCodeValue Si = new CountryCodeValue("SI"); + public static readonly CountryCodeValue Sb = new CountryCodeValue("SB"); + public static readonly CountryCodeValue So = new CountryCodeValue("SO"); + public static readonly CountryCodeValue Za = new CountryCodeValue("ZA"); + public static readonly CountryCodeValue Gs = new CountryCodeValue("GS"); + public static readonly CountryCodeValue Ss = new CountryCodeValue("SS"); + public static readonly CountryCodeValue Es = new CountryCodeValue("ES"); + public static readonly CountryCodeValue Lk = new CountryCodeValue("LK"); + public static readonly CountryCodeValue Sd = new CountryCodeValue("SD"); + public static readonly CountryCodeValue Sr = new CountryCodeValue("SR"); + public static readonly CountryCodeValue Sj = new CountryCodeValue("SJ"); + public static readonly CountryCodeValue Sz = new CountryCodeValue("SZ"); + public static readonly CountryCodeValue Se = new CountryCodeValue("SE"); + public static readonly CountryCodeValue Ch = new CountryCodeValue("CH"); + public static readonly CountryCodeValue Sy = new CountryCodeValue("SY"); + public static readonly CountryCodeValue Tw = new CountryCodeValue("TW"); + public static readonly CountryCodeValue Tj = new CountryCodeValue("TJ"); + public static readonly CountryCodeValue Tz = new CountryCodeValue("TZ"); + public static readonly CountryCodeValue Th = new CountryCodeValue("TH"); + public static readonly CountryCodeValue Tl = new CountryCodeValue("TL"); + public static readonly CountryCodeValue Tg = new CountryCodeValue("TG"); + public static readonly CountryCodeValue Tk = new CountryCodeValue("TK"); + public static readonly CountryCodeValue To = new CountryCodeValue("TO"); + public static readonly CountryCodeValue Tt = new CountryCodeValue("TT"); + public static readonly CountryCodeValue Tn = new CountryCodeValue("TN"); + public static readonly CountryCodeValue Tr = new CountryCodeValue("TR"); + public static readonly CountryCodeValue Tm = new CountryCodeValue("TM"); + public static readonly CountryCodeValue Tc = new CountryCodeValue("TC"); + public static readonly CountryCodeValue Tv = new CountryCodeValue("TV"); + public static readonly CountryCodeValue Ug = new CountryCodeValue("UG"); + public static readonly CountryCodeValue Ua = new CountryCodeValue("UA"); + public static readonly CountryCodeValue Ae = new CountryCodeValue("AE"); + public static readonly CountryCodeValue Gb = new CountryCodeValue("GB"); + public static readonly CountryCodeValue Us = new CountryCodeValue("US"); + public static readonly CountryCodeValue Um = new CountryCodeValue("UM"); + public static readonly CountryCodeValue Uy = new CountryCodeValue("UY"); + public static readonly CountryCodeValue Uz = new CountryCodeValue("UZ"); + public static readonly CountryCodeValue Vu = new CountryCodeValue("VU"); + public static readonly CountryCodeValue Ve = new CountryCodeValue("VE"); + public static readonly CountryCodeValue Vn = new CountryCodeValue("VN"); + public static readonly CountryCodeValue Vg = new CountryCodeValue("VG"); + public static readonly CountryCodeValue Vi = new CountryCodeValue("VI"); + public static readonly CountryCodeValue Wf = new CountryCodeValue("WF"); + public static readonly CountryCodeValue Eh = new CountryCodeValue("EH"); + public static readonly CountryCodeValue Ye = new CountryCodeValue("YE"); + public static readonly CountryCodeValue Zm = new CountryCodeValue("ZM"); + public static readonly CountryCodeValue Zw = new CountryCodeValue("ZW"); + public static readonly CountryCodeValue UnmappedValue = new CountryCodeValue("unmapped_value"); + + private static readonly Dictionary _knownValues = + new Dictionary () + { + ["AF"] = Af, + ["AL"] = Al, + ["DZ"] = Dz, + ["AS"] = As, + ["AD"] = Ad, + ["AO"] = Ao, + ["AI"] = Ai, + ["AQ"] = Aq, + ["AG"] = Ag, + ["AR"] = Ar, + ["AM"] = Am, + ["AW"] = Aw, + ["AU"] = Au, + ["AT"] = At, + ["AZ"] = Az, + ["BS"] = Bs, + ["BH"] = Bh, + ["BD"] = Bd, + ["BB"] = Bb, + ["BY"] = By, + ["BE"] = Be, + ["BZ"] = Bz, + ["BJ"] = Bj, + ["BM"] = Bm, + ["BT"] = Bt, + ["BO"] = Bo, + ["BQ"] = Bq, + ["BA"] = Ba, + ["BW"] = Bw, + ["BV"] = Bv, + ["BR"] = Br, + ["IO"] = Io, + ["BN"] = Bn, + ["BG"] = Bg, + ["BF"] = Bf, + ["BI"] = Bi, + ["KH"] = Kh, + ["CM"] = Cm, + ["CA"] = Ca, + ["CV"] = Cv, + ["KY"] = Ky, + ["CF"] = Cf, + ["TD"] = Td, + ["CL"] = Cl, + ["CN"] = Cn, + ["CX"] = Cx, + ["CC"] = Cc, + ["CO"] = Co, + ["KM"] = Km, + ["CG"] = Cg, + ["CD"] = Cd, + ["CK"] = Ck, + ["CR"] = Cr, + ["HR"] = Hr, + ["CU"] = Cu, + ["CW"] = Cw, + ["CY"] = Cy, + ["CZ"] = Cz, + ["CI"] = Ci, + ["DK"] = Dk, + ["DJ"] = Dj, + ["DM"] = Dm, + ["DO"] = Do, + ["EC"] = Ec, + ["EG"] = Eg, + ["SV"] = Sv, + ["GQ"] = Gq, + ["ER"] = Er, + ["EE"] = Ee, + ["ET"] = Et, + ["FK"] = Fk, + ["FO"] = Fo, + ["FJ"] = Fj, + ["FI"] = Fi, + ["FR"] = Fr, + ["GF"] = Gf, + ["PF"] = Pf, + ["TF"] = Tf, + ["GA"] = Ga, + ["GM"] = Gm, + ["GE"] = Ge, + ["DE"] = De, + ["GH"] = Gh, + ["GI"] = Gi, + ["GR"] = Gr, + ["GL"] = Gl, + ["GD"] = Gd, + ["GP"] = Gp, + ["GU"] = Gu, + ["GT"] = Gt, + ["GG"] = Gg, + ["GN"] = Gn, + ["GW"] = Gw, + ["GY"] = Gy, + ["HT"] = Ht, + ["HM"] = Hm, + ["VA"] = Va, + ["HN"] = Hn, + ["HK"] = Hk, + ["HU"] = Hu, + ["IS"] = Is, + ["IN"] = In, + ["ID"] = Id, + ["IR"] = Ir, + ["IQ"] = Iq, + ["IE"] = Ie, + ["IM"] = Im, + ["IL"] = Il, + ["IT"] = It, + ["JM"] = Jm, + ["JP"] = Jp, + ["JE"] = Je, + ["JO"] = Jo, + ["KZ"] = Kz, + ["KE"] = Ke, + ["KI"] = Ki, + ["KP"] = Kp, + ["KR"] = Kr, + ["KW"] = Kw, + ["KG"] = Kg, + ["LA"] = La, + ["LV"] = Lv, + ["LB"] = Lb, + ["LS"] = Ls, + ["LR"] = Lr, + ["LY"] = Ly, + ["LI"] = Li, + ["LT"] = Lt, + ["LU"] = Lu, + ["MO"] = Mo, + ["MK"] = Mk, + ["MG"] = Mg, + ["MW"] = Mw, + ["MY"] = My, + ["MV"] = Mv, + ["ML"] = Ml, + ["MT"] = Mt, + ["MH"] = Mh, + ["MQ"] = Mq, + ["MR"] = Mr, + ["MU"] = Mu, + ["YT"] = Yt, + ["MX"] = Mx, + ["FM"] = Fm, + ["MD"] = Md, + ["MC"] = Mc, + ["MN"] = Mn, + ["ME"] = Me, + ["MS"] = Ms, + ["MA"] = Ma, + ["MZ"] = Mz, + ["MM"] = Mm, + ["NA"] = Na, + ["NR"] = Nr, + ["NP"] = Np, + ["NL"] = Nl, + ["NC"] = Nc, + ["NZ"] = Nz, + ["NI"] = Ni, + ["NE"] = Ne, + ["NG"] = Ng, + ["NU"] = Nu, + ["NF"] = Nf, + ["MP"] = Mp, + ["NO"] = No, + ["OM"] = Om, + ["PK"] = Pk, + ["PW"] = Pw, + ["PS"] = Ps, + ["PA"] = Pa, + ["PG"] = Pg, + ["PY"] = Py, + ["PE"] = Pe, + ["PH"] = Ph, + ["PN"] = Pn, + ["PL"] = Pl, + ["PT"] = Pt, + ["PR"] = Pr, + ["QA"] = Qa, + ["RO"] = Ro, + ["RU"] = Ru, + ["RW"] = Rw, + ["RE"] = Re, + ["BL"] = Bl, + ["SH"] = Sh, + ["KN"] = Kn, + ["LC"] = Lc, + ["MF"] = Mf, + ["PM"] = Pm, + ["VC"] = Vc, + ["WS"] = Ws, + ["SM"] = Sm, + ["ST"] = St, + ["SA"] = Sa, + ["SN"] = Sn, + ["RS"] = Rs, + ["SC"] = Sc, + ["SL"] = Sl, + ["SG"] = Sg, + ["SX"] = Sx, + ["SK"] = Sk, + ["SI"] = Si, + ["SB"] = Sb, + ["SO"] = So, + ["ZA"] = Za, + ["GS"] = Gs, + ["SS"] = Ss, + ["ES"] = Es, + ["LK"] = Lk, + ["SD"] = Sd, + ["SR"] = Sr, + ["SJ"] = Sj, + ["SZ"] = Sz, + ["SE"] = Se, + ["CH"] = Ch, + ["SY"] = Sy, + ["TW"] = Tw, + ["TJ"] = Tj, + ["TZ"] = Tz, + ["TH"] = Th, + ["TL"] = Tl, + ["TG"] = Tg, + ["TK"] = Tk, + ["TO"] = To, + ["TT"] = Tt, + ["TN"] = Tn, + ["TR"] = Tr, + ["TM"] = Tm, + ["TC"] = Tc, + ["TV"] = Tv, + ["UG"] = Ug, + ["UA"] = Ua, + ["AE"] = Ae, + ["GB"] = Gb, + ["US"] = Us, + ["UM"] = Um, + ["UY"] = Uy, + ["UZ"] = Uz, + ["VU"] = Vu, + ["VE"] = Ve, + ["VN"] = Vn, + ["VG"] = Vg, + ["VI"] = Vi, + ["WF"] = Wf, + ["EH"] = Eh, + ["YE"] = Ye, + ["ZM"] = Zm, + ["ZW"] = Zw, + ["unmapped_value"] = UnmappedValue + }; + + private static readonly ConcurrentDictionary _values = + new ConcurrentDictionary(_knownValues); + + private CountryCodeValue(string value) + { + if (value == null) throw new ArgumentNullException(nameof(value)); + Value = value; + } + + public string Value { get; } + + public static CountryCodeValue Of(string value) + { + return _values.GetOrAdd(value, _ => new CountryCodeValue(value)); + } + + public static implicit operator CountryCodeValue(string value) => Of(value); + public static implicit operator string(CountryCodeValue countrycodevalue) => countrycodevalue.Value; + + public static CountryCodeValue[] Values() + { + return _values.Values.ToArray(); + } + + public override string ToString() => Value.ToString(); + + public bool IsKnown() + { + return _knownValues.ContainsKey(Value); + } + + public override bool Equals(object? obj) => Equals(obj as CountryCodeValue); + + public bool Equals(CountryCodeValue? other) + { + if (ReferenceEquals(this, other)) return true; + if (other is null) return false; + return string.Equals(Value, other.Value); + } + + public override int GetHashCode() => Value.GetHashCode(); + } + +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/Employee.cs b/src/StackOneHQ/Client/Models/Components/Employee.cs index 334034be..1fd5fd72 100644 --- a/src/StackOneHQ/Client/Models/Components/Employee.cs +++ b/src/StackOneHQ/Client/Models/Components/Employee.cs @@ -310,6 +310,12 @@ public class Employee [JsonProperty("employee_number")] public string? EmployeeNumber { get; set; } = null; + /// + /// Bank account details for the employee + /// + [JsonProperty("bank_details")] + public List? BankDetails { get; set; } = null; + /// /// The national identity number /// diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetails.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetails.cs new file mode 100644 index 00000000..1b27e868 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetails.cs @@ -0,0 +1,92 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System.Collections.Generic; + + public class HRISBankDetails + { + + /// + /// Unique identifier + /// + [JsonProperty("id")] + public string? Id { get; set; } = null; + + /// + /// Provider's unique identifier + /// + [JsonProperty("remote_id")] + public string? RemoteId { get; set; } = null; + + /// + /// The name of the bank account + /// + [JsonProperty("account_name")] + public string? AccountName { get; set; } = null; + + /// + /// Whether this is the primary bank account + /// + [JsonProperty("is_primary")] + public bool? IsPrimary { get; set; } = null; + + /// + /// The country code where the bank is located + /// + [JsonProperty("country_code")] + public CountryCode? CountryCode { get; set; } = null; + + /// + /// The currency code for the account + /// + [JsonProperty("currency_code")] + public HRISBankDetailsCurrencyCode? CurrencyCode { get; set; } = null; + + /// + /// The name of the bank + /// + [JsonProperty("bank_name")] + public string? BankName { get; set; } = null; + + /// + /// The type of bank account + /// + [JsonProperty("account_type")] + public HRISBankDetailsAccountType? AccountType { get; set; } = null; + + /// + /// International Bank Account Number (IBAN) + /// + [JsonProperty("iban")] + public string? Iban { get; set; } = null; + + /// + /// Local account number (used when IBAN is not available) + /// + [JsonProperty("local_account_number")] + public string? LocalAccountNumber { get; set; } = null; + + /// + /// SWIFT/BIC code for international transfers + /// + [JsonProperty("swift_bic")] + public string? SwiftBic { get; set; } = null; + + /// + /// Array of clearing codes required by the country + /// + [JsonProperty("clearing_codes")] + public List? ClearingCodes { get; set; } = null; + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountType.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountType.cs new file mode 100644 index 00000000..1ae3645d --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountType.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// The type of bank account + /// + public class HRISBankDetailsAccountType + { + + /// + /// The type of bank account + /// + [JsonProperty("value")] + public HRISBankDetailsAccountTypeValue? Value { get; set; } = null; + + [JsonProperty("source_value", NullValueHandling = NullValueHandling.Include)] + public HRISBankDetailsAccountTypeSourceValueUnion? SourceValue { get; set; } = null; + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.cs new file mode 100644 index 00000000..6b4a1385 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeSourceValueUnion.cs @@ -0,0 +1,300 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Generic; + using System.Numerics; + using System.Reflection; + + public class HRISBankDetailsAccountTypeSourceValueUnionType + { + private HRISBankDetailsAccountTypeSourceValueUnionType(string value) { Value = value; } + + public string Value { get; private set; } + + public static HRISBankDetailsAccountTypeSourceValueUnionType Str { get { return new HRISBankDetailsAccountTypeSourceValueUnionType("str"); } } + + public static HRISBankDetailsAccountTypeSourceValueUnionType Number { get { return new HRISBankDetailsAccountTypeSourceValueUnionType("number"); } } + + public static HRISBankDetailsAccountTypeSourceValueUnionType Boolean { get { return new HRISBankDetailsAccountTypeSourceValueUnionType("boolean"); } } + + public static HRISBankDetailsAccountTypeSourceValueUnionType HRISBankDetailsSourceValueAccountType { get { return new HRISBankDetailsAccountTypeSourceValueUnionType("HRISBankDetails_source_value_account_type"); } } + + public static HRISBankDetailsAccountTypeSourceValueUnionType ArrayOfAny { get { return new HRISBankDetailsAccountTypeSourceValueUnionType("arrayOfAny"); } } + + public static HRISBankDetailsAccountTypeSourceValueUnionType Null { get { return new HRISBankDetailsAccountTypeSourceValueUnionType("null"); } } + + public override string ToString() { return Value; } + public static implicit operator String(HRISBankDetailsAccountTypeSourceValueUnionType v) { return v.Value; } + public static HRISBankDetailsAccountTypeSourceValueUnionType FromString(string v) { + switch(v) { + case "str": return Str; + case "number": return Number; + case "boolean": return Boolean; + case "HRISBankDetails_source_value_account_type": return HRISBankDetailsSourceValueAccountType; + case "arrayOfAny": return ArrayOfAny; + case "null": return Null; + default: throw new ArgumentException("Invalid value for HRISBankDetailsAccountTypeSourceValueUnionType"); + } + } + public override bool Equals(object? obj) + { + if (obj == null || GetType() != obj.GetType()) + { + return false; + } + return Value.Equals(((HRISBankDetailsAccountTypeSourceValueUnionType)obj).Value); + } + + public override int GetHashCode() + { + return Value.GetHashCode(); + } + } + + + [JsonConverter(typeof(HRISBankDetailsAccountTypeSourceValueUnion.HRISBankDetailsAccountTypeSourceValueUnionConverter))] + public class HRISBankDetailsAccountTypeSourceValueUnion + { + public HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType type) + { + Type = type; + } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public double? Number { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public bool? Boolean { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public HRISBankDetailsSourceValueAccountType? HRISBankDetailsSourceValueAccountType { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public List? ArrayOfAny { get; set; } + + public HRISBankDetailsAccountTypeSourceValueUnionType Type { get; set; } + public static HRISBankDetailsAccountTypeSourceValueUnion CreateStr(string str) + { + HRISBankDetailsAccountTypeSourceValueUnionType typ = HRISBankDetailsAccountTypeSourceValueUnionType.Str; + + HRISBankDetailsAccountTypeSourceValueUnion res = new HRISBankDetailsAccountTypeSourceValueUnion(typ); + res.Str = str; + return res; + } + public static HRISBankDetailsAccountTypeSourceValueUnion CreateNumber(double number) + { + HRISBankDetailsAccountTypeSourceValueUnionType typ = HRISBankDetailsAccountTypeSourceValueUnionType.Number; + + HRISBankDetailsAccountTypeSourceValueUnion res = new HRISBankDetailsAccountTypeSourceValueUnion(typ); + res.Number = number; + return res; + } + public static HRISBankDetailsAccountTypeSourceValueUnion CreateBoolean(bool boolean) + { + HRISBankDetailsAccountTypeSourceValueUnionType typ = HRISBankDetailsAccountTypeSourceValueUnionType.Boolean; + + HRISBankDetailsAccountTypeSourceValueUnion res = new HRISBankDetailsAccountTypeSourceValueUnion(typ); + res.Boolean = boolean; + return res; + } + public static HRISBankDetailsAccountTypeSourceValueUnion CreateHRISBankDetailsSourceValueAccountType(HRISBankDetailsSourceValueAccountType hrisBankDetailsSourceValueAccountType) + { + HRISBankDetailsAccountTypeSourceValueUnionType typ = HRISBankDetailsAccountTypeSourceValueUnionType.HRISBankDetailsSourceValueAccountType; + + HRISBankDetailsAccountTypeSourceValueUnion res = new HRISBankDetailsAccountTypeSourceValueUnion(typ); + res.HRISBankDetailsSourceValueAccountType = hrisBankDetailsSourceValueAccountType; + return res; + } + public static HRISBankDetailsAccountTypeSourceValueUnion CreateArrayOfAny(List arrayOfAny) + { + HRISBankDetailsAccountTypeSourceValueUnionType typ = HRISBankDetailsAccountTypeSourceValueUnionType.ArrayOfAny; + + HRISBankDetailsAccountTypeSourceValueUnion res = new HRISBankDetailsAccountTypeSourceValueUnion(typ); + res.ArrayOfAny = arrayOfAny; + return res; + } + + public static HRISBankDetailsAccountTypeSourceValueUnion CreateNull() + { + HRISBankDetailsAccountTypeSourceValueUnionType typ = HRISBankDetailsAccountTypeSourceValueUnionType.Null; + return new HRISBankDetailsAccountTypeSourceValueUnion(typ); + } + + public class HRISBankDetailsAccountTypeSourceValueUnionConverter : JsonConverter + { + public override bool CanConvert(System.Type objectType) => objectType == typeof(HRISBankDetailsAccountTypeSourceValueUnion); + + public override bool CanRead => true; + + public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.Null) + { + return null; + } + + var json = JRaw.Create(reader).ToString(); + var fallbackCandidates = new List<(System.Type, object, string)>(); + + try + { + return new HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType.HRISBankDetailsSourceValueAccountType) + { + HRISBankDetailsSourceValueAccountType = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(HRISBankDetailsSourceValueAccountType), new HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType.HRISBankDetailsSourceValueAccountType), "HRISBankDetailsSourceValueAccountType")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (json[0] == '"' && json[^1] == '"'){ + return new HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType.Str) + { + Str = json[1..^1] + }; + } + + try + { + var converted = Convert.ToDouble(json); + return new HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType.Number) + { + Number = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + var converted = Convert.ToBoolean(json); + return new HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType.Boolean) + { + Boolean = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + return new HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType.ArrayOfAny) + { + ArrayOfAny = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember>(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(List), new HRISBankDetailsAccountTypeSourceValueUnion(HRISBankDetailsAccountTypeSourceValueUnionType.ArrayOfAny), "ArrayOfAny")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (fallbackCandidates.Count > 0) + { + fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); + foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates) + { + try + { + return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next fallback option + } + catch (Exception) + { + throw; + } + } + } + + throw new InvalidOperationException("Could not deserialize into any supported types."); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteRawValue("null"); + return; + } + + HRISBankDetailsAccountTypeSourceValueUnion res = (HRISBankDetailsAccountTypeSourceValueUnion)value; + if (HRISBankDetailsAccountTypeSourceValueUnionType.FromString(res.Type).Equals(HRISBankDetailsAccountTypeSourceValueUnionType.Null)) + { + writer.WriteRawValue("null"); + return; + } + + if (res.Str != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Str)); + return; + } + + if (res.Number != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Number)); + return; + } + + if (res.Boolean != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean)); + return; + } + + if (res.HRISBankDetailsSourceValueAccountType != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.HRISBankDetailsSourceValueAccountType)); + return; + } + + if (res.ArrayOfAny != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.ArrayOfAny)); + return; + } + } + + } + + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeValue.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeValue.cs new file mode 100644 index 00000000..d879633d --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsAccountTypeValue.cs @@ -0,0 +1,88 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// The type of bank account + /// + [JsonConverter(typeof(OpenEnumConverter))] + public class HRISBankDetailsAccountTypeValue : IEquatable + { + public static readonly HRISBankDetailsAccountTypeValue Savings = new HRISBankDetailsAccountTypeValue("savings"); + public static readonly HRISBankDetailsAccountTypeValue Checking = new HRISBankDetailsAccountTypeValue("checking"); + public static readonly HRISBankDetailsAccountTypeValue Current = new HRISBankDetailsAccountTypeValue("current"); + public static readonly HRISBankDetailsAccountTypeValue Business = new HRISBankDetailsAccountTypeValue("business"); + public static readonly HRISBankDetailsAccountTypeValue Personal = new HRISBankDetailsAccountTypeValue("personal"); + public static readonly HRISBankDetailsAccountTypeValue Other = new HRISBankDetailsAccountTypeValue("other"); + public static readonly HRISBankDetailsAccountTypeValue UnmappedValue = new HRISBankDetailsAccountTypeValue("unmapped_value"); + + private static readonly Dictionary _knownValues = + new Dictionary () + { + ["savings"] = Savings, + ["checking"] = Checking, + ["current"] = Current, + ["business"] = Business, + ["personal"] = Personal, + ["other"] = Other, + ["unmapped_value"] = UnmappedValue + }; + + private static readonly ConcurrentDictionary _values = + new ConcurrentDictionary(_knownValues); + + private HRISBankDetailsAccountTypeValue(string value) + { + if (value == null) throw new ArgumentNullException(nameof(value)); + Value = value; + } + + public string Value { get; } + + public static HRISBankDetailsAccountTypeValue Of(string value) + { + return _values.GetOrAdd(value, _ => new HRISBankDetailsAccountTypeValue(value)); + } + + public static implicit operator HRISBankDetailsAccountTypeValue(string value) => Of(value); + public static implicit operator string(HRISBankDetailsAccountTypeValue hrisbankdetailsaccounttypevalue) => hrisbankdetailsaccounttypevalue.Value; + + public static HRISBankDetailsAccountTypeValue[] Values() + { + return _values.Values.ToArray(); + } + + public override string ToString() => Value.ToString(); + + public bool IsKnown() + { + return _knownValues.ContainsKey(Value); + } + + public override bool Equals(object? obj) => Equals(obj as HRISBankDetailsAccountTypeValue); + + public bool Equals(HRISBankDetailsAccountTypeValue? other) + { + if (ReferenceEquals(this, other)) return true; + if (other is null) return false; + return string.Equals(Value, other.Value); + } + + public override int GetHashCode() => Value.GetHashCode(); + } + +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCode.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCode.cs new file mode 100644 index 00000000..998b561d --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCode.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// The currency code for the account + /// + public class HRISBankDetailsCurrencyCode + { + + /// + /// ISO 4217 currency code + /// + [JsonProperty("value")] + public HRISBankDetailsCurrencyCodeValue? Value { get; set; } = null; + + [JsonProperty("source_value", NullValueHandling = NullValueHandling.Include)] + public HRISBankDetailsCurrencyCodeSourceValueUnion? SourceValue { get; set; } = null; + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.cs new file mode 100644 index 00000000..f7b1913e --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeSourceValueUnion.cs @@ -0,0 +1,300 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Generic; + using System.Numerics; + using System.Reflection; + + public class HRISBankDetailsCurrencyCodeSourceValueUnionType + { + private HRISBankDetailsCurrencyCodeSourceValueUnionType(string value) { Value = value; } + + public string Value { get; private set; } + + public static HRISBankDetailsCurrencyCodeSourceValueUnionType Str { get { return new HRISBankDetailsCurrencyCodeSourceValueUnionType("str"); } } + + public static HRISBankDetailsCurrencyCodeSourceValueUnionType Number { get { return new HRISBankDetailsCurrencyCodeSourceValueUnionType("number"); } } + + public static HRISBankDetailsCurrencyCodeSourceValueUnionType Boolean { get { return new HRISBankDetailsCurrencyCodeSourceValueUnionType("boolean"); } } + + public static HRISBankDetailsCurrencyCodeSourceValueUnionType HRISBankDetailsSourceValueCurrencyCode { get { return new HRISBankDetailsCurrencyCodeSourceValueUnionType("HRISBankDetails_source_value_currency_code"); } } + + public static HRISBankDetailsCurrencyCodeSourceValueUnionType ArrayOfAny { get { return new HRISBankDetailsCurrencyCodeSourceValueUnionType("arrayOfAny"); } } + + public static HRISBankDetailsCurrencyCodeSourceValueUnionType Null { get { return new HRISBankDetailsCurrencyCodeSourceValueUnionType("null"); } } + + public override string ToString() { return Value; } + public static implicit operator String(HRISBankDetailsCurrencyCodeSourceValueUnionType v) { return v.Value; } + public static HRISBankDetailsCurrencyCodeSourceValueUnionType FromString(string v) { + switch(v) { + case "str": return Str; + case "number": return Number; + case "boolean": return Boolean; + case "HRISBankDetails_source_value_currency_code": return HRISBankDetailsSourceValueCurrencyCode; + case "arrayOfAny": return ArrayOfAny; + case "null": return Null; + default: throw new ArgumentException("Invalid value for HRISBankDetailsCurrencyCodeSourceValueUnionType"); + } + } + public override bool Equals(object? obj) + { + if (obj == null || GetType() != obj.GetType()) + { + return false; + } + return Value.Equals(((HRISBankDetailsCurrencyCodeSourceValueUnionType)obj).Value); + } + + public override int GetHashCode() + { + return Value.GetHashCode(); + } + } + + + [JsonConverter(typeof(HRISBankDetailsCurrencyCodeSourceValueUnion.HRISBankDetailsCurrencyCodeSourceValueUnionConverter))] + public class HRISBankDetailsCurrencyCodeSourceValueUnion + { + public HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType type) + { + Type = type; + } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public double? Number { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public bool? Boolean { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public HRISBankDetailsSourceValueCurrencyCode? HRISBankDetailsSourceValueCurrencyCode { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public List? ArrayOfAny { get; set; } + + public HRISBankDetailsCurrencyCodeSourceValueUnionType Type { get; set; } + public static HRISBankDetailsCurrencyCodeSourceValueUnion CreateStr(string str) + { + HRISBankDetailsCurrencyCodeSourceValueUnionType typ = HRISBankDetailsCurrencyCodeSourceValueUnionType.Str; + + HRISBankDetailsCurrencyCodeSourceValueUnion res = new HRISBankDetailsCurrencyCodeSourceValueUnion(typ); + res.Str = str; + return res; + } + public static HRISBankDetailsCurrencyCodeSourceValueUnion CreateNumber(double number) + { + HRISBankDetailsCurrencyCodeSourceValueUnionType typ = HRISBankDetailsCurrencyCodeSourceValueUnionType.Number; + + HRISBankDetailsCurrencyCodeSourceValueUnion res = new HRISBankDetailsCurrencyCodeSourceValueUnion(typ); + res.Number = number; + return res; + } + public static HRISBankDetailsCurrencyCodeSourceValueUnion CreateBoolean(bool boolean) + { + HRISBankDetailsCurrencyCodeSourceValueUnionType typ = HRISBankDetailsCurrencyCodeSourceValueUnionType.Boolean; + + HRISBankDetailsCurrencyCodeSourceValueUnion res = new HRISBankDetailsCurrencyCodeSourceValueUnion(typ); + res.Boolean = boolean; + return res; + } + public static HRISBankDetailsCurrencyCodeSourceValueUnion CreateHRISBankDetailsSourceValueCurrencyCode(HRISBankDetailsSourceValueCurrencyCode hrisBankDetailsSourceValueCurrencyCode) + { + HRISBankDetailsCurrencyCodeSourceValueUnionType typ = HRISBankDetailsCurrencyCodeSourceValueUnionType.HRISBankDetailsSourceValueCurrencyCode; + + HRISBankDetailsCurrencyCodeSourceValueUnion res = new HRISBankDetailsCurrencyCodeSourceValueUnion(typ); + res.HRISBankDetailsSourceValueCurrencyCode = hrisBankDetailsSourceValueCurrencyCode; + return res; + } + public static HRISBankDetailsCurrencyCodeSourceValueUnion CreateArrayOfAny(List arrayOfAny) + { + HRISBankDetailsCurrencyCodeSourceValueUnionType typ = HRISBankDetailsCurrencyCodeSourceValueUnionType.ArrayOfAny; + + HRISBankDetailsCurrencyCodeSourceValueUnion res = new HRISBankDetailsCurrencyCodeSourceValueUnion(typ); + res.ArrayOfAny = arrayOfAny; + return res; + } + + public static HRISBankDetailsCurrencyCodeSourceValueUnion CreateNull() + { + HRISBankDetailsCurrencyCodeSourceValueUnionType typ = HRISBankDetailsCurrencyCodeSourceValueUnionType.Null; + return new HRISBankDetailsCurrencyCodeSourceValueUnion(typ); + } + + public class HRISBankDetailsCurrencyCodeSourceValueUnionConverter : JsonConverter + { + public override bool CanConvert(System.Type objectType) => objectType == typeof(HRISBankDetailsCurrencyCodeSourceValueUnion); + + public override bool CanRead => true; + + public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.Null) + { + return null; + } + + var json = JRaw.Create(reader).ToString(); + var fallbackCandidates = new List<(System.Type, object, string)>(); + + try + { + return new HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType.HRISBankDetailsSourceValueCurrencyCode) + { + HRISBankDetailsSourceValueCurrencyCode = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(HRISBankDetailsSourceValueCurrencyCode), new HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType.HRISBankDetailsSourceValueCurrencyCode), "HRISBankDetailsSourceValueCurrencyCode")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (json[0] == '"' && json[^1] == '"'){ + return new HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType.Str) + { + Str = json[1..^1] + }; + } + + try + { + var converted = Convert.ToDouble(json); + return new HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType.Number) + { + Number = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + var converted = Convert.ToBoolean(json); + return new HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType.Boolean) + { + Boolean = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + return new HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType.ArrayOfAny) + { + ArrayOfAny = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember>(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(List), new HRISBankDetailsCurrencyCodeSourceValueUnion(HRISBankDetailsCurrencyCodeSourceValueUnionType.ArrayOfAny), "ArrayOfAny")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (fallbackCandidates.Count > 0) + { + fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); + foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates) + { + try + { + return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next fallback option + } + catch (Exception) + { + throw; + } + } + } + + throw new InvalidOperationException("Could not deserialize into any supported types."); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteRawValue("null"); + return; + } + + HRISBankDetailsCurrencyCodeSourceValueUnion res = (HRISBankDetailsCurrencyCodeSourceValueUnion)value; + if (HRISBankDetailsCurrencyCodeSourceValueUnionType.FromString(res.Type).Equals(HRISBankDetailsCurrencyCodeSourceValueUnionType.Null)) + { + writer.WriteRawValue("null"); + return; + } + + if (res.Str != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Str)); + return; + } + + if (res.Number != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Number)); + return; + } + + if (res.Boolean != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean)); + return; + } + + if (res.HRISBankDetailsSourceValueCurrencyCode != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.HRISBankDetailsSourceValueCurrencyCode)); + return; + } + + if (res.ArrayOfAny != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.ArrayOfAny)); + return; + } + } + + } + + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeValue.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeValue.cs new file mode 100644 index 00000000..68a1db2b --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsCurrencyCodeValue.cs @@ -0,0 +1,390 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.Linq; + + /// + /// ISO 4217 currency code + /// + [JsonConverter(typeof(OpenEnumConverter))] + public class HRISBankDetailsCurrencyCodeValue : IEquatable + { + public static readonly HRISBankDetailsCurrencyCodeValue Aed = new HRISBankDetailsCurrencyCodeValue("AED"); + public static readonly HRISBankDetailsCurrencyCodeValue Afn = new HRISBankDetailsCurrencyCodeValue("AFN"); + public static readonly HRISBankDetailsCurrencyCodeValue All = new HRISBankDetailsCurrencyCodeValue("ALL"); + public static readonly HRISBankDetailsCurrencyCodeValue Amd = new HRISBankDetailsCurrencyCodeValue("AMD"); + public static readonly HRISBankDetailsCurrencyCodeValue Ang = new HRISBankDetailsCurrencyCodeValue("ANG"); + public static readonly HRISBankDetailsCurrencyCodeValue Aoa = new HRISBankDetailsCurrencyCodeValue("AOA"); + public static readonly HRISBankDetailsCurrencyCodeValue Ars = new HRISBankDetailsCurrencyCodeValue("ARS"); + public static readonly HRISBankDetailsCurrencyCodeValue Aud = new HRISBankDetailsCurrencyCodeValue("AUD"); + public static readonly HRISBankDetailsCurrencyCodeValue Awg = new HRISBankDetailsCurrencyCodeValue("AWG"); + public static readonly HRISBankDetailsCurrencyCodeValue Azn = new HRISBankDetailsCurrencyCodeValue("AZN"); + public static readonly HRISBankDetailsCurrencyCodeValue Bam = new HRISBankDetailsCurrencyCodeValue("BAM"); + public static readonly HRISBankDetailsCurrencyCodeValue Bbd = new HRISBankDetailsCurrencyCodeValue("BBD"); + public static readonly HRISBankDetailsCurrencyCodeValue Bdt = new HRISBankDetailsCurrencyCodeValue("BDT"); + public static readonly HRISBankDetailsCurrencyCodeValue Bgn = new HRISBankDetailsCurrencyCodeValue("BGN"); + public static readonly HRISBankDetailsCurrencyCodeValue Bhd = new HRISBankDetailsCurrencyCodeValue("BHD"); + public static readonly HRISBankDetailsCurrencyCodeValue Bif = new HRISBankDetailsCurrencyCodeValue("BIF"); + public static readonly HRISBankDetailsCurrencyCodeValue Bmd = new HRISBankDetailsCurrencyCodeValue("BMD"); + public static readonly HRISBankDetailsCurrencyCodeValue Bnd = new HRISBankDetailsCurrencyCodeValue("BND"); + public static readonly HRISBankDetailsCurrencyCodeValue Bob = new HRISBankDetailsCurrencyCodeValue("BOB"); + public static readonly HRISBankDetailsCurrencyCodeValue Brl = new HRISBankDetailsCurrencyCodeValue("BRL"); + public static readonly HRISBankDetailsCurrencyCodeValue Bsd = new HRISBankDetailsCurrencyCodeValue("BSD"); + public static readonly HRISBankDetailsCurrencyCodeValue Btn = new HRISBankDetailsCurrencyCodeValue("BTN"); + public static readonly HRISBankDetailsCurrencyCodeValue Bwp = new HRISBankDetailsCurrencyCodeValue("BWP"); + public static readonly HRISBankDetailsCurrencyCodeValue Byn = new HRISBankDetailsCurrencyCodeValue("BYN"); + public static readonly HRISBankDetailsCurrencyCodeValue Bzd = new HRISBankDetailsCurrencyCodeValue("BZD"); + public static readonly HRISBankDetailsCurrencyCodeValue Cad = new HRISBankDetailsCurrencyCodeValue("CAD"); + public static readonly HRISBankDetailsCurrencyCodeValue Cdf = new HRISBankDetailsCurrencyCodeValue("CDF"); + public static readonly HRISBankDetailsCurrencyCodeValue Chf = new HRISBankDetailsCurrencyCodeValue("CHF"); + public static readonly HRISBankDetailsCurrencyCodeValue Clp = new HRISBankDetailsCurrencyCodeValue("CLP"); + public static readonly HRISBankDetailsCurrencyCodeValue Cny = new HRISBankDetailsCurrencyCodeValue("CNY"); + public static readonly HRISBankDetailsCurrencyCodeValue Cop = new HRISBankDetailsCurrencyCodeValue("COP"); + public static readonly HRISBankDetailsCurrencyCodeValue Crc = new HRISBankDetailsCurrencyCodeValue("CRC"); + public static readonly HRISBankDetailsCurrencyCodeValue Cuc = new HRISBankDetailsCurrencyCodeValue("CUC"); + public static readonly HRISBankDetailsCurrencyCodeValue Cup = new HRISBankDetailsCurrencyCodeValue("CUP"); + public static readonly HRISBankDetailsCurrencyCodeValue Cve = new HRISBankDetailsCurrencyCodeValue("CVE"); + public static readonly HRISBankDetailsCurrencyCodeValue Czk = new HRISBankDetailsCurrencyCodeValue("CZK"); + public static readonly HRISBankDetailsCurrencyCodeValue Djf = new HRISBankDetailsCurrencyCodeValue("DJF"); + public static readonly HRISBankDetailsCurrencyCodeValue Dkk = new HRISBankDetailsCurrencyCodeValue("DKK"); + public static readonly HRISBankDetailsCurrencyCodeValue Dop = new HRISBankDetailsCurrencyCodeValue("DOP"); + public static readonly HRISBankDetailsCurrencyCodeValue Dzd = new HRISBankDetailsCurrencyCodeValue("DZD"); + public static readonly HRISBankDetailsCurrencyCodeValue Egp = new HRISBankDetailsCurrencyCodeValue("EGP"); + public static readonly HRISBankDetailsCurrencyCodeValue Ern = new HRISBankDetailsCurrencyCodeValue("ERN"); + public static readonly HRISBankDetailsCurrencyCodeValue Etb = new HRISBankDetailsCurrencyCodeValue("ETB"); + public static readonly HRISBankDetailsCurrencyCodeValue Eur = new HRISBankDetailsCurrencyCodeValue("EUR"); + public static readonly HRISBankDetailsCurrencyCodeValue Fjd = new HRISBankDetailsCurrencyCodeValue("FJD"); + public static readonly HRISBankDetailsCurrencyCodeValue Fkp = new HRISBankDetailsCurrencyCodeValue("FKP"); + public static readonly HRISBankDetailsCurrencyCodeValue Gbp = new HRISBankDetailsCurrencyCodeValue("GBP"); + public static readonly HRISBankDetailsCurrencyCodeValue Gel = new HRISBankDetailsCurrencyCodeValue("GEL"); + public static readonly HRISBankDetailsCurrencyCodeValue Ghs = new HRISBankDetailsCurrencyCodeValue("GHS"); + public static readonly HRISBankDetailsCurrencyCodeValue Gip = new HRISBankDetailsCurrencyCodeValue("GIP"); + public static readonly HRISBankDetailsCurrencyCodeValue Gmd = new HRISBankDetailsCurrencyCodeValue("GMD"); + public static readonly HRISBankDetailsCurrencyCodeValue Gnf = new HRISBankDetailsCurrencyCodeValue("GNF"); + public static readonly HRISBankDetailsCurrencyCodeValue Gtq = new HRISBankDetailsCurrencyCodeValue("GTQ"); + public static readonly HRISBankDetailsCurrencyCodeValue Gyd = new HRISBankDetailsCurrencyCodeValue("GYD"); + public static readonly HRISBankDetailsCurrencyCodeValue Hkd = new HRISBankDetailsCurrencyCodeValue("HKD"); + public static readonly HRISBankDetailsCurrencyCodeValue Hnl = new HRISBankDetailsCurrencyCodeValue("HNL"); + public static readonly HRISBankDetailsCurrencyCodeValue Hrk = new HRISBankDetailsCurrencyCodeValue("HRK"); + public static readonly HRISBankDetailsCurrencyCodeValue Htg = new HRISBankDetailsCurrencyCodeValue("HTG"); + public static readonly HRISBankDetailsCurrencyCodeValue Huf = new HRISBankDetailsCurrencyCodeValue("HUF"); + public static readonly HRISBankDetailsCurrencyCodeValue Idr = new HRISBankDetailsCurrencyCodeValue("IDR"); + public static readonly HRISBankDetailsCurrencyCodeValue Ils = new HRISBankDetailsCurrencyCodeValue("ILS"); + public static readonly HRISBankDetailsCurrencyCodeValue Inr = new HRISBankDetailsCurrencyCodeValue("INR"); + public static readonly HRISBankDetailsCurrencyCodeValue Iqd = new HRISBankDetailsCurrencyCodeValue("IQD"); + public static readonly HRISBankDetailsCurrencyCodeValue Irr = new HRISBankDetailsCurrencyCodeValue("IRR"); + public static readonly HRISBankDetailsCurrencyCodeValue Isk = new HRISBankDetailsCurrencyCodeValue("ISK"); + public static readonly HRISBankDetailsCurrencyCodeValue Jmd = new HRISBankDetailsCurrencyCodeValue("JMD"); + public static readonly HRISBankDetailsCurrencyCodeValue Jod = new HRISBankDetailsCurrencyCodeValue("JOD"); + public static readonly HRISBankDetailsCurrencyCodeValue Jpy = new HRISBankDetailsCurrencyCodeValue("JPY"); + public static readonly HRISBankDetailsCurrencyCodeValue Kes = new HRISBankDetailsCurrencyCodeValue("KES"); + public static readonly HRISBankDetailsCurrencyCodeValue Kgs = new HRISBankDetailsCurrencyCodeValue("KGS"); + public static readonly HRISBankDetailsCurrencyCodeValue Khr = new HRISBankDetailsCurrencyCodeValue("KHR"); + public static readonly HRISBankDetailsCurrencyCodeValue Kmf = new HRISBankDetailsCurrencyCodeValue("KMF"); + public static readonly HRISBankDetailsCurrencyCodeValue Kpw = new HRISBankDetailsCurrencyCodeValue("KPW"); + public static readonly HRISBankDetailsCurrencyCodeValue Krw = new HRISBankDetailsCurrencyCodeValue("KRW"); + public static readonly HRISBankDetailsCurrencyCodeValue Kwd = new HRISBankDetailsCurrencyCodeValue("KWD"); + public static readonly HRISBankDetailsCurrencyCodeValue Kyd = new HRISBankDetailsCurrencyCodeValue("KYD"); + public static readonly HRISBankDetailsCurrencyCodeValue Kzt = new HRISBankDetailsCurrencyCodeValue("KZT"); + public static readonly HRISBankDetailsCurrencyCodeValue Lak = new HRISBankDetailsCurrencyCodeValue("LAK"); + public static readonly HRISBankDetailsCurrencyCodeValue Lbp = new HRISBankDetailsCurrencyCodeValue("LBP"); + public static readonly HRISBankDetailsCurrencyCodeValue Lkr = new HRISBankDetailsCurrencyCodeValue("LKR"); + public static readonly HRISBankDetailsCurrencyCodeValue Lrd = new HRISBankDetailsCurrencyCodeValue("LRD"); + public static readonly HRISBankDetailsCurrencyCodeValue Lsl = new HRISBankDetailsCurrencyCodeValue("LSL"); + public static readonly HRISBankDetailsCurrencyCodeValue Lyd = new HRISBankDetailsCurrencyCodeValue("LYD"); + public static readonly HRISBankDetailsCurrencyCodeValue Mad = new HRISBankDetailsCurrencyCodeValue("MAD"); + public static readonly HRISBankDetailsCurrencyCodeValue Mdl = new HRISBankDetailsCurrencyCodeValue("MDL"); + public static readonly HRISBankDetailsCurrencyCodeValue Mga = new HRISBankDetailsCurrencyCodeValue("MGA"); + public static readonly HRISBankDetailsCurrencyCodeValue Mkd = new HRISBankDetailsCurrencyCodeValue("MKD"); + public static readonly HRISBankDetailsCurrencyCodeValue Mmk = new HRISBankDetailsCurrencyCodeValue("MMK"); + public static readonly HRISBankDetailsCurrencyCodeValue Mnt = new HRISBankDetailsCurrencyCodeValue("MNT"); + public static readonly HRISBankDetailsCurrencyCodeValue Mop = new HRISBankDetailsCurrencyCodeValue("MOP"); + public static readonly HRISBankDetailsCurrencyCodeValue Mru = new HRISBankDetailsCurrencyCodeValue("MRU"); + public static readonly HRISBankDetailsCurrencyCodeValue Mur = new HRISBankDetailsCurrencyCodeValue("MUR"); + public static readonly HRISBankDetailsCurrencyCodeValue Mvr = new HRISBankDetailsCurrencyCodeValue("MVR"); + public static readonly HRISBankDetailsCurrencyCodeValue Mwk = new HRISBankDetailsCurrencyCodeValue("MWK"); + public static readonly HRISBankDetailsCurrencyCodeValue Mxn = new HRISBankDetailsCurrencyCodeValue("MXN"); + public static readonly HRISBankDetailsCurrencyCodeValue Myr = new HRISBankDetailsCurrencyCodeValue("MYR"); + public static readonly HRISBankDetailsCurrencyCodeValue Mzn = new HRISBankDetailsCurrencyCodeValue("MZN"); + public static readonly HRISBankDetailsCurrencyCodeValue Nad = new HRISBankDetailsCurrencyCodeValue("NAD"); + public static readonly HRISBankDetailsCurrencyCodeValue Ngn = new HRISBankDetailsCurrencyCodeValue("NGN"); + public static readonly HRISBankDetailsCurrencyCodeValue Nio = new HRISBankDetailsCurrencyCodeValue("NIO"); + public static readonly HRISBankDetailsCurrencyCodeValue Nok = new HRISBankDetailsCurrencyCodeValue("NOK"); + public static readonly HRISBankDetailsCurrencyCodeValue Npr = new HRISBankDetailsCurrencyCodeValue("NPR"); + public static readonly HRISBankDetailsCurrencyCodeValue Nzd = new HRISBankDetailsCurrencyCodeValue("NZD"); + public static readonly HRISBankDetailsCurrencyCodeValue Omr = new HRISBankDetailsCurrencyCodeValue("OMR"); + public static readonly HRISBankDetailsCurrencyCodeValue Pab = new HRISBankDetailsCurrencyCodeValue("PAB"); + public static readonly HRISBankDetailsCurrencyCodeValue Pen = new HRISBankDetailsCurrencyCodeValue("PEN"); + public static readonly HRISBankDetailsCurrencyCodeValue Pgk = new HRISBankDetailsCurrencyCodeValue("PGK"); + public static readonly HRISBankDetailsCurrencyCodeValue Php = new HRISBankDetailsCurrencyCodeValue("PHP"); + public static readonly HRISBankDetailsCurrencyCodeValue Pkr = new HRISBankDetailsCurrencyCodeValue("PKR"); + public static readonly HRISBankDetailsCurrencyCodeValue Pln = new HRISBankDetailsCurrencyCodeValue("PLN"); + public static readonly HRISBankDetailsCurrencyCodeValue Pyg = new HRISBankDetailsCurrencyCodeValue("PYG"); + public static readonly HRISBankDetailsCurrencyCodeValue Qar = new HRISBankDetailsCurrencyCodeValue("QAR"); + public static readonly HRISBankDetailsCurrencyCodeValue Ron = new HRISBankDetailsCurrencyCodeValue("RON"); + public static readonly HRISBankDetailsCurrencyCodeValue Rsd = new HRISBankDetailsCurrencyCodeValue("RSD"); + public static readonly HRISBankDetailsCurrencyCodeValue Rub = new HRISBankDetailsCurrencyCodeValue("RUB"); + public static readonly HRISBankDetailsCurrencyCodeValue Rwf = new HRISBankDetailsCurrencyCodeValue("RWF"); + public static readonly HRISBankDetailsCurrencyCodeValue Sar = new HRISBankDetailsCurrencyCodeValue("SAR"); + public static readonly HRISBankDetailsCurrencyCodeValue Sbd = new HRISBankDetailsCurrencyCodeValue("SBD"); + public static readonly HRISBankDetailsCurrencyCodeValue Scr = new HRISBankDetailsCurrencyCodeValue("SCR"); + public static readonly HRISBankDetailsCurrencyCodeValue Sdg = new HRISBankDetailsCurrencyCodeValue("SDG"); + public static readonly HRISBankDetailsCurrencyCodeValue Sek = new HRISBankDetailsCurrencyCodeValue("SEK"); + public static readonly HRISBankDetailsCurrencyCodeValue Sgd = new HRISBankDetailsCurrencyCodeValue("SGD"); + public static readonly HRISBankDetailsCurrencyCodeValue Shp = new HRISBankDetailsCurrencyCodeValue("SHP"); + public static readonly HRISBankDetailsCurrencyCodeValue Sll = new HRISBankDetailsCurrencyCodeValue("SLL"); + public static readonly HRISBankDetailsCurrencyCodeValue Sos = new HRISBankDetailsCurrencyCodeValue("SOS"); + public static readonly HRISBankDetailsCurrencyCodeValue Srd = new HRISBankDetailsCurrencyCodeValue("SRD"); + public static readonly HRISBankDetailsCurrencyCodeValue Ssp = new HRISBankDetailsCurrencyCodeValue("SSP"); + public static readonly HRISBankDetailsCurrencyCodeValue Stn = new HRISBankDetailsCurrencyCodeValue("STN"); + public static readonly HRISBankDetailsCurrencyCodeValue Syp = new HRISBankDetailsCurrencyCodeValue("SYP"); + public static readonly HRISBankDetailsCurrencyCodeValue Szl = new HRISBankDetailsCurrencyCodeValue("SZL"); + public static readonly HRISBankDetailsCurrencyCodeValue Thb = new HRISBankDetailsCurrencyCodeValue("THB"); + public static readonly HRISBankDetailsCurrencyCodeValue Tjs = new HRISBankDetailsCurrencyCodeValue("TJS"); + public static readonly HRISBankDetailsCurrencyCodeValue Tmt = new HRISBankDetailsCurrencyCodeValue("TMT"); + public static readonly HRISBankDetailsCurrencyCodeValue Tnd = new HRISBankDetailsCurrencyCodeValue("TND"); + public static readonly HRISBankDetailsCurrencyCodeValue Top = new HRISBankDetailsCurrencyCodeValue("TOP"); + public static readonly HRISBankDetailsCurrencyCodeValue Try = new HRISBankDetailsCurrencyCodeValue("TRY"); + public static readonly HRISBankDetailsCurrencyCodeValue Ttd = new HRISBankDetailsCurrencyCodeValue("TTD"); + public static readonly HRISBankDetailsCurrencyCodeValue Twd = new HRISBankDetailsCurrencyCodeValue("TWD"); + public static readonly HRISBankDetailsCurrencyCodeValue Tzs = new HRISBankDetailsCurrencyCodeValue("TZS"); + public static readonly HRISBankDetailsCurrencyCodeValue Uah = new HRISBankDetailsCurrencyCodeValue("UAH"); + public static readonly HRISBankDetailsCurrencyCodeValue Ugx = new HRISBankDetailsCurrencyCodeValue("UGX"); + public static readonly HRISBankDetailsCurrencyCodeValue Usd = new HRISBankDetailsCurrencyCodeValue("USD"); + public static readonly HRISBankDetailsCurrencyCodeValue Uyu = new HRISBankDetailsCurrencyCodeValue("UYU"); + public static readonly HRISBankDetailsCurrencyCodeValue Uzs = new HRISBankDetailsCurrencyCodeValue("UZS"); + public static readonly HRISBankDetailsCurrencyCodeValue Ves = new HRISBankDetailsCurrencyCodeValue("VES"); + public static readonly HRISBankDetailsCurrencyCodeValue Vnd = new HRISBankDetailsCurrencyCodeValue("VND"); + public static readonly HRISBankDetailsCurrencyCodeValue Vuv = new HRISBankDetailsCurrencyCodeValue("VUV"); + public static readonly HRISBankDetailsCurrencyCodeValue Wst = new HRISBankDetailsCurrencyCodeValue("WST"); + public static readonly HRISBankDetailsCurrencyCodeValue Xaf = new HRISBankDetailsCurrencyCodeValue("XAF"); + public static readonly HRISBankDetailsCurrencyCodeValue Xcd = new HRISBankDetailsCurrencyCodeValue("XCD"); + public static readonly HRISBankDetailsCurrencyCodeValue Xdr = new HRISBankDetailsCurrencyCodeValue("XDR"); + public static readonly HRISBankDetailsCurrencyCodeValue Xof = new HRISBankDetailsCurrencyCodeValue("XOF"); + public static readonly HRISBankDetailsCurrencyCodeValue Xpf = new HRISBankDetailsCurrencyCodeValue("XPF"); + public static readonly HRISBankDetailsCurrencyCodeValue Yer = new HRISBankDetailsCurrencyCodeValue("YER"); + public static readonly HRISBankDetailsCurrencyCodeValue Zar = new HRISBankDetailsCurrencyCodeValue("ZAR"); + public static readonly HRISBankDetailsCurrencyCodeValue Zmw = new HRISBankDetailsCurrencyCodeValue("ZMW"); + public static readonly HRISBankDetailsCurrencyCodeValue Zwl = new HRISBankDetailsCurrencyCodeValue("ZWL"); + public static readonly HRISBankDetailsCurrencyCodeValue UnmappedValue = new HRISBankDetailsCurrencyCodeValue("unmapped_value"); + + private static readonly Dictionary _knownValues = + new Dictionary () + { + ["AED"] = Aed, + ["AFN"] = Afn, + ["ALL"] = All, + ["AMD"] = Amd, + ["ANG"] = Ang, + ["AOA"] = Aoa, + ["ARS"] = Ars, + ["AUD"] = Aud, + ["AWG"] = Awg, + ["AZN"] = Azn, + ["BAM"] = Bam, + ["BBD"] = Bbd, + ["BDT"] = Bdt, + ["BGN"] = Bgn, + ["BHD"] = Bhd, + ["BIF"] = Bif, + ["BMD"] = Bmd, + ["BND"] = Bnd, + ["BOB"] = Bob, + ["BRL"] = Brl, + ["BSD"] = Bsd, + ["BTN"] = Btn, + ["BWP"] = Bwp, + ["BYN"] = Byn, + ["BZD"] = Bzd, + ["CAD"] = Cad, + ["CDF"] = Cdf, + ["CHF"] = Chf, + ["CLP"] = Clp, + ["CNY"] = Cny, + ["COP"] = Cop, + ["CRC"] = Crc, + ["CUC"] = Cuc, + ["CUP"] = Cup, + ["CVE"] = Cve, + ["CZK"] = Czk, + ["DJF"] = Djf, + ["DKK"] = Dkk, + ["DOP"] = Dop, + ["DZD"] = Dzd, + ["EGP"] = Egp, + ["ERN"] = Ern, + ["ETB"] = Etb, + ["EUR"] = Eur, + ["FJD"] = Fjd, + ["FKP"] = Fkp, + ["GBP"] = Gbp, + ["GEL"] = Gel, + ["GHS"] = Ghs, + ["GIP"] = Gip, + ["GMD"] = Gmd, + ["GNF"] = Gnf, + ["GTQ"] = Gtq, + ["GYD"] = Gyd, + ["HKD"] = Hkd, + ["HNL"] = Hnl, + ["HRK"] = Hrk, + ["HTG"] = Htg, + ["HUF"] = Huf, + ["IDR"] = Idr, + ["ILS"] = Ils, + ["INR"] = Inr, + ["IQD"] = Iqd, + ["IRR"] = Irr, + ["ISK"] = Isk, + ["JMD"] = Jmd, + ["JOD"] = Jod, + ["JPY"] = Jpy, + ["KES"] = Kes, + ["KGS"] = Kgs, + ["KHR"] = Khr, + ["KMF"] = Kmf, + ["KPW"] = Kpw, + ["KRW"] = Krw, + ["KWD"] = Kwd, + ["KYD"] = Kyd, + ["KZT"] = Kzt, + ["LAK"] = Lak, + ["LBP"] = Lbp, + ["LKR"] = Lkr, + ["LRD"] = Lrd, + ["LSL"] = Lsl, + ["LYD"] = Lyd, + ["MAD"] = Mad, + ["MDL"] = Mdl, + ["MGA"] = Mga, + ["MKD"] = Mkd, + ["MMK"] = Mmk, + ["MNT"] = Mnt, + ["MOP"] = Mop, + ["MRU"] = Mru, + ["MUR"] = Mur, + ["MVR"] = Mvr, + ["MWK"] = Mwk, + ["MXN"] = Mxn, + ["MYR"] = Myr, + ["MZN"] = Mzn, + ["NAD"] = Nad, + ["NGN"] = Ngn, + ["NIO"] = Nio, + ["NOK"] = Nok, + ["NPR"] = Npr, + ["NZD"] = Nzd, + ["OMR"] = Omr, + ["PAB"] = Pab, + ["PEN"] = Pen, + ["PGK"] = Pgk, + ["PHP"] = Php, + ["PKR"] = Pkr, + ["PLN"] = Pln, + ["PYG"] = Pyg, + ["QAR"] = Qar, + ["RON"] = Ron, + ["RSD"] = Rsd, + ["RUB"] = Rub, + ["RWF"] = Rwf, + ["SAR"] = Sar, + ["SBD"] = Sbd, + ["SCR"] = Scr, + ["SDG"] = Sdg, + ["SEK"] = Sek, + ["SGD"] = Sgd, + ["SHP"] = Shp, + ["SLL"] = Sll, + ["SOS"] = Sos, + ["SRD"] = Srd, + ["SSP"] = Ssp, + ["STN"] = Stn, + ["SYP"] = Syp, + ["SZL"] = Szl, + ["THB"] = Thb, + ["TJS"] = Tjs, + ["TMT"] = Tmt, + ["TND"] = Tnd, + ["TOP"] = Top, + ["TRY"] = Try, + ["TTD"] = Ttd, + ["TWD"] = Twd, + ["TZS"] = Tzs, + ["UAH"] = Uah, + ["UGX"] = Ugx, + ["USD"] = Usd, + ["UYU"] = Uyu, + ["UZS"] = Uzs, + ["VES"] = Ves, + ["VND"] = Vnd, + ["VUV"] = Vuv, + ["WST"] = Wst, + ["XAF"] = Xaf, + ["XCD"] = Xcd, + ["XDR"] = Xdr, + ["XOF"] = Xof, + ["XPF"] = Xpf, + ["YER"] = Yer, + ["ZAR"] = Zar, + ["ZMW"] = Zmw, + ["ZWL"] = Zwl, + ["unmapped_value"] = UnmappedValue + }; + + private static readonly ConcurrentDictionary _values = + new ConcurrentDictionary(_knownValues); + + private HRISBankDetailsCurrencyCodeValue(string value) + { + if (value == null) throw new ArgumentNullException(nameof(value)); + Value = value; + } + + public string Value { get; } + + public static HRISBankDetailsCurrencyCodeValue Of(string value) + { + return _values.GetOrAdd(value, _ => new HRISBankDetailsCurrencyCodeValue(value)); + } + + public static implicit operator HRISBankDetailsCurrencyCodeValue(string value) => Of(value); + public static implicit operator string(HRISBankDetailsCurrencyCodeValue hrisbankdetailscurrencycodevalue) => hrisbankdetailscurrencycodevalue.Value; + + public static HRISBankDetailsCurrencyCodeValue[] Values() + { + return _values.Values.ToArray(); + } + + public override string ToString() => Value.ToString(); + + public bool IsKnown() + { + return _knownValues.ContainsKey(Value); + } + + public override bool Equals(object? obj) => Equals(obj as HRISBankDetailsCurrencyCodeValue); + + public bool Equals(HRISBankDetailsCurrencyCodeValue? other) + { + if (ReferenceEquals(this, other)) return true; + if (other is null) return false; + return string.Equals(Value, other.Value); + } + + public override int GetHashCode() => Value.GetHashCode(); + } + +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueAccountType.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueAccountType.cs new file mode 100644 index 00000000..83ceed94 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueAccountType.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using StackOneHQ.Client.Utils; + + public class HRISBankDetailsSourceValueAccountType + { + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueCurrencyCode.cs b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueCurrencyCode.cs new file mode 100644 index 00000000..f1260fec --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/HRISBankDetailsSourceValueCurrencyCode.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using StackOneHQ.Client.Utils; + + public class HRISBankDetailsSourceValueCurrencyCode + { + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/JournalLine.cs b/src/StackOneHQ/Client/Models/Components/JournalLine.cs index 12554e12..649f7d03 100644 --- a/src/StackOneHQ/Client/Models/Components/JournalLine.cs +++ b/src/StackOneHQ/Client/Models/Components/JournalLine.cs @@ -32,7 +32,7 @@ public class JournalLine /// Type of the account /// [JsonProperty("account_type")] - public AccountType? AccountType { get; set; } = null; + public JournalLineAccountType? AccountType { get; set; } = null; /// /// Description of the journal line diff --git a/src/StackOneHQ/Client/Models/Components/AccountType.cs b/src/StackOneHQ/Client/Models/Components/JournalLineAccountType.cs similarity index 82% rename from src/StackOneHQ/Client/Models/Components/AccountType.cs rename to src/StackOneHQ/Client/Models/Components/JournalLineAccountType.cs index 4a8e36b0..9a03a32d 100644 --- a/src/StackOneHQ/Client/Models/Components/AccountType.cs +++ b/src/StackOneHQ/Client/Models/Components/JournalLineAccountType.cs @@ -20,16 +20,16 @@ namespace StackOneHQ.Client.Models.Components /// /// Type of the account /// - public class AccountType + public class JournalLineAccountType { /// /// Type of account /// [JsonProperty("value")] - public AccountTypeValue? Value { get; set; } = null; + public JournalLineAccountTypeValue? Value { get; set; } = null; [JsonProperty("source_value", NullValueHandling = NullValueHandling.Include)] - public AccountTypeSourceValueUnion? SourceValue { get; set; } = null; + public JournalLineAccountTypeSourceValueUnion? SourceValue { get; set; } = null; } } \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeSourceValueUnion.cs b/src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeSourceValueUnion.cs new file mode 100644 index 00000000..35d624a9 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeSourceValueUnion.cs @@ -0,0 +1,300 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + using StackOneHQ.Client.Models.Components; + using StackOneHQ.Client.Utils; + using System; + using System.Collections.Generic; + using System.Numerics; + using System.Reflection; + + public class JournalLineAccountTypeSourceValueUnionType + { + private JournalLineAccountTypeSourceValueUnionType(string value) { Value = value; } + + public string Value { get; private set; } + + public static JournalLineAccountTypeSourceValueUnionType Str { get { return new JournalLineAccountTypeSourceValueUnionType("str"); } } + + public static JournalLineAccountTypeSourceValueUnionType Number { get { return new JournalLineAccountTypeSourceValueUnionType("number"); } } + + public static JournalLineAccountTypeSourceValueUnionType Boolean { get { return new JournalLineAccountTypeSourceValueUnionType("boolean"); } } + + public static JournalLineAccountTypeSourceValueUnionType JournalLineSourceValueAccountType { get { return new JournalLineAccountTypeSourceValueUnionType("JournalLine_source_value_account_type"); } } + + public static JournalLineAccountTypeSourceValueUnionType ArrayOfAny { get { return new JournalLineAccountTypeSourceValueUnionType("arrayOfAny"); } } + + public static JournalLineAccountTypeSourceValueUnionType Null { get { return new JournalLineAccountTypeSourceValueUnionType("null"); } } + + public override string ToString() { return Value; } + public static implicit operator String(JournalLineAccountTypeSourceValueUnionType v) { return v.Value; } + public static JournalLineAccountTypeSourceValueUnionType FromString(string v) { + switch(v) { + case "str": return Str; + case "number": return Number; + case "boolean": return Boolean; + case "JournalLine_source_value_account_type": return JournalLineSourceValueAccountType; + case "arrayOfAny": return ArrayOfAny; + case "null": return Null; + default: throw new ArgumentException("Invalid value for JournalLineAccountTypeSourceValueUnionType"); + } + } + public override bool Equals(object? obj) + { + if (obj == null || GetType() != obj.GetType()) + { + return false; + } + return Value.Equals(((JournalLineAccountTypeSourceValueUnionType)obj).Value); + } + + public override int GetHashCode() + { + return Value.GetHashCode(); + } + } + + + [JsonConverter(typeof(JournalLineAccountTypeSourceValueUnion.JournalLineAccountTypeSourceValueUnionConverter))] + public class JournalLineAccountTypeSourceValueUnion + { + public JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType type) + { + Type = type; + } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public double? Number { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public bool? Boolean { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public JournalLineSourceValueAccountType? JournalLineSourceValueAccountType { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public List? ArrayOfAny { get; set; } + + public JournalLineAccountTypeSourceValueUnionType Type { get; set; } + public static JournalLineAccountTypeSourceValueUnion CreateStr(string str) + { + JournalLineAccountTypeSourceValueUnionType typ = JournalLineAccountTypeSourceValueUnionType.Str; + + JournalLineAccountTypeSourceValueUnion res = new JournalLineAccountTypeSourceValueUnion(typ); + res.Str = str; + return res; + } + public static JournalLineAccountTypeSourceValueUnion CreateNumber(double number) + { + JournalLineAccountTypeSourceValueUnionType typ = JournalLineAccountTypeSourceValueUnionType.Number; + + JournalLineAccountTypeSourceValueUnion res = new JournalLineAccountTypeSourceValueUnion(typ); + res.Number = number; + return res; + } + public static JournalLineAccountTypeSourceValueUnion CreateBoolean(bool boolean) + { + JournalLineAccountTypeSourceValueUnionType typ = JournalLineAccountTypeSourceValueUnionType.Boolean; + + JournalLineAccountTypeSourceValueUnion res = new JournalLineAccountTypeSourceValueUnion(typ); + res.Boolean = boolean; + return res; + } + public static JournalLineAccountTypeSourceValueUnion CreateJournalLineSourceValueAccountType(JournalLineSourceValueAccountType journalLineSourceValueAccountType) + { + JournalLineAccountTypeSourceValueUnionType typ = JournalLineAccountTypeSourceValueUnionType.JournalLineSourceValueAccountType; + + JournalLineAccountTypeSourceValueUnion res = new JournalLineAccountTypeSourceValueUnion(typ); + res.JournalLineSourceValueAccountType = journalLineSourceValueAccountType; + return res; + } + public static JournalLineAccountTypeSourceValueUnion CreateArrayOfAny(List arrayOfAny) + { + JournalLineAccountTypeSourceValueUnionType typ = JournalLineAccountTypeSourceValueUnionType.ArrayOfAny; + + JournalLineAccountTypeSourceValueUnion res = new JournalLineAccountTypeSourceValueUnion(typ); + res.ArrayOfAny = arrayOfAny; + return res; + } + + public static JournalLineAccountTypeSourceValueUnion CreateNull() + { + JournalLineAccountTypeSourceValueUnionType typ = JournalLineAccountTypeSourceValueUnionType.Null; + return new JournalLineAccountTypeSourceValueUnion(typ); + } + + public class JournalLineAccountTypeSourceValueUnionConverter : JsonConverter + { + public override bool CanConvert(System.Type objectType) => objectType == typeof(JournalLineAccountTypeSourceValueUnion); + + public override bool CanRead => true; + + public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.Null) + { + return null; + } + + var json = JRaw.Create(reader).ToString(); + var fallbackCandidates = new List<(System.Type, object, string)>(); + + try + { + return new JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType.JournalLineSourceValueAccountType) + { + JournalLineSourceValueAccountType = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(JournalLineSourceValueAccountType), new JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType.JournalLineSourceValueAccountType), "JournalLineSourceValueAccountType")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (json[0] == '"' && json[^1] == '"'){ + return new JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType.Str) + { + Str = json[1..^1] + }; + } + + try + { + var converted = Convert.ToDouble(json); + return new JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType.Number) + { + Number = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + var converted = Convert.ToBoolean(json); + return new JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType.Boolean) + { + Boolean = converted + }; + } + catch (System.FormatException) + { + // try next option + } + + try + { + return new JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType.ArrayOfAny) + { + ArrayOfAny = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember>(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(List), new JournalLineAccountTypeSourceValueUnion(JournalLineAccountTypeSourceValueUnionType.ArrayOfAny), "ArrayOfAny")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + + if (fallbackCandidates.Count > 0) + { + fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); + foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates) + { + try + { + return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next fallback option + } + catch (Exception) + { + throw; + } + } + } + + throw new InvalidOperationException("Could not deserialize into any supported types."); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteRawValue("null"); + return; + } + + JournalLineAccountTypeSourceValueUnion res = (JournalLineAccountTypeSourceValueUnion)value; + if (JournalLineAccountTypeSourceValueUnionType.FromString(res.Type).Equals(JournalLineAccountTypeSourceValueUnionType.Null)) + { + writer.WriteRawValue("null"); + return; + } + + if (res.Str != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Str)); + return; + } + + if (res.Number != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Number)); + return; + } + + if (res.Boolean != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Boolean)); + return; + } + + if (res.JournalLineSourceValueAccountType != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.JournalLineSourceValueAccountType)); + return; + } + + if (res.ArrayOfAny != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.ArrayOfAny)); + return; + } + } + + } + + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/AccountTypeValue.cs b/src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeValue.cs similarity index 50% rename from src/StackOneHQ/Client/Models/Components/AccountTypeValue.cs rename to src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeValue.cs index 07610ced..c9b22490 100644 --- a/src/StackOneHQ/Client/Models/Components/AccountTypeValue.cs +++ b/src/StackOneHQ/Client/Models/Components/JournalLineAccountTypeValue.cs @@ -20,17 +20,17 @@ namespace StackOneHQ.Client.Models.Components /// Type of account /// [JsonConverter(typeof(OpenEnumConverter))] - public class AccountTypeValue : IEquatable + public class JournalLineAccountTypeValue : IEquatable { - public static readonly AccountTypeValue Asset = new AccountTypeValue("asset"); - public static readonly AccountTypeValue Liability = new AccountTypeValue("liability"); - public static readonly AccountTypeValue Equity = new AccountTypeValue("equity"); - public static readonly AccountTypeValue Revenue = new AccountTypeValue("revenue"); - public static readonly AccountTypeValue Expense = new AccountTypeValue("expense"); - public static readonly AccountTypeValue UnmappedValue = new AccountTypeValue("unmapped_value"); + public static readonly JournalLineAccountTypeValue Asset = new JournalLineAccountTypeValue("asset"); + public static readonly JournalLineAccountTypeValue Liability = new JournalLineAccountTypeValue("liability"); + public static readonly JournalLineAccountTypeValue Equity = new JournalLineAccountTypeValue("equity"); + public static readonly JournalLineAccountTypeValue Revenue = new JournalLineAccountTypeValue("revenue"); + public static readonly JournalLineAccountTypeValue Expense = new JournalLineAccountTypeValue("expense"); + public static readonly JournalLineAccountTypeValue UnmappedValue = new JournalLineAccountTypeValue("unmapped_value"); - private static readonly Dictionary _knownValues = - new Dictionary () + private static readonly Dictionary _knownValues = + new Dictionary () { ["asset"] = Asset, ["liability"] = Liability, @@ -40,10 +40,10 @@ public class AccountTypeValue : IEquatable ["unmapped_value"] = UnmappedValue }; - private static readonly ConcurrentDictionary _values = - new ConcurrentDictionary(_knownValues); + private static readonly ConcurrentDictionary _values = + new ConcurrentDictionary(_knownValues); - private AccountTypeValue(string value) + private JournalLineAccountTypeValue(string value) { if (value == null) throw new ArgumentNullException(nameof(value)); Value = value; @@ -51,15 +51,15 @@ private AccountTypeValue(string value) public string Value { get; } - public static AccountTypeValue Of(string value) + public static JournalLineAccountTypeValue Of(string value) { - return _values.GetOrAdd(value, _ => new AccountTypeValue(value)); + return _values.GetOrAdd(value, _ => new JournalLineAccountTypeValue(value)); } - public static implicit operator AccountTypeValue(string value) => Of(value); - public static implicit operator string(AccountTypeValue accounttypevalue) => accounttypevalue.Value; + public static implicit operator JournalLineAccountTypeValue(string value) => Of(value); + public static implicit operator string(JournalLineAccountTypeValue journallineaccounttypevalue) => journallineaccounttypevalue.Value; - public static AccountTypeValue[] Values() + public static JournalLineAccountTypeValue[] Values() { return _values.Values.ToArray(); } @@ -71,9 +71,9 @@ public bool IsKnown() return _knownValues.ContainsKey(Value); } - public override bool Equals(object? obj) => Equals(obj as AccountTypeValue); + public override bool Equals(object? obj) => Equals(obj as JournalLineAccountTypeValue); - public bool Equals(AccountTypeValue? other) + public bool Equals(JournalLineAccountTypeValue? other) { if (ReferenceEquals(this, other)) return true; if (other is null) return false; diff --git a/src/StackOneHQ/Client/Models/Components/JournalLineSourceValueAccountType.cs b/src/StackOneHQ/Client/Models/Components/JournalLineSourceValueAccountType.cs new file mode 100644 index 00000000..f0128110 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/JournalLineSourceValueAccountType.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using StackOneHQ.Client.Utils; + + public class JournalLineSourceValueAccountType + { + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/LmsCreateAssignmentRequestDto.cs b/src/StackOneHQ/Client/Models/Components/LmsCreateAssignmentRequestDto.cs index b48be7f1..7896894c 100644 --- a/src/StackOneHQ/Client/Models/Components/LmsCreateAssignmentRequestDto.cs +++ b/src/StackOneHQ/Client/Models/Components/LmsCreateAssignmentRequestDto.cs @@ -37,12 +37,6 @@ public class LmsCreateAssignmentRequestDto [JsonProperty("learning_object_id")] public string? LearningObjectId { get; set; } = null; - /// - /// The external reference of the learning object associated with this assignment, this is the main identifier for creating assignments. - /// - [JsonProperty("learning_object_external_reference")] - public string? LearningObjectExternalReference { get; set; } = null; - /// /// The progress associated with this assigment /// @@ -66,5 +60,11 @@ public class LmsCreateAssignmentRequestDto /// [JsonProperty("status")] public LmsCreateAssignmentRequestDtoStatus? Status { get; set; } = null; + + /// + /// The external reference of the learning object associated with this assignment, this is the main identifier for creating assignments. + /// + [JsonProperty("learning_object_external_reference")] + public string LearningObjectExternalReference { get; set; } = default!; } } \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/LmsCreateCompletionRequestDto.cs b/src/StackOneHQ/Client/Models/Components/LmsCreateCompletionRequestDto.cs index 5a2b65c6..d273fc20 100644 --- a/src/StackOneHQ/Client/Models/Components/LmsCreateCompletionRequestDto.cs +++ b/src/StackOneHQ/Client/Models/Components/LmsCreateCompletionRequestDto.cs @@ -42,12 +42,6 @@ public class LmsCreateCompletionRequestDto [JsonProperty("learning_object_id")] public string? LearningObjectId { get; set; } = null; - /// - /// The external reference of the learning object associated with this completion, this is the main identifier for creating completions. - /// - [JsonProperty("learning_object_external_reference")] - public string? LearningObjectExternalReference { get; set; } = null; - /// /// ISO 8601 duration format representing the time spent on completing the learning object /// @@ -67,5 +61,11 @@ public class LmsCreateCompletionRequestDto [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] [JsonProperty("content_id")] public string? ContentId { get; set; } = null; + + /// + /// The external reference of the learning object associated with this completion, this is the main identifier for creating completions. + /// + [JsonProperty("learning_object_external_reference")] + public string LearningObjectExternalReference { get; set; } = default!; } } \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDto.cs b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDto.cs index 75386ae9..886ff3c4 100644 --- a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDto.cs +++ b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDto.cs @@ -24,12 +24,6 @@ public class LmsCreateContentRequestDto [JsonProperty("unified_custom_fields")] public Dictionary? UnifiedCustomFields { get; set; } = null; - /// - /// The external ID associated with this content - /// - [JsonProperty("external_reference")] - public string? ExternalReference { get; set; } = null; - /// /// The title of the content /// @@ -133,6 +127,12 @@ public class LmsCreateContentRequestDto [JsonProperty("created_at")] public DateTime? CreatedAt { get; set; } = null; + /// + /// The external ID associated with this content + /// + [JsonProperty("external_reference")] + public string ExternalReference { get; set; } = default!; + /// /// The categories associated with this content /// diff --git a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoContentType.cs b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoContentType.cs index 147e666f..f8068d9f 100644 --- a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoContentType.cs +++ b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoContentType.cs @@ -24,13 +24,13 @@ public class LmsCreateContentRequestDtoContentType { /// - /// The StackOne unified content type. + /// The content type for write operations. Provide one of the listed enum values. If omitted or set to "unmapped_value", the source_value will be sent to the provider instead. /// [JsonProperty("value")] public LmsCreateContentRequestDtoValue? Value { get; set; } = null; /// - /// The original value from the provider before normalization. + /// The provider-specific value to use when value is omitted or set to "unmapped_value". You are responsible for ensuring this matches the provider's expected format. /// [JsonProperty("source_value", NullValueHandling = NullValueHandling.Include)] public LmsCreateContentRequestDtoSourceValueUnion? SourceValue { get; set; } = null; diff --git a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.cs b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.cs index 8d165081..156853dd 100644 --- a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.cs +++ b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoSourceValueUnion.cs @@ -66,7 +66,7 @@ public override int GetHashCode() /// - /// The original value from the provider before normalization. + /// The provider-specific value to use when value is omitted or set to "unmapped_value". You are responsible for ensuring this matches the provider's expected format. /// [JsonConverter(typeof(LmsCreateContentRequestDtoSourceValueUnion.LmsCreateContentRequestDtoSourceValueUnionConverter))] public class LmsCreateContentRequestDtoSourceValueUnion diff --git a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoValue.cs b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoValue.cs index b2c92769..500a9a33 100644 --- a/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoValue.cs +++ b/src/StackOneHQ/Client/Models/Components/LmsCreateContentRequestDtoValue.cs @@ -17,7 +17,7 @@ namespace StackOneHQ.Client.Models.Components using System.Linq; /// - /// The StackOne unified content type. + /// The content type for write operations. Provide one of the listed enum values. If omitted or set to "unmapped_value", the source_value will be sent to the provider instead. /// [JsonConverter(typeof(OpenEnumConverter))] public class LmsCreateContentRequestDtoValue : IEquatable @@ -27,6 +27,11 @@ public class LmsCreateContentRequestDtoValue : IEquatable _knownValues = @@ -37,6 +42,11 @@ public class LmsCreateContentRequestDtoValue : IEquatable? UnifiedCustomFields { get; set; } = null; - /// - /// The external ID associated with this content - /// - [JsonProperty("external_reference")] - public string? ExternalReference { get; set; } = null; - /// /// The title of the content /// @@ -127,6 +121,12 @@ public class LmsUpsertContentRequestDto [JsonProperty("created_at")] public DateTime? CreatedAt { get; set; } = null; + /// + /// The external ID associated with this content + /// + [JsonProperty("external_reference")] + public string ExternalReference { get; set; } = default!; + /// /// The categories associated with this content /// diff --git a/src/StackOneHQ/Client/Models/Components/SourceValueAccountType.cs b/src/StackOneHQ/Client/Models/Components/SourceValueCountryCode.cs similarity index 92% rename from src/StackOneHQ/Client/Models/Components/SourceValueAccountType.cs rename to src/StackOneHQ/Client/Models/Components/SourceValueCountryCode.cs index 0dada762..b1b2254b 100644 --- a/src/StackOneHQ/Client/Models/Components/SourceValueAccountType.cs +++ b/src/StackOneHQ/Client/Models/Components/SourceValueCountryCode.cs @@ -11,7 +11,7 @@ namespace StackOneHQ.Client.Models.Components { using StackOneHQ.Client.Utils; - public class SourceValueAccountType + public class SourceValueCountryCode { } } \ No newline at end of file diff --git a/src/StackOneHQ/Client/Models/Components/Tag.cs b/src/StackOneHQ/Client/Models/Components/Tag.cs new file mode 100644 index 00000000..a303abc0 --- /dev/null +++ b/src/StackOneHQ/Client/Models/Components/Tag.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace StackOneHQ.Client.Models.Components +{ + using Newtonsoft.Json; + using StackOneHQ.Client.Utils; + + public class Tag + { + + /// + /// Remote ID of the tag + /// + [JsonProperty("remote_id")] + public string? RemoteId { get; set; } = null; + + /// + /// Name of the tag + /// + [JsonProperty("name")] + public string? Name { get; set; } = null; + } +} \ No newline at end of file diff --git a/src/StackOneHQ/Client/Notes.cs b/src/StackOneHQ/Client/Notes.cs index 44db591a..25d3f9e2 100644 --- a/src/StackOneHQ/Client/Notes.cs +++ b/src/StackOneHQ/Client/Notes.cs @@ -37,8 +37,8 @@ public class Notes: INotes { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Notes(SDKConfig config) diff --git a/src/StackOneHQ/Client/Offers.cs b/src/StackOneHQ/Client/Offers.cs index ac5a8d61..522f91be 100644 --- a/src/StackOneHQ/Client/Offers.cs +++ b/src/StackOneHQ/Client/Offers.cs @@ -47,8 +47,8 @@ public class Offers: IOffers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Offers(SDKConfig config) diff --git a/src/StackOneHQ/Client/Policies.cs b/src/StackOneHQ/Client/Policies.cs index 494ad694..600368ad 100644 --- a/src/StackOneHQ/Client/Policies.cs +++ b/src/StackOneHQ/Client/Policies.cs @@ -35,8 +35,8 @@ public class Policies: IPolicies { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Policies(SDKConfig config) diff --git a/src/StackOneHQ/Client/Proxy.cs b/src/StackOneHQ/Client/Proxy.cs index 35d76773..43a6fe52 100644 --- a/src/StackOneHQ/Client/Proxy.cs +++ b/src/StackOneHQ/Client/Proxy.cs @@ -41,8 +41,8 @@ public class Proxy: IProxy { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Proxy(SDKConfig config) diff --git a/src/StackOneHQ/Client/RejectedReasons.cs b/src/StackOneHQ/Client/RejectedReasons.cs index d4d47d88..29b07c2b 100644 --- a/src/StackOneHQ/Client/RejectedReasons.cs +++ b/src/StackOneHQ/Client/RejectedReasons.cs @@ -42,8 +42,8 @@ public class RejectedReasons: IRejectedReasons { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public RejectedReasons(SDKConfig config) diff --git a/src/StackOneHQ/Client/RequestLogs.cs b/src/StackOneHQ/Client/RequestLogs.cs index 21cf29fa..1f34d427 100644 --- a/src/StackOneHQ/Client/RequestLogs.cs +++ b/src/StackOneHQ/Client/RequestLogs.cs @@ -56,8 +56,8 @@ public class RequestLogs: IRequestLogs { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public RequestLogs(SDKConfig config) diff --git a/src/StackOneHQ/Client/SDKConfig.cs b/src/StackOneHQ/Client/SDKConfig.cs index 7e190f22..c35fd82c 100644 --- a/src/StackOneHQ/Client/SDKConfig.cs +++ b/src/StackOneHQ/Client/SDKConfig.cs @@ -42,7 +42,7 @@ public SDKConfig(ISpeakeasyHttpClient? client = null) Client = client ?? new SpeakeasyHttpClient(); ServerUrl = ""; ServerIndex = 0; - UserAgent = "speakeasy-sdk/csharp 0.7.0 2.727.4 1.0.0 StackOneHQ.Client"; + UserAgent = "speakeasy-sdk/csharp 0.7.1 2.729.2 1.0.0 StackOneHQ.Client"; SecuritySource = null; Hooks = new SDKHooks(); RetryConfig = null; diff --git a/src/StackOneHQ/Client/Shifts.cs b/src/StackOneHQ/Client/Shifts.cs index f8b720ec..60df0eaa 100644 --- a/src/StackOneHQ/Client/Shifts.cs +++ b/src/StackOneHQ/Client/Shifts.cs @@ -35,8 +35,8 @@ public class Shifts: IShifts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Shifts(SDKConfig config) diff --git a/src/StackOneHQ/Client/Sms.cs b/src/StackOneHQ/Client/Sms.cs index d647bb7e..2cc9c379 100644 --- a/src/StackOneHQ/Client/Sms.cs +++ b/src/StackOneHQ/Client/Sms.cs @@ -35,8 +35,8 @@ public class Sms: ISms { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Sms(SDKConfig config) diff --git a/src/StackOneHQ/Client/StackOneHQ.Client.csproj b/src/StackOneHQ/Client/StackOneHQ.Client.csproj index eccb5a3f..7a32ddca 100644 --- a/src/StackOneHQ/Client/StackOneHQ.Client.csproj +++ b/src/StackOneHQ/Client/StackOneHQ.Client.csproj @@ -3,7 +3,7 @@ true StackOneHQ.Client - 0.7.0 + 0.7.1 net8.0 stackone Copyright (c) stackone 2025 diff --git a/src/StackOneHQ/Client/StackOneHQClient.cs b/src/StackOneHQ/Client/StackOneHQClient.cs index 064d760a..81f41787 100644 --- a/src/StackOneHQ/Client/StackOneHQClient.cs +++ b/src/StackOneHQ/Client/StackOneHQClient.cs @@ -82,8 +82,8 @@ public class StackOneHQClient: IStackOneHQClient public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IConnectSessions ConnectSessions { get; private set; } public IAccounts Accounts { get; private set; } @@ -158,6 +158,17 @@ public StackOneHQClient(SDKConfig config) Accounting = new Accounting(SDKConfiguration); } + /// + /// Initializes a new instance of the SDK with optional configuration parameters. + /// + /// The security configuration to use for API requests. If provided, this will be used as a static security configuration. + /// A function that returns the security configuration dynamically. This takes precedence over the static security parameter if both are provided. + /// The index of the server to use from the predefined server list. Must be between 0 and the length of the server list. Defaults to 0 if not specified. + /// A custom server URL to use instead of the predefined server list. If provided with urlParams, the URL will be templated with the provided parameters. + /// A dictionary of parameters to use for templating the serverUrl. Only used when serverUrl is provided. + /// A custom HTTP client implementation to use for making API requests. If not provided, the default SpeakeasyHttpClient will be used. + /// Configuration for retry behavior when API requests fail. Defines retry strategies, backoff policies, and maximum retry attempts. + /// Thrown when the serverIndex is out of range (less than 0 or greater than or equal to the server list length). public StackOneHQClient(StackOneHQ.Client.Models.Components.Security? security = null, Func? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null) { if (serverIndex != null) diff --git a/src/StackOneHQ/Client/Tasks.cs b/src/StackOneHQ/Client/Tasks.cs index c3284373..77c10ba7 100644 --- a/src/StackOneHQ/Client/Tasks.cs +++ b/src/StackOneHQ/Client/Tasks.cs @@ -37,8 +37,8 @@ public class Tasks: ITasks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public Tasks(SDKConfig config) diff --git a/src/StackOneHQ/Client/Templates.cs b/src/StackOneHQ/Client/Templates.cs index fda87d73..e54894d8 100644 --- a/src/StackOneHQ/Client/Templates.cs +++ b/src/StackOneHQ/Client/Templates.cs @@ -47,8 +47,8 @@ public class Templates: ITemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public IInApp InApp { get; private set; } public ISms Sms { get; private set; } diff --git a/src/StackOneHQ/Client/Ticketing.cs b/src/StackOneHQ/Client/Ticketing.cs index 766c4101..d8ef5a1d 100644 --- a/src/StackOneHQ/Client/Ticketing.cs +++ b/src/StackOneHQ/Client/Ticketing.cs @@ -116,8 +116,8 @@ public class Ticketing: ITicketing { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ITickets Tickets { get; private set; } public ITicketingUsers Users { get; private set; } diff --git a/src/StackOneHQ/Client/TicketingUsers.cs b/src/StackOneHQ/Client/TicketingUsers.cs index d7acb20b..6b92adbf 100644 --- a/src/StackOneHQ/Client/TicketingUsers.cs +++ b/src/StackOneHQ/Client/TicketingUsers.cs @@ -41,8 +41,8 @@ public class TicketingUsers: ITicketingUsers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public TicketingUsers(SDKConfig config) diff --git a/src/StackOneHQ/Client/Tickets.cs b/src/StackOneHQ/Client/Tickets.cs index b8e7960d..c477bd9e 100644 --- a/src/StackOneHQ/Client/Tickets.cs +++ b/src/StackOneHQ/Client/Tickets.cs @@ -88,8 +88,8 @@ public class Tickets: ITickets { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public ITicketsComments Comments { get; private set; } public IAttachments Attachments { get; private set; } diff --git a/src/StackOneHQ/Client/TicketsComments.cs b/src/StackOneHQ/Client/TicketsComments.cs index 952361be..bc981266 100644 --- a/src/StackOneHQ/Client/TicketsComments.cs +++ b/src/StackOneHQ/Client/TicketsComments.cs @@ -41,8 +41,8 @@ public class TicketsComments: ITicketsComments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public TicketsComments(SDKConfig config) diff --git a/src/StackOneHQ/Client/TimeOff.cs b/src/StackOneHQ/Client/TimeOff.cs index b119488b..57240a10 100644 --- a/src/StackOneHQ/Client/TimeOff.cs +++ b/src/StackOneHQ/Client/TimeOff.cs @@ -37,8 +37,8 @@ public class TimeOff: ITimeOff { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public TimeOff(SDKConfig config) diff --git a/src/StackOneHQ/Client/TimeOffTypes.cs b/src/StackOneHQ/Client/TimeOffTypes.cs index b366b886..a2e0e65e 100644 --- a/src/StackOneHQ/Client/TimeOffTypes.cs +++ b/src/StackOneHQ/Client/TimeOffTypes.cs @@ -35,8 +35,8 @@ public class TimeOffTypes: ITimeOffTypes { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public TimeOffTypes(SDKConfig config) diff --git a/src/StackOneHQ/Client/UsersAssignments.cs b/src/StackOneHQ/Client/UsersAssignments.cs index 6f48d9a1..4b2ed5ba 100644 --- a/src/StackOneHQ/Client/UsersAssignments.cs +++ b/src/StackOneHQ/Client/UsersAssignments.cs @@ -35,8 +35,8 @@ public class UsersAssignments: IUsersAssignments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public UsersAssignments(SDKConfig config) diff --git a/src/StackOneHQ/Client/WorkEligibility.cs b/src/StackOneHQ/Client/WorkEligibility.cs index 0d1318da..022d673f 100644 --- a/src/StackOneHQ/Client/WorkEligibility.cs +++ b/src/StackOneHQ/Client/WorkEligibility.cs @@ -35,8 +35,8 @@ public class WorkEligibility: IWorkEligibility { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.7.0"; - private const string _sdkGenVersion = "2.727.4"; + private const string _sdkVersion = "0.7.1"; + private const string _sdkGenVersion = "2.729.2"; private const string _openapiDocVersion = "1.0.0"; public WorkEligibility(SDKConfig config) From 4c3a3f64134ba5ab119c14a6eeb71f48b179ad49 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 23 Oct 2025 15:00:38 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow