merge_ats_client 1.0.4 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -18
- data/docs/AccountDetails.md +13 -7
- data/docs/AccountDetailsAndActions.md +6 -0
- data/docs/AccountDetailsAndActionsIntegration.md +1 -1
- data/docs/AccountDetailsApi.md +10 -7
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/ActivitiesApi.md +11 -5
- data/docs/Activity.md +4 -2
- data/docs/Application.md +8 -6
- data/docs/ApplicationEndpointRequest.md +20 -0
- data/docs/ApplicationRequest.md +12 -6
- data/docs/ApplicationResponse.md +24 -0
- data/docs/ApplicationsApi.md +180 -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 +98 -16
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/Candidate.md +3 -1
- data/docs/CandidateEndpointRequest.md +20 -0
- data/docs/CandidateRequest.md +7 -1
- data/docs/CandidateResponse.md +24 -0
- data/docs/CandidatesApi.md +168 -22
- data/docs/DataPassthroughRequest.md +6 -2
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/Department.md +3 -1
- data/docs/DepartmentsApi.md +6 -4
- data/docs/EEOC.md +4 -2
- data/docs/EeocsApi.md +11 -5
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +10 -6
- 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 +11 -85
- data/docs/IssuesApi.md +18 -10
- data/docs/Job.md +7 -1
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +13 -6
- data/docs/LinkToken.md +3 -1
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +24 -22
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +5 -3
- data/docs/OffersApi.md +11 -5
- data/docs/Office.md +3 -1
- data/docs/OfficesApi.md +6 -4
- 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/RemoteResponse.md +5 -1
- data/docs/RemoteUser.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/ScheduledInterview.md +6 -4
- data/docs/Scorecard.md +6 -4
- data/docs/ScorecardsApi.md +11 -85
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tag.md +3 -1
- data/docs/TagsApi.md +4 -2
- data/docs/UpdateApplicationStageRequest.md +20 -0
- data/docs/UsersApi.md +11 -85
- 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 +10 -3
- data/lib/merge_ats_client/api/activities_api.rb +17 -0
- data/lib/merge_ats_client/api/applications_api.rb +164 -15
- data/lib/merge_ats_client/api/attachments_api.rb +108 -15
- data/lib/merge_ats_client/api/candidates_api.rb +156 -21
- data/lib/merge_ats_client/api/departments_api.rb +3 -0
- data/lib/merge_ats_client/api/eeocs_api.rb +17 -0
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/interviews_api.rb +17 -76
- data/lib/merge_ats_client/api/issues_api.rb +22 -10
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +5 -2
- data/lib/merge_ats_client/api/jobs_api.rb +20 -3
- data/lib/merge_ats_client/api/linked_accounts_api.rb +24 -21
- data/lib/merge_ats_client/api/offers_api.rb +17 -0
- data/lib/merge_ats_client/api/offices_api.rb +3 -0
- data/lib/merge_ats_client/api/reject_reasons_api.rb +3 -0
- data/lib/merge_ats_client/api/scorecards_api.rb +17 -76
- data/lib/merge_ats_client/api/sync_status_api.rb +4 -66
- data/lib/merge_ats_client/api/tags_api.rb +3 -0
- data/lib/merge_ats_client/api/users_api.rb +17 -76
- data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ats_client/configuration.rb +6 -4
- data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_details.rb +33 -4
- data/lib/merge_ats_client/models/account_details_and_actions.rb +35 -1
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +4 -2
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_integration.rb +2 -24
- data/lib/merge_ats_client/models/account_token.rb +1 -1
- data/lib/merge_ats_client/models/activity.rb +16 -7
- data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/application.rb +15 -11
- data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/application_request.rb +56 -12
- data/lib/merge_ats_client/models/application_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment.rb +15 -6
- 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 +17 -9
- data/lib/merge_ats_client/models/available_actions.rb +1 -1
- data/lib/merge_ats_client/models/candidate.rb +15 -6
- data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → candidate_endpoint_request.rb} +29 -16
- data/lib/merge_ats_client/models/candidate_request.rb +56 -7
- data/lib/merge_ats_client/models/candidate_response.rb +266 -0
- data/lib/merge_ats_client/models/categories_enum.rb +19 -7
- data/lib/merge_ats_client/models/category_enum.rb +19 -7
- data/lib/merge_ats_client/models/data_passthrough_request.rb +79 -7
- 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 +17 -7
- data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/eeoc.rb +16 -7
- data/lib/merge_ats_client/models/email_address.rb +2 -2
- data/lib/merge_ats_client/models/email_address_request.rb +2 -2
- data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/encoding_enum.rb +46 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +163 -27
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/gender_enum.rb +17 -7
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +20 -1
- data/lib/merge_ats_client/models/ignore_common_model.rb +247 -0
- data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_ats_client/models/issue.rb +2 -2
- data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/job.rb +39 -6
- data/lib/merge_ats_client/models/job_interview_stage.rb +17 -7
- data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/link_token.rb +14 -5
- data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ats_client/models/{scorecard_request.rb → meta_response.rb} +45 -70
- data/lib/merge_ats_client/models/method_enum.rb +17 -7
- data/lib/merge_ats_client/models/model_operation.rb +1 -1
- data/lib/merge_ats_client/models/{scheduled_interview_request.rb → multipart_form_field_request.rb} +115 -106
- data/lib/merge_ats_client/models/offer.rb +16 -8
- data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/office.rb +17 -7
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
- data/lib/merge_ats_client/models/paginated_activity_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_application_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_department_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_issue_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_offer_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_office_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +1 -1
- data/lib/merge_ats_client/models/phone_number.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_request.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/race_enum.rb +17 -7
- data/lib/merge_ats_client/models/reason_enum.rb +46 -0
- data/lib/merge_ats_client/models/reject_reason.rb +17 -7
- data/lib/merge_ats_client/models/remote_data.rb +1 -1
- data/lib/merge_ats_client/models/remote_key.rb +1 -1
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +20 -1
- data/lib/merge_ats_client/models/remote_response.rb +24 -10
- data/lib/merge_ats_client/models/remote_user.rb +17 -7
- data/lib/merge_ats_client/models/request_format_enum.rb +18 -7
- data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +16 -9
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/scorecard.rb +16 -9
- data/lib/merge_ats_client/models/sync_status.rb +1 -11
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +19 -9
- data/lib/merge_ats_client/models/tag.rb +17 -7
- data/lib/merge_ats_client/models/update_application_stage_request.rb +244 -0
- data/lib/merge_ats_client/models/url.rb +2 -2
- data/lib/merge_ats_client/models/url_request.rb +2 -2
- data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
- data/lib/merge_ats_client/models/{remote_data_request.rb → validation_problem_source.rb} +14 -25
- data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
- 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/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +24 -4
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/activities_api_spec.rb +6 -1
- data/spec/api/applications_api_spec.rb +46 -1
- data/spec/api/attachments_api_spec.rb +33 -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 +6 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/interviews_api_spec.rb +6 -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 +8 -1
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +11 -10
- data/spec/api/offers_api_spec.rb +6 -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 +6 -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 +7 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/access_role_enum_spec.rb +1 -1
- data/spec/models/account_details_and_actions_spec.rb +18 -0
- data/spec/models/account_details_spec.rb +18 -0
- 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/data_passthrough_request_spec.rb +19 -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 +19 -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 +37 -1
- data/spec/models/job_status_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +7 -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_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 +13 -1
- data/spec/models/remote_user_spec.rb +13 -1
- data/spec/models/response_type_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/update_application_stage_request_spec.rb +40 -0
- 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
- metadata +186 -123
- 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/lib/merge_ats_client/models/patched_application_request.rb +0 -309
- data/lib/merge_ats_client/models/remote_user_request.rb +0 -302
- data/merge_ats_client-1.0.3.gem +0 -0
- data/spec/models/patched_application_request_spec.rb +0 -82
- data/spec/models/scheduled_interview_request_spec.rb +0 -94
- data/spec/models/scorecard_request_spec.rb +0 -70
- data/test_ats.rb +0 -22
- data/test_signature.rb +0 -32
@@ -0,0 +1,266 @@
|
|
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 AttachmentResponse
|
18
|
+
attr_accessor :model
|
19
|
+
|
20
|
+
attr_accessor :warnings
|
21
|
+
|
22
|
+
attr_accessor :errors
|
23
|
+
|
24
|
+
attr_accessor :logs
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'model' => :'model',
|
30
|
+
:'warnings' => :'warnings',
|
31
|
+
:'errors' => :'errors',
|
32
|
+
:'logs' => :'logs'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'model' => :'Attachment',
|
45
|
+
:'warnings' => :'Array<WarningValidationProblem>',
|
46
|
+
:'errors' => :'Array<ErrorValidationProblem>',
|
47
|
+
:'logs' => :'Array<DebugModeLog>'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AttachmentResponse` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AttachmentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'model')
|
73
|
+
self.model = attributes[:'model']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'warnings')
|
77
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
78
|
+
self.warnings = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'errors')
|
83
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
84
|
+
self.errors = value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'logs')
|
89
|
+
if (value = attributes[:'logs']).is_a?(Array)
|
90
|
+
self.logs = value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
+
# @return Array for valid properties with the reasons
|
97
|
+
def list_invalid_properties
|
98
|
+
invalid_properties = Array.new
|
99
|
+
if @model.nil?
|
100
|
+
invalid_properties.push('invalid value for "model", model cannot be nil.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @warnings.nil?
|
104
|
+
invalid_properties.push('invalid value for "warnings", warnings cannot be nil.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if @errors.nil?
|
108
|
+
invalid_properties.push('invalid value for "errors", errors cannot be nil.')
|
109
|
+
end
|
110
|
+
|
111
|
+
invalid_properties
|
112
|
+
end
|
113
|
+
|
114
|
+
# Check to see if the all the properties in the model are valid
|
115
|
+
# @return true if the model is valid
|
116
|
+
def valid?
|
117
|
+
return false if @model.nil?
|
118
|
+
return false if @warnings.nil?
|
119
|
+
return false if @errors.nil?
|
120
|
+
true
|
121
|
+
end
|
122
|
+
|
123
|
+
# Checks equality by comparing each attribute.
|
124
|
+
# @param [Object] Object to be compared
|
125
|
+
def ==(o)
|
126
|
+
return true if self.equal?(o)
|
127
|
+
self.class == o.class &&
|
128
|
+
model == o.model &&
|
129
|
+
warnings == o.warnings &&
|
130
|
+
errors == o.errors &&
|
131
|
+
logs == o.logs
|
132
|
+
end
|
133
|
+
|
134
|
+
# @see the `==` method
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def eql?(o)
|
137
|
+
self == o
|
138
|
+
end
|
139
|
+
|
140
|
+
# Calculates hash code according to all attributes.
|
141
|
+
# @return [Integer] Hash code
|
142
|
+
def hash
|
143
|
+
[model, warnings, errors, logs].hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Builds the object from hash
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
# @return [Object] Returns the model itself
|
149
|
+
def self.build_from_hash(attributes)
|
150
|
+
new.build_from_hash(attributes)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Builds the object from hash
|
154
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
+
# @return [Object] Returns the model itself
|
156
|
+
def build_from_hash(attributes)
|
157
|
+
return nil unless attributes.is_a?(Hash)
|
158
|
+
self.class.openapi_types.each_pair do |key, type|
|
159
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
160
|
+
self.send("#{key}=", nil)
|
161
|
+
elsif type =~ /\AArray<(.*)>/i
|
162
|
+
# check to ensure the input is an array given that the attribute
|
163
|
+
# is documented as an array but the input is not
|
164
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
165
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
166
|
+
end
|
167
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
168
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
self
|
173
|
+
end
|
174
|
+
|
175
|
+
# Deserializes the data based on type
|
176
|
+
# @param string type Data type
|
177
|
+
# @param string value Value to be deserialized
|
178
|
+
# @return [Object] Deserialized data
|
179
|
+
def _deserialize(type, value)
|
180
|
+
case type.to_sym
|
181
|
+
when :Time
|
182
|
+
Time.parse(value)
|
183
|
+
when :Date
|
184
|
+
Date.parse(value)
|
185
|
+
when :String
|
186
|
+
value
|
187
|
+
when :Integer
|
188
|
+
value.to_i
|
189
|
+
when :Float
|
190
|
+
value.to_f
|
191
|
+
when :Boolean
|
192
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
193
|
+
true
|
194
|
+
else
|
195
|
+
false
|
196
|
+
end
|
197
|
+
when :Object
|
198
|
+
# generic object (usually a Hash), return directly
|
199
|
+
value
|
200
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
201
|
+
inner_type = Regexp.last_match[:inner_type]
|
202
|
+
value.map { |v| _deserialize(inner_type, v) }
|
203
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
204
|
+
k_type = Regexp.last_match[:k_type]
|
205
|
+
v_type = Regexp.last_match[:v_type]
|
206
|
+
{}.tap do |hash|
|
207
|
+
value.each do |k, v|
|
208
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
else # model
|
212
|
+
# models (e.g. Pet) or oneOf
|
213
|
+
klass = MergeATSClient.const_get(type)
|
214
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# Returns the string representation of the object
|
219
|
+
# @return [String] String presentation of the object
|
220
|
+
def to_s
|
221
|
+
to_hash.to_s
|
222
|
+
end
|
223
|
+
|
224
|
+
# to_body is an alias to to_hash (backward compatibility)
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
226
|
+
def to_body
|
227
|
+
to_hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Returns the object in the form of hash
|
231
|
+
# @return [Hash] Returns the object in the form of hash
|
232
|
+
def to_hash
|
233
|
+
hash = {}
|
234
|
+
self.class.attribute_map.each_pair do |attr, param|
|
235
|
+
value = self.send(attr)
|
236
|
+
if value.nil?
|
237
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
238
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
239
|
+
end
|
240
|
+
|
241
|
+
hash[param] = _to_hash(value)
|
242
|
+
end
|
243
|
+
hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Outputs non-array value in the form of hash
|
247
|
+
# For object, use to_hash. Otherwise, just return the value
|
248
|
+
# @param [Object] value Any valid value
|
249
|
+
# @return [Hash] Returns the value in the form of hash
|
250
|
+
def _to_hash(value)
|
251
|
+
if value.is_a?(Array)
|
252
|
+
value.compact.map { |v| _to_hash(v) }
|
253
|
+
elsif value.is_a?(Hash)
|
254
|
+
{}.tap do |hash|
|
255
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
256
|
+
end
|
257
|
+
elsif value.respond_to? :to_hash
|
258
|
+
value.to_hash
|
259
|
+
else
|
260
|
+
value
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
end
|
265
|
+
|
266
|
+
end
|
@@ -20,20 +20,28 @@ module MergeATSClient
|
|
20
20
|
OFFER_LETTER = "OFFER_LETTER".freeze
|
21
21
|
OTHER = "OTHER".freeze
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
new.build_from_hash(value)
|
28
|
-
end
|
23
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
24
|
+
|
25
|
+
attr_accessor :value
|
26
|
+
attr_accessor :raw_value
|
29
27
|
|
30
28
|
# Builds the enum from string
|
31
29
|
# @param [String] The enum value in the form of the string
|
32
30
|
# @return [String] The enum value
|
33
31
|
def build_from_hash(value)
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
@raw_value = value
|
33
|
+
if ["RESUME", "COVER_LETTER", "OFFER_LETTER", "OTHER", ].include? value
|
34
|
+
@value = value
|
35
|
+
else
|
36
|
+
@value = MERGE_NONSTANDARD_VALUE
|
37
|
+
end
|
38
|
+
|
39
|
+
self
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.build_from_hash(value)
|
43
|
+
IssueStatusEnum.new.build_from_hash(value)
|
37
44
|
end
|
38
45
|
end
|
46
|
+
|
39
47
|
end
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Candidate Object ### Description The `Candidate` object is used to represent a Candidate for various positions.
|
17
|
+
# # The Candidate Object ### Description The `Candidate` object is used to represent a Candidate for various positions. ### Usage Example Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates.
|
18
18
|
class Candidate
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -71,6 +71,8 @@ module MergeATSClient
|
|
71
71
|
# Custom fields configured for a given model.
|
72
72
|
attr_accessor :custom_fields
|
73
73
|
|
74
|
+
attr_accessor :remote_was_deleted
|
75
|
+
|
74
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
75
77
|
def self.attribute_map
|
76
78
|
{
|
@@ -93,7 +95,8 @@ module MergeATSClient
|
|
93
95
|
:'applications' => :'applications',
|
94
96
|
:'attachments' => :'attachments',
|
95
97
|
:'remote_data' => :'remote_data',
|
96
|
-
:'custom_fields' => :'custom_fields'
|
98
|
+
:'custom_fields' => :'custom_fields',
|
99
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
97
100
|
}
|
98
101
|
end
|
99
102
|
|
@@ -124,7 +127,8 @@ module MergeATSClient
|
|
124
127
|
:'applications' => :'Array<String>',
|
125
128
|
:'attachments' => :'Array<String>',
|
126
129
|
:'remote_data' => :'Array<RemoteData>',
|
127
|
-
:'custom_fields' => :'Hash<String, Object>'
|
130
|
+
:'custom_fields' => :'Hash<String, Object>',
|
131
|
+
:'remote_was_deleted' => :'Boolean'
|
128
132
|
}
|
129
133
|
end
|
130
134
|
|
@@ -143,7 +147,7 @@ module MergeATSClient
|
|
143
147
|
:'can_email',
|
144
148
|
:'locations',
|
145
149
|
:'remote_data',
|
146
|
-
:'custom_fields'
|
150
|
+
:'custom_fields',
|
147
151
|
])
|
148
152
|
end
|
149
153
|
|
@@ -259,6 +263,10 @@ module MergeATSClient
|
|
259
263
|
self.custom_fields = value
|
260
264
|
end
|
261
265
|
end
|
266
|
+
|
267
|
+
if attributes.key?(:'remote_was_deleted')
|
268
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
269
|
+
end
|
262
270
|
end
|
263
271
|
|
264
272
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -298,7 +306,8 @@ module MergeATSClient
|
|
298
306
|
applications == o.applications &&
|
299
307
|
attachments == o.attachments &&
|
300
308
|
remote_data == o.remote_data &&
|
301
|
-
custom_fields == o.custom_fields
|
309
|
+
custom_fields == o.custom_fields &&
|
310
|
+
remote_was_deleted == o.remote_was_deleted
|
302
311
|
end
|
303
312
|
|
304
313
|
# @see the `==` method
|
@@ -310,7 +319,7 @@ module MergeATSClient
|
|
310
319
|
# Calculates hash code according to all attributes.
|
311
320
|
# @return [Integer] Hash code
|
312
321
|
def hash
|
313
|
-
[id, remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments, remote_data, custom_fields].hash
|
322
|
+
[id, remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments, remote_data, custom_fields, remote_was_deleted].hash
|
314
323
|
end
|
315
324
|
|
316
325
|
# Builds the object from hash
|
data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → candidate_endpoint_request.rb}
RENAMED
@@ -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,14 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
class CandidateEndpointRequest
|
18
|
+
attr_accessor :model
|
19
|
+
|
20
|
+
attr_accessor :remote_user_id
|
20
21
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
23
|
def self.attribute_map
|
23
24
|
{
|
24
|
-
:'
|
25
|
+
:'model' => :'model',
|
26
|
+
:'remote_user_id' => :'remote_user_id'
|
25
27
|
}
|
26
28
|
end
|
27
29
|
|
@@ -33,7 +35,8 @@ module MergeATSClient
|
|
33
35
|
# Attribute type mapping.
|
34
36
|
def self.openapi_types
|
35
37
|
{
|
36
|
-
:'
|
38
|
+
:'model' => :'CandidateRequest',
|
39
|
+
:'remote_user_id' => :'String'
|
37
40
|
}
|
38
41
|
end
|
39
42
|
|
@@ -47,19 +50,23 @@ module MergeATSClient
|
|
47
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
51
|
def initialize(attributes = {})
|
49
52
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::CandidateEndpointRequest` initialize method"
|
51
54
|
end
|
52
55
|
|
53
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::CandidateEndpointRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
60
|
end
|
58
61
|
h[k.to_sym] = v
|
59
62
|
}
|
60
63
|
|
61
|
-
if attributes.key?(:'
|
62
|
-
self.
|
64
|
+
if attributes.key?(:'model')
|
65
|
+
self.model = attributes[:'model']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'remote_user_id')
|
69
|
+
self.remote_user_id = attributes[:'remote_user_id']
|
63
70
|
end
|
64
71
|
end
|
65
72
|
|
@@ -67,8 +74,12 @@ module MergeATSClient
|
|
67
74
|
# @return Array for valid properties with the reasons
|
68
75
|
def list_invalid_properties
|
69
76
|
invalid_properties = Array.new
|
70
|
-
if @
|
71
|
-
invalid_properties.push('invalid value for "
|
77
|
+
if @model.nil?
|
78
|
+
invalid_properties.push('invalid value for "model", model cannot be nil.')
|
79
|
+
end
|
80
|
+
|
81
|
+
if @remote_user_id.nil?
|
82
|
+
invalid_properties.push('invalid value for "remote_user_id", remote_user_id cannot be nil.')
|
72
83
|
end
|
73
84
|
|
74
85
|
invalid_properties
|
@@ -77,7 +88,8 @@ module MergeATSClient
|
|
77
88
|
# Check to see if the all the properties in the model are valid
|
78
89
|
# @return true if the model is valid
|
79
90
|
def valid?
|
80
|
-
return false if @
|
91
|
+
return false if @model.nil?
|
92
|
+
return false if @remote_user_id.nil?
|
81
93
|
true
|
82
94
|
end
|
83
95
|
|
@@ -86,7 +98,8 @@ module MergeATSClient
|
|
86
98
|
def ==(o)
|
87
99
|
return true if self.equal?(o)
|
88
100
|
self.class == o.class &&
|
89
|
-
|
101
|
+
model == o.model &&
|
102
|
+
remote_user_id == o.remote_user_id
|
90
103
|
end
|
91
104
|
|
92
105
|
# @see the `==` method
|
@@ -98,7 +111,7 @@ module MergeATSClient
|
|
98
111
|
# Calculates hash code according to all attributes.
|
99
112
|
# @return [Integer] Hash code
|
100
113
|
def hash
|
101
|
-
[
|
114
|
+
[model, remote_user_id].hash
|
102
115
|
end
|
103
116
|
|
104
117
|
# Builds the object from hash
|
@@ -141,7 +154,7 @@ module MergeATSClient
|
|
141
154
|
when :Date
|
142
155
|
Date.parse(value)
|
143
156
|
when :String
|
144
|
-
value
|
157
|
+
value
|
145
158
|
when :Integer
|
146
159
|
value.to_i
|
147
160
|
when :Float
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Candidate Object ### Description The `Candidate` object is used to represent a Candidate for various positions.
|
17
|
+
# # The Candidate Object ### Description The `Candidate` object is used to represent a Candidate for various positions. ### Usage Example Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates.
|
18
18
|
class CandidateRequest
|
19
19
|
# The third-party API ID of the matching object.
|
20
20
|
attr_accessor :remote_id
|
@@ -67,6 +67,12 @@ module MergeATSClient
|
|
67
67
|
# Custom fields configured for a given model.
|
68
68
|
attr_accessor :custom_fields
|
69
69
|
|
70
|
+
attr_accessor :remote_template_id
|
71
|
+
|
72
|
+
attr_accessor :integration_params
|
73
|
+
|
74
|
+
attr_accessor :linked_account_params
|
75
|
+
|
70
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
77
|
def self.attribute_map
|
72
78
|
{
|
@@ -87,7 +93,10 @@ module MergeATSClient
|
|
87
93
|
:'tags' => :'tags',
|
88
94
|
:'applications' => :'applications',
|
89
95
|
:'attachments' => :'attachments',
|
90
|
-
:'custom_fields' => :'custom_fields'
|
96
|
+
:'custom_fields' => :'custom_fields',
|
97
|
+
:'remote_template_id' => :'remote_template_id',
|
98
|
+
:'integration_params' => :'integration_params',
|
99
|
+
:'linked_account_params' => :'linked_account_params'
|
91
100
|
}
|
92
101
|
end
|
93
102
|
|
@@ -116,7 +125,10 @@ module MergeATSClient
|
|
116
125
|
:'tags' => :'Array<String>',
|
117
126
|
:'applications' => :'Array<String>',
|
118
127
|
:'attachments' => :'Array<String>',
|
119
|
-
:'custom_fields' => :'Hash<String, Object>'
|
128
|
+
:'custom_fields' => :'Hash<String, Object>',
|
129
|
+
:'remote_template_id' => :'String',
|
130
|
+
:'integration_params' => :'Hash<String, Object>',
|
131
|
+
:'linked_account_params' => :'Hash<String, Object>'
|
120
132
|
}
|
121
133
|
end
|
122
134
|
|
@@ -134,7 +146,10 @@ module MergeATSClient
|
|
134
146
|
:'is_private',
|
135
147
|
:'can_email',
|
136
148
|
:'locations',
|
137
|
-
:'custom_fields'
|
149
|
+
:'custom_fields',
|
150
|
+
:'remote_template_id',
|
151
|
+
:'integration_params',
|
152
|
+
:'linked_account_params'
|
138
153
|
])
|
139
154
|
end
|
140
155
|
|
@@ -240,21 +255,52 @@ module MergeATSClient
|
|
240
255
|
self.custom_fields = value
|
241
256
|
end
|
242
257
|
end
|
258
|
+
|
259
|
+
if attributes.key?(:'remote_template_id')
|
260
|
+
self.remote_template_id = attributes[:'remote_template_id']
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes.key?(:'integration_params')
|
264
|
+
if (value = attributes[:'integration_params']).is_a?(Hash)
|
265
|
+
self.integration_params = value
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
if attributes.key?(:'linked_account_params')
|
270
|
+
if (value = attributes[:'linked_account_params']).is_a?(Hash)
|
271
|
+
self.linked_account_params = value
|
272
|
+
end
|
273
|
+
end
|
243
274
|
end
|
244
275
|
|
245
276
|
# Show invalid properties with the reasons. Usually used together with valid?
|
246
277
|
# @return Array for valid properties with the reasons
|
247
278
|
def list_invalid_properties
|
248
279
|
invalid_properties = Array.new
|
280
|
+
if !@remote_template_id.nil? && @remote_template_id.to_s.length < 1
|
281
|
+
invalid_properties.push('invalid value for "remote_template_id", the character length must be great than or equal to 1.')
|
282
|
+
end
|
283
|
+
|
249
284
|
invalid_properties
|
250
285
|
end
|
251
286
|
|
252
287
|
# Check to see if the all the properties in the model are valid
|
253
288
|
# @return true if the model is valid
|
254
289
|
def valid?
|
290
|
+
return false if !@remote_template_id.nil? && @remote_template_id.to_s.length < 1
|
255
291
|
true
|
256
292
|
end
|
257
293
|
|
294
|
+
# Custom attribute writer method with validation
|
295
|
+
# @param [Object] remote_template_id Value to be assigned
|
296
|
+
def remote_template_id=(remote_template_id)
|
297
|
+
if !remote_template_id.nil? && remote_template_id.to_s.length < 1
|
298
|
+
fail ArgumentError, 'invalid value for "remote_template_id", the character length must be great than or equal to 1.'
|
299
|
+
end
|
300
|
+
|
301
|
+
@remote_template_id = remote_template_id
|
302
|
+
end
|
303
|
+
|
258
304
|
# Checks equality by comparing each attribute.
|
259
305
|
# @param [Object] Object to be compared
|
260
306
|
def ==(o)
|
@@ -277,7 +323,10 @@ module MergeATSClient
|
|
277
323
|
tags == o.tags &&
|
278
324
|
applications == o.applications &&
|
279
325
|
attachments == o.attachments &&
|
280
|
-
custom_fields == o.custom_fields
|
326
|
+
custom_fields == o.custom_fields &&
|
327
|
+
remote_template_id == o.remote_template_id &&
|
328
|
+
integration_params == o.integration_params &&
|
329
|
+
linked_account_params == o.linked_account_params
|
281
330
|
end
|
282
331
|
|
283
332
|
# @see the `==` method
|
@@ -289,7 +338,7 @@ module MergeATSClient
|
|
289
338
|
# Calculates hash code according to all attributes.
|
290
339
|
# @return [Integer] Hash code
|
291
340
|
def hash
|
292
|
-
[remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments, custom_fields].hash
|
341
|
+
[remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments, custom_fields, remote_template_id, integration_params, linked_account_params].hash
|
293
342
|
end
|
294
343
|
|
295
344
|
# Builds the object from hash
|
@@ -332,7 +381,7 @@ module MergeATSClient
|
|
332
381
|
when :Date
|
333
382
|
Date.parse(value)
|
334
383
|
when :String
|
335
|
-
value
|
384
|
+
value
|
336
385
|
when :Integer
|
337
386
|
value.to_i
|
338
387
|
when :Float
|