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
@@ -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
|
|
@@ -197,11 +197,13 @@ module MergeATSClient
|
|
197
197
|
|
198
198
|
# Gets API key (with prefix if set).
|
199
199
|
# @param [String] param_name the parameter name of API key auth
|
200
|
-
def api_key_with_prefix(param_name)
|
200
|
+
def api_key_with_prefix(param_name, param_alias = nil)
|
201
|
+
key = @api_key[param_name]
|
202
|
+
key = @api_key.fetch(param_alias, key) unless param_alias.nil?
|
201
203
|
if @api_key_prefix[param_name]
|
202
|
-
"#{@api_key_prefix[param_name]} #{
|
204
|
+
"#{@api_key_prefix[param_name]} #{key}"
|
203
205
|
else
|
204
|
-
|
206
|
+
key
|
205
207
|
end
|
206
208
|
end
|
207
209
|
|
@@ -218,7 +220,7 @@ module MergeATSClient
|
|
218
220
|
type: 'api_key',
|
219
221
|
in: 'header',
|
220
222
|
key: 'Authorization',
|
221
|
-
value: api_key_with_prefix('
|
223
|
+
value: api_key_with_prefix('tokenAuth')
|
222
224
|
},
|
223
225
|
}
|
224
226
|
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,44 +14,37 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class AccountDetails
|
18
|
+
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :integration
|
21
|
+
|
22
|
+
attr_accessor :integration_slug
|
23
|
+
|
24
|
+
attr_accessor :category
|
21
25
|
|
22
26
|
attr_accessor :end_user_origin_id
|
23
27
|
|
24
|
-
attr_accessor :
|
25
|
-
|
26
|
-
class EnumAttributeValidator
|
27
|
-
attr_reader :datatype
|
28
|
-
attr_reader :allowable_values
|
29
|
-
|
30
|
-
def initialize(datatype, allowable_values)
|
31
|
-
@allowable_values = allowable_values.map do |value|
|
32
|
-
case datatype.to_s
|
33
|
-
when /Integer/i
|
34
|
-
value.to_i
|
35
|
-
when /Float/i
|
36
|
-
value.to_f
|
37
|
-
else
|
38
|
-
value
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
28
|
+
attr_accessor :end_user_organization_name
|
42
29
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
30
|
+
attr_accessor :end_user_email_address
|
31
|
+
|
32
|
+
attr_accessor :status
|
33
|
+
|
34
|
+
attr_accessor :webhook_listener_url
|
47
35
|
|
48
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
37
|
def self.attribute_map
|
50
38
|
{
|
51
|
-
:'
|
52
|
-
:'
|
39
|
+
:'id' => :'id',
|
40
|
+
:'integration' => :'integration',
|
41
|
+
:'integration_slug' => :'integration_slug',
|
42
|
+
:'category' => :'category',
|
53
43
|
:'end_user_origin_id' => :'end_user_origin_id',
|
54
|
-
:'
|
44
|
+
:'end_user_organization_name' => :'end_user_organization_name',
|
45
|
+
:'end_user_email_address' => :'end_user_email_address',
|
46
|
+
:'status' => :'status',
|
47
|
+
:'webhook_listener_url' => :'webhook_listener_url'
|
55
48
|
}
|
56
49
|
end
|
57
50
|
|
@@ -63,16 +56,22 @@ module MergeATSClient
|
|
63
56
|
# Attribute type mapping.
|
64
57
|
def self.openapi_types
|
65
58
|
{
|
66
|
-
:'
|
67
|
-
:'
|
59
|
+
:'id' => :'String',
|
60
|
+
:'integration' => :'String',
|
61
|
+
:'integration_slug' => :'String',
|
62
|
+
:'category' => :'CategoryEnum',
|
68
63
|
:'end_user_origin_id' => :'String',
|
69
|
-
:'
|
64
|
+
:'end_user_organization_name' => :'String',
|
65
|
+
:'end_user_email_address' => :'String',
|
66
|
+
:'status' => :'String',
|
67
|
+
:'webhook_listener_url' => :'String'
|
70
68
|
}
|
71
69
|
end
|
72
70
|
|
73
71
|
# List of attributes with nullable: true
|
74
72
|
def self.openapi_nullable
|
75
73
|
Set.new([
|
74
|
+
:'category',
|
76
75
|
])
|
77
76
|
end
|
78
77
|
|
@@ -80,66 +79,64 @@ module MergeATSClient
|
|
80
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
81
80
|
def initialize(attributes = {})
|
82
81
|
if (!attributes.is_a?(Hash))
|
83
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AccountDetails` initialize method"
|
84
83
|
end
|
85
84
|
|
86
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
87
86
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
88
87
|
if (!self.class.attribute_map.key?(k.to_sym))
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AccountDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
90
89
|
end
|
91
90
|
h[k.to_sym] = v
|
92
91
|
}
|
93
92
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
93
|
+
if attributes.key?(:'id')
|
94
|
+
self.id = attributes[:'id']
|
96
95
|
end
|
97
96
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
97
|
+
if attributes.key?(:'integration')
|
98
|
+
self.integration = attributes[:'integration']
|
100
99
|
end
|
101
100
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
101
|
+
if attributes.key?(:'integration_slug')
|
102
|
+
self.integration_slug = attributes[:'integration_slug']
|
104
103
|
end
|
105
104
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
|
108
|
-
self.categories = value
|
109
|
-
end
|
105
|
+
if attributes.key?(:'category')
|
106
|
+
self.category = attributes[:'category']
|
110
107
|
end
|
111
|
-
end
|
112
108
|
|
113
|
-
|
114
|
-
|
115
|
-
def list_invalid_properties
|
116
|
-
invalid_properties = Array.new
|
117
|
-
if @end_user_email_address.nil?
|
118
|
-
invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
|
109
|
+
if attributes.key?(:'end_user_origin_id')
|
110
|
+
self.end_user_origin_id = attributes[:'end_user_origin_id']
|
119
111
|
end
|
120
112
|
|
121
|
-
if
|
122
|
-
|
113
|
+
if attributes.key?(:'end_user_organization_name')
|
114
|
+
self.end_user_organization_name = attributes[:'end_user_organization_name']
|
123
115
|
end
|
124
116
|
|
125
|
-
if
|
126
|
-
|
117
|
+
if attributes.key?(:'end_user_email_address')
|
118
|
+
self.end_user_email_address = attributes[:'end_user_email_address']
|
127
119
|
end
|
128
120
|
|
129
|
-
if
|
130
|
-
|
121
|
+
if attributes.key?(:'status')
|
122
|
+
self.status = attributes[:'status']
|
131
123
|
end
|
132
124
|
|
125
|
+
if attributes.key?(:'webhook_listener_url')
|
126
|
+
self.webhook_listener_url = attributes[:'webhook_listener_url']
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
131
|
+
# @return Array for valid properties with the reasons
|
132
|
+
def list_invalid_properties
|
133
|
+
invalid_properties = Array.new
|
133
134
|
invalid_properties
|
134
135
|
end
|
135
136
|
|
136
137
|
# Check to see if the all the properties in the model are valid
|
137
138
|
# @return true if the model is valid
|
138
139
|
def valid?
|
139
|
-
return false if @end_user_email_address.nil?
|
140
|
-
return false if @end_user_organization_name.nil?
|
141
|
-
return false if @end_user_origin_id.nil?
|
142
|
-
return false if @categories.nil?
|
143
140
|
true
|
144
141
|
end
|
145
142
|
|
@@ -148,10 +145,15 @@ module MergeATSClient
|
|
148
145
|
def ==(o)
|
149
146
|
return true if self.equal?(o)
|
150
147
|
self.class == o.class &&
|
151
|
-
|
152
|
-
|
148
|
+
id == o.id &&
|
149
|
+
integration == o.integration &&
|
150
|
+
integration_slug == o.integration_slug &&
|
151
|
+
category == o.category &&
|
153
152
|
end_user_origin_id == o.end_user_origin_id &&
|
154
|
-
|
153
|
+
end_user_organization_name == o.end_user_organization_name &&
|
154
|
+
end_user_email_address == o.end_user_email_address &&
|
155
|
+
status == o.status &&
|
156
|
+
webhook_listener_url == o.webhook_listener_url
|
155
157
|
end
|
156
158
|
|
157
159
|
# @see the `==` method
|
@@ -163,7 +165,7 @@ module MergeATSClient
|
|
163
165
|
# Calculates hash code according to all attributes.
|
164
166
|
# @return [Integer] Hash code
|
165
167
|
def hash
|
166
|
-
[
|
168
|
+
[id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url].hash
|
167
169
|
end
|
168
170
|
|
169
171
|
# Builds the object from hash
|
@@ -206,7 +208,7 @@ module MergeATSClient
|
|
206
208
|
when :Date
|
207
209
|
Date.parse(value)
|
208
210
|
when :String
|
209
|
-
value
|
211
|
+
value
|
210
212
|
when :Integer
|
211
213
|
value.to_i
|
212
214
|
when :Float
|
data/lib/merge_ats_client/models/{scheduled_interview_request.rb → account_details_and_actions.rb}
RENAMED
@@ -14,54 +14,38 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The
|
18
|
-
class
|
19
|
-
|
20
|
-
attr_accessor :remote_id
|
17
|
+
# # The LinkedAccount Object ### Description The `LinkedAccount` object is used to represent an end user's link with a specific integration. ### Usage Example View a list of your organization's `LinkedAccount` objects.
|
18
|
+
class AccountDetailsAndActions
|
19
|
+
attr_accessor :id
|
21
20
|
|
22
|
-
|
23
|
-
attr_accessor :application
|
21
|
+
attr_accessor :category
|
24
22
|
|
25
|
-
|
26
|
-
attr_accessor :job_interview_stage
|
27
|
-
|
28
|
-
# The user organizing the interview.
|
29
|
-
attr_accessor :organizer
|
30
|
-
|
31
|
-
attr_accessor :interviewers
|
23
|
+
attr_accessor :status
|
32
24
|
|
33
|
-
|
34
|
-
attr_accessor :location
|
25
|
+
attr_accessor :status_detail
|
35
26
|
|
36
|
-
|
37
|
-
attr_accessor :start_at
|
27
|
+
attr_accessor :end_user_origin_id
|
38
28
|
|
39
|
-
|
40
|
-
attr_accessor :end_at
|
29
|
+
attr_accessor :end_user_organization_name
|
41
30
|
|
42
|
-
|
43
|
-
attr_accessor :remote_created_at
|
31
|
+
attr_accessor :end_user_email_address
|
44
32
|
|
45
|
-
|
46
|
-
attr_accessor :remote_updated_at
|
33
|
+
attr_accessor :webhook_listener_url
|
47
34
|
|
48
|
-
|
49
|
-
attr_accessor :status
|
35
|
+
attr_accessor :integration
|
50
36
|
|
51
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
38
|
def self.attribute_map
|
53
39
|
{
|
54
|
-
:'
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'remote_updated_at' => :'remote_updated_at',
|
64
|
-
:'status' => :'status'
|
40
|
+
:'id' => :'id',
|
41
|
+
:'category' => :'category',
|
42
|
+
:'status' => :'status',
|
43
|
+
:'status_detail' => :'status_detail',
|
44
|
+
:'end_user_origin_id' => :'end_user_origin_id',
|
45
|
+
:'end_user_organization_name' => :'end_user_organization_name',
|
46
|
+
:'end_user_email_address' => :'end_user_email_address',
|
47
|
+
:'webhook_listener_url' => :'webhook_listener_url',
|
48
|
+
:'integration' => :'integration'
|
65
49
|
}
|
66
50
|
end
|
67
51
|
|
@@ -73,33 +57,21 @@ module MergeATSClient
|
|
73
57
|
# Attribute type mapping.
|
74
58
|
def self.openapi_types
|
75
59
|
{
|
76
|
-
:'
|
77
|
-
:'
|
78
|
-
:'
|
79
|
-
:'
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'remote_updated_at' => :'Time',
|
86
|
-
:'status' => :'ScheduledInterviewStatusEnum'
|
60
|
+
:'id' => :'String',
|
61
|
+
:'category' => :'CategoryEnum',
|
62
|
+
:'status' => :'AccountDetailsAndActionsStatusEnum',
|
63
|
+
:'status_detail' => :'String',
|
64
|
+
:'end_user_origin_id' => :'String',
|
65
|
+
:'end_user_organization_name' => :'String',
|
66
|
+
:'end_user_email_address' => :'String',
|
67
|
+
:'webhook_listener_url' => :'String',
|
68
|
+
:'integration' => :'AccountDetailsAndActionsIntegration'
|
87
69
|
}
|
88
70
|
end
|
89
71
|
|
90
72
|
# List of attributes with nullable: true
|
91
73
|
def self.openapi_nullable
|
92
74
|
Set.new([
|
93
|
-
:'remote_id',
|
94
|
-
:'application',
|
95
|
-
:'job_interview_stage',
|
96
|
-
:'organizer',
|
97
|
-
:'location',
|
98
|
-
:'start_at',
|
99
|
-
:'end_at',
|
100
|
-
:'remote_created_at',
|
101
|
-
:'remote_updated_at',
|
102
|
-
:'status'
|
103
75
|
])
|
104
76
|
end
|
105
77
|
|
@@ -107,61 +79,51 @@ module MergeATSClient
|
|
107
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
108
80
|
def initialize(attributes = {})
|
109
81
|
if (!attributes.is_a?(Hash))
|
110
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AccountDetailsAndActions` initialize method"
|
111
83
|
end
|
112
84
|
|
113
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
114
86
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
115
87
|
if (!self.class.attribute_map.key?(k.to_sym))
|
116
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AccountDetailsAndActions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
117
89
|
end
|
118
90
|
h[k.to_sym] = v
|
119
91
|
}
|
120
92
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'application')
|
126
|
-
self.application = attributes[:'application']
|
93
|
+
if attributes.key?(:'id')
|
94
|
+
self.id = attributes[:'id']
|
127
95
|
end
|
128
96
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
97
|
+
if attributes.key?(:'category')
|
98
|
+
self.category = attributes[:'category']
|
131
99
|
end
|
132
100
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
self.
|
135
|
-
end
|
136
|
-
|
137
|
-
if attributes.key?(:'interviewers')
|
138
|
-
if (value = attributes[:'interviewers']).is_a?(Array)
|
139
|
-
self.interviewers = value
|
140
|
-
end
|
101
|
+
if attributes.key?(:'status')
|
102
|
+
self.status = attributes[:'status']
|
141
103
|
end
|
142
104
|
|
143
|
-
if attributes.key?(:'
|
144
|
-
self.
|
105
|
+
if attributes.key?(:'status_detail')
|
106
|
+
self.status_detail = attributes[:'status_detail']
|
145
107
|
end
|
146
108
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
self.
|
109
|
+
if attributes.key?(:'end_user_origin_id')
|
110
|
+
self.end_user_origin_id = attributes[:'end_user_origin_id']
|
149
111
|
end
|
150
112
|
|
151
|
-
if attributes.key?(:'
|
152
|
-
self.
|
113
|
+
if attributes.key?(:'end_user_organization_name')
|
114
|
+
self.end_user_organization_name = attributes[:'end_user_organization_name']
|
153
115
|
end
|
154
116
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
117
|
+
if attributes.key?(:'end_user_email_address')
|
118
|
+
self.end_user_email_address = attributes[:'end_user_email_address']
|
157
119
|
end
|
158
120
|
|
159
|
-
if attributes.key?(:'
|
160
|
-
self.
|
121
|
+
if attributes.key?(:'webhook_listener_url')
|
122
|
+
self.webhook_listener_url = attributes[:'webhook_listener_url']
|
161
123
|
end
|
162
124
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
self.
|
125
|
+
if attributes.key?(:'integration')
|
126
|
+
self.integration = attributes[:'integration']
|
165
127
|
end
|
166
128
|
end
|
167
129
|
|
@@ -169,12 +131,37 @@ module MergeATSClient
|
|
169
131
|
# @return Array for valid properties with the reasons
|
170
132
|
def list_invalid_properties
|
171
133
|
invalid_properties = Array.new
|
134
|
+
if @id.nil?
|
135
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
136
|
+
end
|
137
|
+
|
138
|
+
if @status.nil?
|
139
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
140
|
+
end
|
141
|
+
|
142
|
+
if @end_user_organization_name.nil?
|
143
|
+
invalid_properties.push('invalid value for "end_user_organization_name", end_user_organization_name cannot be nil.')
|
144
|
+
end
|
145
|
+
|
146
|
+
if @end_user_email_address.nil?
|
147
|
+
invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
|
148
|
+
end
|
149
|
+
|
150
|
+
if @webhook_listener_url.nil?
|
151
|
+
invalid_properties.push('invalid value for "webhook_listener_url", webhook_listener_url cannot be nil.')
|
152
|
+
end
|
153
|
+
|
172
154
|
invalid_properties
|
173
155
|
end
|
174
156
|
|
175
157
|
# Check to see if the all the properties in the model are valid
|
176
158
|
# @return true if the model is valid
|
177
159
|
def valid?
|
160
|
+
return false if @id.nil?
|
161
|
+
return false if @status.nil?
|
162
|
+
return false if @end_user_organization_name.nil?
|
163
|
+
return false if @end_user_email_address.nil?
|
164
|
+
return false if @webhook_listener_url.nil?
|
178
165
|
true
|
179
166
|
end
|
180
167
|
|
@@ -183,17 +170,15 @@ module MergeATSClient
|
|
183
170
|
def ==(o)
|
184
171
|
return true if self.equal?(o)
|
185
172
|
self.class == o.class &&
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
remote_updated_at == o.remote_updated_at &&
|
196
|
-
status == o.status
|
173
|
+
id == o.id &&
|
174
|
+
category == o.category &&
|
175
|
+
status == o.status &&
|
176
|
+
status_detail == o.status_detail &&
|
177
|
+
end_user_origin_id == o.end_user_origin_id &&
|
178
|
+
end_user_organization_name == o.end_user_organization_name &&
|
179
|
+
end_user_email_address == o.end_user_email_address &&
|
180
|
+
webhook_listener_url == o.webhook_listener_url &&
|
181
|
+
integration == o.integration
|
197
182
|
end
|
198
183
|
|
199
184
|
# @see the `==` method
|
@@ -205,7 +190,7 @@ module MergeATSClient
|
|
205
190
|
# Calculates hash code according to all attributes.
|
206
191
|
# @return [Integer] Hash code
|
207
192
|
def hash
|
208
|
-
[
|
193
|
+
[id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, integration].hash
|
209
194
|
end
|
210
195
|
|
211
196
|
# Builds the object from hash
|
@@ -248,7 +233,7 @@ module MergeATSClient
|
|
248
233
|
when :Date
|
249
234
|
Date.parse(value)
|
250
235
|
when :String
|
251
|
-
value
|
236
|
+
value
|
252
237
|
when :Integer
|
253
238
|
value.to_i
|
254
239
|
when :Float
|