merge_ats_client 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +53 -17
- data/docs/AccountDetails.md +34 -0
- data/docs/AccountDetailsAndActions.md +34 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +79 -0
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/ActivitiesApi.md +6 -4
- data/docs/Activity.md +7 -5
- data/docs/Application.md +12 -8
- data/docs/ApplicationEndpointRequest.md +20 -0
- data/docs/ApplicationRequest.md +16 -8
- data/docs/ApplicationResponse.md +24 -0
- data/docs/ApplicationsApi.md +98 -18
- data/docs/Attachment.md +3 -1
- data/docs/AttachmentEndpointRequest.md +20 -0
- data/docs/AttachmentRequest.md +5 -1
- data/docs/AttachmentResponse.md +24 -0
- data/docs/AttachmentsApi.md +93 -15
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/Candidate.md +11 -7
- data/docs/CandidateEndpointRequest.md +20 -0
- data/docs/CandidateRequest.md +15 -7
- data/docs/CandidateResponse.md +24 -0
- data/docs/CandidatesApi.md +171 -17
- data/docs/CategoriesEnum.md +15 -0
- data/docs/CategoryEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +8 -4
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/DeleteAccountApi.md +78 -0
- data/docs/Department.md +3 -1
- data/docs/DepartmentsApi.md +6 -4
- data/docs/EEOC.md +5 -3
- data/docs/EeocsApi.md +6 -4
- data/docs/EmailAddress.md +1 -1
- data/docs/EmailAddressRequest.md +1 -1
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +2 -2
- data/docs/IgnoreCommonModel.md +20 -0
- data/docs/IgnoreCommonModelRequest.md +20 -0
- data/docs/InterviewsApi.md +6 -84
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +177 -0
- data/docs/Job.md +13 -7
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +9 -5
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +9 -7
- data/docs/OffersApi.md +6 -4
- data/docs/Office.md +3 -1
- data/docs/OfficesApi.md +6 -4
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/PassthroughApi.md +2 -2
- data/docs/ReasonEnum.md +15 -0
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/RejectReason.md +3 -1
- data/docs/RejectReasonsApi.md +6 -4
- data/docs/RemoteUser.md +4 -2
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/ScheduledInterview.md +11 -9
- data/docs/Scorecard.md +8 -6
- data/docs/ScorecardsApi.md +6 -84
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tag.md +3 -1
- data/docs/TagsApi.md +4 -2
- data/docs/UsersApi.md +7 -84
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_ats_client/api/account_details_api.rb +84 -0
- data/lib/merge_ats_client/api/account_token_api.rb +1 -1
- data/lib/merge_ats_client/api/activities_api.rb +4 -1
- data/lib/merge_ats_client/api/applications_api.rb +87 -16
- data/lib/merge_ats_client/api/attachments_api.rb +95 -16
- data/lib/merge_ats_client/api/available_actions_api.rb +1 -1
- data/lib/merge_ats_client/api/candidates_api.rb +163 -16
- data/lib/merge_ats_client/api/delete_account_api.rb +82 -0
- data/lib/merge_ats_client/api/departments_api.rb +4 -1
- data/lib/merge_ats_client/api/eeocs_api.rb +4 -1
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/generate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/interviews_api.rb +4 -77
- data/lib/merge_ats_client/api/issues_api.rb +181 -0
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +6 -3
- data/lib/merge_ats_client/api/jobs_api.rb +10 -4
- data/lib/merge_ats_client/api/link_token_api.rb +1 -1
- data/lib/merge_ats_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_ats_client/api/offers_api.rb +4 -1
- data/lib/merge_ats_client/api/offices_api.rb +4 -1
- data/lib/merge_ats_client/api/passthrough_api.rb +1 -1
- data/lib/merge_ats_client/api/regenerate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -1
- data/lib/merge_ats_client/api/scorecards_api.rb +4 -77
- data/lib/merge_ats_client/api/sync_status_api.rb +5 -67
- data/lib/merge_ats_client/api/tags_api.rb +4 -1
- data/lib/merge_ats_client/api/users_api.rb +4 -77
- data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ats_client/api_client.rb +1 -1
- data/lib/merge_ats_client/api_error.rb +1 -1
- data/lib/merge_ats_client/configuration.rb +7 -5
- data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
- data/lib/merge_ats_client/models/{end_user_details.rb → account_details.rb} +68 -66
- data/lib/merge_ats_client/models/{scheduled_interview_request.rb → account_details_and_actions.rb} +85 -100
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/account_integration.rb +7 -29
- data/lib/merge_ats_client/models/account_token.rb +2 -2
- data/lib/merge_ats_client/models/activity.rb +17 -8
- data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/application.rb +29 -12
- data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/application_request.rb +70 -13
- data/lib/merge_ats_client/models/application_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment.rb +16 -7
- data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/attachment_request.rb +31 -7
- data/lib/merge_ats_client/models/attachment_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment_type_enum.rb +0 -2
- data/lib/merge_ats_client/models/available_actions.rb +2 -2
- data/lib/merge_ats_client/models/candidate.rb +32 -7
- data/lib/merge_ats_client/models/candidate_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/candidate_request.rb +72 -7
- data/lib/merge_ats_client/models/candidate_response.rb +266 -0
- data/lib/merge_ats_client/models/categories_enum.rb +38 -0
- data/lib/merge_ats_client/models/category_enum.rb +38 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +81 -10
- data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
- data/lib/merge_ats_client/models/department.rb +18 -8
- data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/eeoc.rb +17 -8
- data/lib/merge_ats_client/models/email_address.rb +3 -3
- data/lib/merge_ats_client/models/email_address_request.rb +3 -3
- data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/encoding_enum.rb +35 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +148 -29
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/gender_enum.rb +1 -1
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +21 -2
- data/lib/merge_ats_client/models/{remote_user_request.rb → ignore_common_model.rb} +30 -85
- data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_ats_client/models/{scorecard_request.rb → issue.rb} +56 -62
- data/lib/merge_ats_client/models/issue_status_enum.rb +35 -0
- data/lib/merge_ats_client/models/job.rb +43 -7
- data/lib/merge_ats_client/models/job_interview_stage.rb +17 -8
- data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/link_token.rb +2 -2
- data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ats_client/models/meta_response.rb +262 -0
- data/lib/merge_ats_client/models/method_enum.rb +1 -1
- data/lib/merge_ats_client/models/model_operation.rb +2 -2
- data/lib/merge_ats_client/models/{patched_application_request.rb → multipart_form_field_request.rb} +120 -88
- data/lib/merge_ats_client/models/offer.rb +17 -9
- data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/office.rb +18 -8
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
- data/lib/merge_ats_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_activity_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_application_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_department_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_job_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_offer_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_office_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +2 -2
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +2 -2
- data/lib/merge_ats_client/models/phone_number.rb +3 -3
- data/lib/merge_ats_client/models/phone_number_request.rb +3 -3
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/race_enum.rb +1 -1
- data/lib/merge_ats_client/models/reason_enum.rb +36 -0
- data/lib/merge_ats_client/models/reject_reason.rb +18 -8
- data/lib/merge_ats_client/models/remote_data.rb +2 -2
- data/lib/merge_ats_client/models/remote_data_request.rb +21 -2
- data/lib/merge_ats_client/models/remote_key.rb +2 -2
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +21 -2
- data/lib/merge_ats_client/models/remote_response.rb +2 -2
- data/lib/merge_ats_client/models/remote_user.rb +18 -8
- data/lib/merge_ats_client/models/request_format_enum.rb +36 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +18 -10
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/scorecard.rb +17 -10
- data/lib/merge_ats_client/models/sync_status.rb +2 -2
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -2
- data/lib/merge_ats_client/models/tag.rb +18 -8
- data/lib/merge_ats_client/models/url.rb +8 -8
- data/lib/merge_ats_client/models/url_request.rb +8 -8
- data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
- data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
- data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_ats_client/models/webhook_receiver_request.rb +280 -0
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +38 -4
- data/merge_ats_client.gemspec +1 -1
- data/spec/api/account_details_api_spec.rb +46 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/activities_api_spec.rb +4 -1
- data/spec/api/applications_api_spec.rb +31 -1
- data/spec/api/attachments_api_spec.rb +31 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/candidates_api_spec.rb +44 -1
- data/spec/api/departments_api_spec.rb +4 -1
- data/spec/api/eeocs_api_spec.rb +4 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/interviews_api_spec.rb +4 -1
- data/spec/api/issues_api_spec.rb +9 -5
- data/spec/api/job_interview_stages_api_spec.rb +4 -1
- data/spec/api/jobs_api_spec.rb +6 -1
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/offers_api_spec.rb +4 -1
- data/spec/api/offices_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -2
- data/spec/api/regenerate_key_api_spec.rb +3 -5
- data/spec/api/reject_reasons_api_spec.rb +4 -1
- data/spec/api/scorecards_api_spec.rb +4 -1
- data/spec/api/sync_status_api_spec.rb +8 -5
- data/spec/api/tags_api_spec.rb +3 -1
- data/spec/api/users_api_spec.rb +5 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/access_role_enum_spec.rb +1 -1
- data/spec/models/{scorecard_request_spec.rb → account_details_and_actions_integration_spec.rb} +19 -13
- data/spec/models/{scheduled_interview_request_spec.rb → account_details_and_actions_spec.rb} +15 -27
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/{patched_application_request_spec.rb → account_details_spec.rb} +16 -16
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/activity_spec.rb +13 -1
- data/spec/models/activity_type_enum_spec.rb +1 -1
- data/spec/models/application_endpoint_request_spec.rb +40 -0
- data/spec/models/application_request_spec.rb +25 -1
- data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
- data/spec/models/application_spec.rb +19 -7
- data/spec/models/attachment_endpoint_request_spec.rb +40 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_response_spec.rb +52 -0
- data/spec/models/attachment_spec.rb +25 -1
- data/spec/models/available_actions_spec.rb +1 -1
- data/spec/models/candidate_endpoint_request_spec.rb +40 -0
- data/spec/models/candidate_request_spec.rb +37 -1
- data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
- data/spec/models/candidate_spec.rb +19 -1
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/data_passthrough_request_spec.rb +13 -1
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/department_spec.rb +13 -1
- data/spec/models/disability_status_enum_spec.rb +1 -1
- data/spec/models/eeoc_spec.rb +13 -1
- data/spec/models/email_address_request_spec.rb +1 -1
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/email_address_type_enum_spec.rb +1 -1
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +13 -5
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/ignore_common_model_request_spec.rb +40 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/job_interview_stage_spec.rb +13 -1
- data/spec/models/job_spec.rb +31 -1
- data/spec/models/job_status_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +1 -1
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
- data/spec/models/offer_spec.rb +13 -1
- data/spec/models/offer_status_enum_spec.rb +1 -1
- data/spec/models/office_spec.rb +13 -1
- data/spec/models/overall_recommendation_enum_spec.rb +1 -1
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_activity_list_spec.rb +1 -1
- data/spec/models/paginated_application_list_spec.rb +1 -1
- data/spec/models/paginated_attachment_list_spec.rb +1 -1
- data/spec/models/paginated_candidate_list_spec.rb +1 -1
- data/spec/models/paginated_department_list_spec.rb +1 -1
- data/spec/models/paginated_eeoc_list_spec.rb +1 -1
- data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
- data/spec/models/paginated_job_list_spec.rb +1 -1
- data/spec/models/paginated_offer_list_spec.rb +1 -1
- data/spec/models/paginated_office_list_spec.rb +1 -1
- data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
- data/spec/models/paginated_remote_user_list_spec.rb +1 -1
- data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
- data/spec/models/paginated_scorecard_list_spec.rb +1 -1
- data/spec/models/paginated_tag_list_spec.rb +1 -1
- data/spec/models/phone_number_request_spec.rb +1 -1
- data/spec/models/phone_number_spec.rb +1 -1
- data/spec/models/phone_number_type_enum_spec.rb +1 -1
- data/spec/models/race_enum_spec.rb +1 -1
- data/spec/models/reason_enum_spec.rb +28 -0
- data/spec/models/reject_reason_spec.rb +13 -1
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +1 -1
- data/spec/models/remote_user_spec.rb +13 -1
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/scheduled_interview_spec.rb +13 -1
- data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
- data/spec/models/scorecard_spec.rb +13 -1
- data/spec/models/sync_status_spec.rb +1 -1
- data/spec/models/tag_spec.rb +13 -1
- data/spec/models/url_request_spec.rb +1 -1
- data/spec/models/url_spec.rb +1 -1
- data/spec/models/url_type_enum_spec.rb +1 -1
- data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
- data/spec/models/veteran_status_enum_spec.rb +1 -1
- data/spec/models/visibility_enum_spec.rb +1 -1
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- data/spec/spec_helper.rb +1 -1
- metadata +220 -113
- data/config.json +0 -2
- data/docs/DataPassthrough.md +0 -24
- data/docs/EndUserDetails.md +0 -24
- data/docs/PatchedApplicationRequest.md +0 -34
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/docs/RemoteUserRequest.md +0 -30
- data/docs/ScheduledInterviewRequest.md +0 -38
- data/docs/ScorecardRequest.md +0 -30
- data/test_ats.rb +0 -22
- data/test_signature.rb +0 -32
@@ -0,0 +1,35 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeATSClient
|
17
|
+
class IssueStatusEnum
|
18
|
+
ONGOING = "ONGOING".freeze
|
19
|
+
RESOLVED = "RESOLVED".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
value
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Job Object ### Description The `Job` object is used to represent a Job offering at a company.
|
17
|
+
# # The Job Object ### Description The `Job` object is used to represent a Job offering at a company. ### Usage Example Fetch from the `LIST Jobs` endpoint to show all job postings.
|
18
18
|
class Job
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -27,6 +27,9 @@ module MergeATSClient
|
|
27
27
|
# The job's description.
|
28
28
|
attr_accessor :description
|
29
29
|
|
30
|
+
# The job's code. Typically an additional identifier used to reference the particular job that is displayed on the ATS.
|
31
|
+
attr_accessor :code
|
32
|
+
|
30
33
|
# The job's status.
|
31
34
|
attr_accessor :status
|
32
35
|
|
@@ -39,14 +42,23 @@ module MergeATSClient
|
|
39
42
|
# Whether the job is confidential.
|
40
43
|
attr_accessor :confidential
|
41
44
|
|
45
|
+
# IDs of `Department` objects for this `Job`.
|
42
46
|
attr_accessor :departments
|
43
47
|
|
48
|
+
# IDs of `Office` objects for this `Job`.
|
44
49
|
attr_accessor :offices
|
45
50
|
|
51
|
+
# IDs of `RemoteUser` objects that serve as hiring managers for this `Job`.
|
46
52
|
attr_accessor :hiring_managers
|
47
53
|
|
54
|
+
# IDs of RemoteUser objects that serve as recruiters for this Job.
|
55
|
+
attr_accessor :recruiters
|
56
|
+
|
48
57
|
attr_accessor :remote_data
|
49
58
|
|
59
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
60
|
+
attr_accessor :remote_was_deleted
|
61
|
+
|
50
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
63
|
def self.attribute_map
|
52
64
|
{
|
@@ -54,6 +66,7 @@ module MergeATSClient
|
|
54
66
|
:'remote_id' => :'remote_id',
|
55
67
|
:'name' => :'name',
|
56
68
|
:'description' => :'description',
|
69
|
+
:'code' => :'code',
|
57
70
|
:'status' => :'status',
|
58
71
|
:'remote_created_at' => :'remote_created_at',
|
59
72
|
:'remote_updated_at' => :'remote_updated_at',
|
@@ -61,7 +74,9 @@ module MergeATSClient
|
|
61
74
|
:'departments' => :'departments',
|
62
75
|
:'offices' => :'offices',
|
63
76
|
:'hiring_managers' => :'hiring_managers',
|
64
|
-
:'
|
77
|
+
:'recruiters' => :'recruiters',
|
78
|
+
:'remote_data' => :'remote_data',
|
79
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
65
80
|
}
|
66
81
|
end
|
67
82
|
|
@@ -77,6 +92,7 @@ module MergeATSClient
|
|
77
92
|
:'remote_id' => :'String',
|
78
93
|
:'name' => :'String',
|
79
94
|
:'description' => :'String',
|
95
|
+
:'code' => :'String',
|
80
96
|
:'status' => :'JobStatusEnum',
|
81
97
|
:'remote_created_at' => :'Time',
|
82
98
|
:'remote_updated_at' => :'Time',
|
@@ -84,7 +100,9 @@ module MergeATSClient
|
|
84
100
|
:'departments' => :'Array<String>',
|
85
101
|
:'offices' => :'Array<String>',
|
86
102
|
:'hiring_managers' => :'Array<String>',
|
87
|
-
:'
|
103
|
+
:'recruiters' => :'Array<String>',
|
104
|
+
:'remote_data' => :'Array<RemoteData>',
|
105
|
+
:'remote_was_deleted' => :'Boolean'
|
88
106
|
}
|
89
107
|
end
|
90
108
|
|
@@ -94,11 +112,12 @@ module MergeATSClient
|
|
94
112
|
:'remote_id',
|
95
113
|
:'name',
|
96
114
|
:'description',
|
115
|
+
:'code',
|
97
116
|
:'status',
|
98
117
|
:'remote_created_at',
|
99
118
|
:'remote_updated_at',
|
100
119
|
:'confidential',
|
101
|
-
:'remote_data'
|
120
|
+
:'remote_data',
|
102
121
|
])
|
103
122
|
end
|
104
123
|
|
@@ -133,6 +152,10 @@ module MergeATSClient
|
|
133
152
|
self.description = attributes[:'description']
|
134
153
|
end
|
135
154
|
|
155
|
+
if attributes.key?(:'code')
|
156
|
+
self.code = attributes[:'code']
|
157
|
+
end
|
158
|
+
|
136
159
|
if attributes.key?(:'status')
|
137
160
|
self.status = attributes[:'status']
|
138
161
|
end
|
@@ -167,11 +190,21 @@ module MergeATSClient
|
|
167
190
|
end
|
168
191
|
end
|
169
192
|
|
193
|
+
if attributes.key?(:'recruiters')
|
194
|
+
if (value = attributes[:'recruiters']).is_a?(Array)
|
195
|
+
self.recruiters = value
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
170
199
|
if attributes.key?(:'remote_data')
|
171
200
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
172
201
|
self.remote_data = value
|
173
202
|
end
|
174
203
|
end
|
204
|
+
|
205
|
+
if attributes.key?(:'remote_was_deleted')
|
206
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
207
|
+
end
|
175
208
|
end
|
176
209
|
|
177
210
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -196,6 +229,7 @@ module MergeATSClient
|
|
196
229
|
remote_id == o.remote_id &&
|
197
230
|
name == o.name &&
|
198
231
|
description == o.description &&
|
232
|
+
code == o.code &&
|
199
233
|
status == o.status &&
|
200
234
|
remote_created_at == o.remote_created_at &&
|
201
235
|
remote_updated_at == o.remote_updated_at &&
|
@@ -203,7 +237,9 @@ module MergeATSClient
|
|
203
237
|
departments == o.departments &&
|
204
238
|
offices == o.offices &&
|
205
239
|
hiring_managers == o.hiring_managers &&
|
206
|
-
|
240
|
+
recruiters == o.recruiters &&
|
241
|
+
remote_data == o.remote_data &&
|
242
|
+
remote_was_deleted == o.remote_was_deleted
|
207
243
|
end
|
208
244
|
|
209
245
|
# @see the `==` method
|
@@ -215,7 +251,7 @@ module MergeATSClient
|
|
215
251
|
# Calculates hash code according to all attributes.
|
216
252
|
# @return [Integer] Hash code
|
217
253
|
def hash
|
218
|
-
[id, remote_id, name, description, status, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, remote_data].hash
|
254
|
+
[id, remote_id, name, description, code, status, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_data, remote_was_deleted].hash
|
219
255
|
end
|
220
256
|
|
221
257
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent the stage of an interview
|
17
|
+
# # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent the stage of an interview ### Usage Example Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company.
|
18
18
|
class JobInterviewStage
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -24,11 +24,13 @@ module MergeATSClient
|
|
24
24
|
# The stage's name.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
-
# If stages are specific to a job, this is the job that this stage belongs to.
|
28
27
|
attr_accessor :job
|
29
28
|
|
30
29
|
attr_accessor :remote_data
|
31
30
|
|
31
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
32
|
+
attr_accessor :remote_was_deleted
|
33
|
+
|
32
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
35
|
def self.attribute_map
|
34
36
|
{
|
@@ -36,7 +38,8 @@ module MergeATSClient
|
|
36
38
|
:'remote_id' => :'remote_id',
|
37
39
|
:'name' => :'name',
|
38
40
|
:'job' => :'job',
|
39
|
-
:'remote_data' => :'remote_data'
|
41
|
+
:'remote_data' => :'remote_data',
|
42
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
40
43
|
}
|
41
44
|
end
|
42
45
|
|
@@ -52,7 +55,8 @@ module MergeATSClient
|
|
52
55
|
:'remote_id' => :'String',
|
53
56
|
:'name' => :'String',
|
54
57
|
:'job' => :'String',
|
55
|
-
:'remote_data' => :'Array<RemoteData>'
|
58
|
+
:'remote_data' => :'Array<RemoteData>',
|
59
|
+
:'remote_was_deleted' => :'Boolean'
|
56
60
|
}
|
57
61
|
end
|
58
62
|
|
@@ -62,7 +66,7 @@ module MergeATSClient
|
|
62
66
|
:'remote_id',
|
63
67
|
:'name',
|
64
68
|
:'job',
|
65
|
-
:'remote_data'
|
69
|
+
:'remote_data',
|
66
70
|
])
|
67
71
|
end
|
68
72
|
|
@@ -102,6 +106,10 @@ module MergeATSClient
|
|
102
106
|
self.remote_data = value
|
103
107
|
end
|
104
108
|
end
|
109
|
+
|
110
|
+
if attributes.key?(:'remote_was_deleted')
|
111
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
112
|
+
end
|
105
113
|
end
|
106
114
|
|
107
115
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,7 +134,8 @@ module MergeATSClient
|
|
126
134
|
remote_id == o.remote_id &&
|
127
135
|
name == o.name &&
|
128
136
|
job == o.job &&
|
129
|
-
remote_data == o.remote_data
|
137
|
+
remote_data == o.remote_data &&
|
138
|
+
remote_was_deleted == o.remote_was_deleted
|
130
139
|
end
|
131
140
|
|
132
141
|
# @see the `==` method
|
@@ -138,7 +147,7 @@ module MergeATSClient
|
|
138
147
|
# Calculates hash code according to all attributes.
|
139
148
|
# @return [Integer] Hash code
|
140
149
|
def hash
|
141
|
-
[id, remote_id, name, job, remote_data].hash
|
150
|
+
[id, remote_id, name, job, remote_data, remote_was_deleted].hash
|
142
151
|
end
|
143
152
|
|
144
153
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -154,7 +154,7 @@ module MergeATSClient
|
|
154
154
|
when :Date
|
155
155
|
Date.parse(value)
|
156
156
|
when :String
|
157
|
-
value
|
157
|
+
value
|
158
158
|
when :Integer
|
159
159
|
value.to_i
|
160
160
|
when :Float
|
@@ -0,0 +1,237 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeATSClient
|
17
|
+
class LinkedAccountStatus
|
18
|
+
attr_accessor :linked_account_status
|
19
|
+
|
20
|
+
attr_accessor :can_make_request
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'linked_account_status' => :'linked_account_status',
|
26
|
+
:'can_make_request' => :'can_make_request'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'linked_account_status' => :'String',
|
39
|
+
:'can_make_request' => :'Boolean'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::LinkedAccountStatus` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::LinkedAccountStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'linked_account_status')
|
65
|
+
self.linked_account_status = attributes[:'linked_account_status']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'can_make_request')
|
69
|
+
self.can_make_request = attributes[:'can_make_request']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
if @linked_account_status.nil?
|
78
|
+
invalid_properties.push('invalid value for "linked_account_status", linked_account_status cannot be nil.')
|
79
|
+
end
|
80
|
+
|
81
|
+
if @can_make_request.nil?
|
82
|
+
invalid_properties.push('invalid value for "can_make_request", can_make_request cannot be nil.')
|
83
|
+
end
|
84
|
+
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
return false if @linked_account_status.nil?
|
92
|
+
return false if @can_make_request.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Checks equality by comparing each attribute.
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def ==(o)
|
99
|
+
return true if self.equal?(o)
|
100
|
+
self.class == o.class &&
|
101
|
+
linked_account_status == o.linked_account_status &&
|
102
|
+
can_make_request == o.can_make_request
|
103
|
+
end
|
104
|
+
|
105
|
+
# @see the `==` method
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def eql?(o)
|
108
|
+
self == o
|
109
|
+
end
|
110
|
+
|
111
|
+
# Calculates hash code according to all attributes.
|
112
|
+
# @return [Integer] Hash code
|
113
|
+
def hash
|
114
|
+
[linked_account_status, can_make_request].hash
|
115
|
+
end
|
116
|
+
|
117
|
+
# Builds the object from hash
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
# @return [Object] Returns the model itself
|
120
|
+
def self.build_from_hash(attributes)
|
121
|
+
new.build_from_hash(attributes)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Builds the object from hash
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
126
|
+
# @return [Object] Returns the model itself
|
127
|
+
def build_from_hash(attributes)
|
128
|
+
return nil unless attributes.is_a?(Hash)
|
129
|
+
self.class.openapi_types.each_pair do |key, type|
|
130
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
|
+
self.send("#{key}=", nil)
|
132
|
+
elsif type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
self
|
144
|
+
end
|
145
|
+
|
146
|
+
# Deserializes the data based on type
|
147
|
+
# @param string type Data type
|
148
|
+
# @param string value Value to be deserialized
|
149
|
+
# @return [Object] Deserialized data
|
150
|
+
def _deserialize(type, value)
|
151
|
+
case type.to_sym
|
152
|
+
when :Time
|
153
|
+
Time.parse(value)
|
154
|
+
when :Date
|
155
|
+
Date.parse(value)
|
156
|
+
when :String
|
157
|
+
value
|
158
|
+
when :Integer
|
159
|
+
value.to_i
|
160
|
+
when :Float
|
161
|
+
value.to_f
|
162
|
+
when :Boolean
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
164
|
+
true
|
165
|
+
else
|
166
|
+
false
|
167
|
+
end
|
168
|
+
when :Object
|
169
|
+
# generic object (usually a Hash), return directly
|
170
|
+
value
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each do |k, v|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
else # model
|
183
|
+
# models (e.g. Pet) or oneOf
|
184
|
+
klass = MergeATSClient.const_get(type)
|
185
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Returns the string representation of the object
|
190
|
+
# @return [String] String presentation of the object
|
191
|
+
def to_s
|
192
|
+
to_hash.to_s
|
193
|
+
end
|
194
|
+
|
195
|
+
# to_body is an alias to to_hash (backward compatibility)
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_body
|
198
|
+
to_hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the object in the form of hash
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_hash
|
204
|
+
hash = {}
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
206
|
+
value = self.send(attr)
|
207
|
+
if value.nil?
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
210
|
+
end
|
211
|
+
|
212
|
+
hash[param] = _to_hash(value)
|
213
|
+
end
|
214
|
+
hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Outputs non-array value in the form of hash
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
219
|
+
# @param [Object] value Any valid value
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
221
|
+
def _to_hash(value)
|
222
|
+
if value.is_a?(Array)
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
224
|
+
elsif value.is_a?(Hash)
|
225
|
+
{}.tap do |hash|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
227
|
+
end
|
228
|
+
elsif value.respond_to? :to_hash
|
229
|
+
value.to_hash
|
230
|
+
else
|
231
|
+
value
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|