merge_ats_client 1.0.4 → 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 +37 -17
- data/docs/AccountDetails.md +11 -7
- data/docs/AccountDetailsAndActions.md +4 -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 +6 -4
- 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 +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 +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 +3 -1
- 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 +6 -4
- 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/IssuesApi.md +18 -10
- data/docs/Job.md +5 -1
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +8 -5
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +22 -22
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +5 -3
- data/docs/OffersApi.md +6 -4
- 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/RemoteUser.md +3 -1
- data/docs/ScheduledInterview.md +6 -4
- data/docs/Scorecard.md +6 -4
- 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 +6 -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 +10 -3
- data/lib/merge_ats_client/api/activities_api.rb +3 -0
- data/lib/merge_ats_client/api/applications_api.rb +86 -15
- data/lib/merge_ats_client/api/attachments_api.rb +94 -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 +3 -0
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/interviews_api.rb +3 -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 +6 -3
- data/lib/merge_ats_client/api/linked_accounts_api.rb +21 -21
- data/lib/merge_ats_client/api/offers_api.rb +3 -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 +3 -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 +3 -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/account_details.rb +22 -4
- data/lib/merge_ats_client/models/account_details_and_actions.rb +24 -1
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +4 -2
- 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/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 +0 -2
- 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/candidate_endpoint_request.rb +237 -0
- 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 +2 -0
- data/lib/merge_ats_client/models/category_enum.rb +2 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +67 -4
- 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/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/encoding_enum.rb +35 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +147 -28
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +20 -1
- 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/issue.rb +1 -1
- data/lib/merge_ats_client/models/job.rb +28 -6
- data/lib/merge_ats_client/models/job_interview_stage.rb +16 -7
- data/lib/merge_ats_client/models/link_token.rb +1 -1
- 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/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/office.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/reason_enum.rb +36 -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_data_request.rb +20 -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 +1 -1
- data/lib/merge_ats_client/models/remote_user.rb +17 -7
- data/lib/merge_ats_client/models/request_format_enum.rb +1 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +16 -9
- data/lib/merge_ats_client/models/scorecard.rb +16 -9
- data/lib/merge_ats_client/models/sync_status.rb +1 -1
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +1 -2
- data/lib/merge_ats_client/models/tag.rb +17 -7
- 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/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
- 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 +22 -3
- 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 +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 +10 -10
- 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/models/access_role_enum_spec.rb +1 -1
- data/spec/models/account_details_and_actions_spec.rb +12 -0
- data/spec/models/account_details_spec.rb +12 -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 +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_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/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
- metadata +179 -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/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
@@ -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,23 +14,19 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
|
18
|
-
|
19
|
-
attr_accessor :method
|
20
|
-
|
21
|
-
attr_accessor :path
|
17
|
+
class DebugModelLogSummary
|
18
|
+
attr_accessor :url
|
22
19
|
|
23
|
-
attr_accessor :
|
20
|
+
attr_accessor :method
|
24
21
|
|
25
|
-
attr_accessor :
|
22
|
+
attr_accessor :status_code
|
26
23
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
25
|
def self.attribute_map
|
29
26
|
{
|
27
|
+
:'url' => :'url',
|
30
28
|
:'method' => :'method',
|
31
|
-
:'
|
32
|
-
:'data' => :'data',
|
33
|
-
:'headers' => :'headers'
|
29
|
+
:'status_code' => :'status_code'
|
34
30
|
}
|
35
31
|
end
|
36
32
|
|
@@ -42,18 +38,15 @@ module MergeATSClient
|
|
42
38
|
# Attribute type mapping.
|
43
39
|
def self.openapi_types
|
44
40
|
{
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'headers' => :'Hash<String, AnyType>'
|
41
|
+
:'url' => :'String',
|
42
|
+
:'method' => :'String',
|
43
|
+
:'status_code' => :'Integer'
|
49
44
|
}
|
50
45
|
end
|
51
46
|
|
52
47
|
# List of attributes with nullable: true
|
53
48
|
def self.openapi_nullable
|
54
49
|
Set.new([
|
55
|
-
:'data',
|
56
|
-
:'headers'
|
57
50
|
])
|
58
51
|
end
|
59
52
|
|
@@ -61,35 +54,27 @@ module MergeATSClient
|
|
61
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
55
|
def initialize(attributes = {})
|
63
56
|
if (!attributes.is_a?(Hash))
|
64
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::DebugModelLogSummary` initialize method"
|
65
58
|
end
|
66
59
|
|
67
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
68
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::DebugModelLogSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
64
|
end
|
72
65
|
h[k.to_sym] = v
|
73
66
|
}
|
74
67
|
|
75
|
-
if attributes.key?(:'
|
76
|
-
self.
|
77
|
-
end
|
78
|
-
|
79
|
-
if attributes.key?(:'path')
|
80
|
-
self.path = attributes[:'path']
|
68
|
+
if attributes.key?(:'url')
|
69
|
+
self.url = attributes[:'url']
|
81
70
|
end
|
82
71
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
|
85
|
-
self.data = value
|
86
|
-
end
|
72
|
+
if attributes.key?(:'method')
|
73
|
+
self.method = attributes[:'method']
|
87
74
|
end
|
88
75
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
|
91
|
-
self.headers = value
|
92
|
-
end
|
76
|
+
if attributes.key?(:'status_code')
|
77
|
+
self.status_code = attributes[:'status_code']
|
93
78
|
end
|
94
79
|
end
|
95
80
|
|
@@ -97,12 +82,16 @@ module MergeATSClient
|
|
97
82
|
# @return Array for valid properties with the reasons
|
98
83
|
def list_invalid_properties
|
99
84
|
invalid_properties = Array.new
|
85
|
+
if @url.nil?
|
86
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
87
|
+
end
|
88
|
+
|
100
89
|
if @method.nil?
|
101
90
|
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
102
91
|
end
|
103
92
|
|
104
|
-
if @
|
105
|
-
invalid_properties.push('invalid value for "
|
93
|
+
if @status_code.nil?
|
94
|
+
invalid_properties.push('invalid value for "status_code", status_code cannot be nil.')
|
106
95
|
end
|
107
96
|
|
108
97
|
invalid_properties
|
@@ -111,8 +100,9 @@ module MergeATSClient
|
|
111
100
|
# Check to see if the all the properties in the model are valid
|
112
101
|
# @return true if the model is valid
|
113
102
|
def valid?
|
103
|
+
return false if @url.nil?
|
114
104
|
return false if @method.nil?
|
115
|
-
return false if @
|
105
|
+
return false if @status_code.nil?
|
116
106
|
true
|
117
107
|
end
|
118
108
|
|
@@ -121,10 +111,9 @@ module MergeATSClient
|
|
121
111
|
def ==(o)
|
122
112
|
return true if self.equal?(o)
|
123
113
|
self.class == o.class &&
|
114
|
+
url == o.url &&
|
124
115
|
method == o.method &&
|
125
|
-
|
126
|
-
data == o.data &&
|
127
|
-
headers == o.headers
|
116
|
+
status_code == o.status_code
|
128
117
|
end
|
129
118
|
|
130
119
|
# @see the `==` method
|
@@ -136,7 +125,7 @@ module MergeATSClient
|
|
136
125
|
# Calculates hash code according to all attributes.
|
137
126
|
# @return [Integer] Hash code
|
138
127
|
def hash
|
139
|
-
[
|
128
|
+
[url, method, status_code].hash
|
140
129
|
end
|
141
130
|
|
142
131
|
# Builds the object from hash
|
@@ -179,7 +168,7 @@ module MergeATSClient
|
|
179
168
|
when :Date
|
180
169
|
Date.parse(value)
|
181
170
|
when :String
|
182
|
-
value
|
171
|
+
value
|
183
172
|
when :Integer
|
184
173
|
value.to_i
|
185
174
|
when :Float
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Department Object ### Description The `Department` object is used to represent a department within a company.
|
17
|
+
# # The Department Object ### Description The `Department` object is used to represent a department within a company. ### Usage Example Fetch from the `LIST Departments` endpoint and view the departments within a company.
|
18
18
|
class Department
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -26,13 +26,17 @@ module MergeATSClient
|
|
26
26
|
|
27
27
|
attr_accessor :remote_data
|
28
28
|
|
29
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
30
|
+
attr_accessor :remote_was_deleted
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'id' => :'id',
|
33
36
|
:'remote_id' => :'remote_id',
|
34
37
|
:'name' => :'name',
|
35
|
-
:'remote_data' => :'remote_data'
|
38
|
+
:'remote_data' => :'remote_data',
|
39
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -47,7 +51,8 @@ module MergeATSClient
|
|
47
51
|
:'id' => :'String',
|
48
52
|
:'remote_id' => :'String',
|
49
53
|
:'name' => :'String',
|
50
|
-
:'remote_data' => :'Array<RemoteData>'
|
54
|
+
:'remote_data' => :'Array<RemoteData>',
|
55
|
+
:'remote_was_deleted' => :'Boolean'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -56,7 +61,7 @@ module MergeATSClient
|
|
56
61
|
Set.new([
|
57
62
|
:'remote_id',
|
58
63
|
:'name',
|
59
|
-
:'remote_data'
|
64
|
+
:'remote_data',
|
60
65
|
])
|
61
66
|
end
|
62
67
|
|
@@ -92,6 +97,10 @@ module MergeATSClient
|
|
92
97
|
self.remote_data = value
|
93
98
|
end
|
94
99
|
end
|
100
|
+
|
101
|
+
if attributes.key?(:'remote_was_deleted')
|
102
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
103
|
+
end
|
95
104
|
end
|
96
105
|
|
97
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,7 +124,8 @@ module MergeATSClient
|
|
115
124
|
id == o.id &&
|
116
125
|
remote_id == o.remote_id &&
|
117
126
|
name == o.name &&
|
118
|
-
remote_data == o.remote_data
|
127
|
+
remote_data == o.remote_data &&
|
128
|
+
remote_was_deleted == o.remote_was_deleted
|
119
129
|
end
|
120
130
|
|
121
131
|
# @see the `==` method
|
@@ -127,7 +137,7 @@ module MergeATSClient
|
|
127
137
|
# Calculates hash code according to all attributes.
|
128
138
|
# @return [Integer] Hash code
|
129
139
|
def hash
|
130
|
-
[id, remote_id, name, remote_data].hash
|
140
|
+
[id, remote_id, name, remote_data, remote_was_deleted].hash
|
131
141
|
end
|
132
142
|
|
133
143
|
# Builds the object from hash
|
@@ -170,7 +180,7 @@ module MergeATSClient
|
|
170
180
|
when :Date
|
171
181
|
Date.parse(value)
|
172
182
|
when :String
|
173
|
-
value
|
183
|
+
value
|
174
184
|
when :Integer
|
175
185
|
value.to_i
|
176
186
|
when :Float
|
@@ -14,14 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The EEOC Object ### Description The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate.
|
17
|
+
# # The EEOC Object ### Description The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate. ### Usage Example Fetch from the `LIST EEOCs` endpoint and filter by `candidate` to show all EEOC information for a candidate.
|
18
18
|
class EEOC
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
-
# The candidate being represented.
|
25
24
|
attr_accessor :candidate
|
26
25
|
|
27
26
|
# When the information was submitted.
|
@@ -41,6 +40,9 @@ module MergeATSClient
|
|
41
40
|
|
42
41
|
attr_accessor :remote_data
|
43
42
|
|
43
|
+
# Indicates whether or not this object has been deleted on the third-party.
|
44
|
+
attr_accessor :remote_was_deleted
|
45
|
+
|
44
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
47
|
def self.attribute_map
|
46
48
|
{
|
@@ -52,7 +54,8 @@ module MergeATSClient
|
|
52
54
|
:'gender' => :'gender',
|
53
55
|
:'veteran_status' => :'veteran_status',
|
54
56
|
:'disability_status' => :'disability_status',
|
55
|
-
:'remote_data' => :'remote_data'
|
57
|
+
:'remote_data' => :'remote_data',
|
58
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
56
59
|
}
|
57
60
|
end
|
58
61
|
|
@@ -72,7 +75,8 @@ module MergeATSClient
|
|
72
75
|
:'gender' => :'GenderEnum',
|
73
76
|
:'veteran_status' => :'VeteranStatusEnum',
|
74
77
|
:'disability_status' => :'DisabilityStatusEnum',
|
75
|
-
:'remote_data' => :'Array<RemoteData>'
|
78
|
+
:'remote_data' => :'Array<RemoteData>',
|
79
|
+
:'remote_was_deleted' => :'Boolean'
|
76
80
|
}
|
77
81
|
end
|
78
82
|
|
@@ -86,7 +90,7 @@ module MergeATSClient
|
|
86
90
|
:'gender',
|
87
91
|
:'veteran_status',
|
88
92
|
:'disability_status',
|
89
|
-
:'remote_data'
|
93
|
+
:'remote_data',
|
90
94
|
])
|
91
95
|
end
|
92
96
|
|
@@ -142,6 +146,10 @@ module MergeATSClient
|
|
142
146
|
self.remote_data = value
|
143
147
|
end
|
144
148
|
end
|
149
|
+
|
150
|
+
if attributes.key?(:'remote_was_deleted')
|
151
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
152
|
+
end
|
145
153
|
end
|
146
154
|
|
147
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -170,7 +178,8 @@ module MergeATSClient
|
|
170
178
|
gender == o.gender &&
|
171
179
|
veteran_status == o.veteran_status &&
|
172
180
|
disability_status == o.disability_status &&
|
173
|
-
remote_data == o.remote_data
|
181
|
+
remote_data == o.remote_data &&
|
182
|
+
remote_was_deleted == o.remote_was_deleted
|
174
183
|
end
|
175
184
|
|
176
185
|
# @see the `==` method
|
@@ -182,7 +191,7 @@ module MergeATSClient
|
|
182
191
|
# Calculates hash code according to all attributes.
|
183
192
|
# @return [Integer] Hash code
|
184
193
|
def hash
|
185
|
-
[id, remote_id, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_data].hash
|
194
|
+
[id, remote_id, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_data, remote_was_deleted].hash
|
186
195
|
end
|
187
196
|
|
188
197
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address.
|
17
|
+
# # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address. ### Usage Example Fetch from the `GET Candidate` endpoint and view their email addresses.
|
18
18
|
class EmailAddress
|
19
19
|
# The email address.
|
20
20
|
attr_accessor :value
|
@@ -164,7 +164,7 @@ module MergeATSClient
|
|
164
164
|
when :Date
|
165
165
|
Date.parse(value)
|
166
166
|
when :String
|
167
|
-
value
|
167
|
+
value
|
168
168
|
when :Integer
|
169
169
|
value.to_i
|
170
170
|
when :Float
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address.
|
17
|
+
# # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address. ### Usage Example Fetch from the `GET Candidate` endpoint and view their email addresses.
|
18
18
|
class EmailAddressRequest
|
19
19
|
# The email address.
|
20
20
|
attr_accessor :value
|
@@ -164,7 +164,7 @@ module MergeATSClient
|
|
164
164
|
when :Date
|
165
165
|
Date.parse(value)
|
166
166
|
when :String
|
167
|
-
value
|
167
|
+
value
|
168
168
|
when :Integer
|
169
169
|
value.to_i
|
170
170
|
when :Float
|
@@ -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 EncodingEnum
|
18
|
+
RAW = "RAW".freeze
|
19
|
+
BASE64 = "BASE64".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
|
@@ -23,29 +23,11 @@ module MergeATSClient
|
|
23
23
|
|
24
24
|
attr_accessor :categories
|
25
25
|
|
26
|
+
# The slug of a specific pre-selected integration for this linking flow token, for examples of slugs see https://www.merge.dev/docs/basics/integration-metadata
|
26
27
|
attr_accessor :integration
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
attr_reader :allowable_values
|
31
|
-
|
32
|
-
def initialize(datatype, allowable_values)
|
33
|
-
@allowable_values = allowable_values.map do |value|
|
34
|
-
case datatype.to_s
|
35
|
-
when /Integer/i
|
36
|
-
value.to_i
|
37
|
-
when /Float/i
|
38
|
-
value.to_f
|
39
|
-
else
|
40
|
-
value
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def valid?(value)
|
46
|
-
!value || allowable_values.include?(value)
|
47
|
-
end
|
48
|
-
end
|
29
|
+
# An integer number of minutes between [30, 720] for how long this token is valid. Defaults to 30
|
30
|
+
attr_accessor :link_expiry_mins
|
49
31
|
|
50
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
33
|
def self.attribute_map
|
@@ -54,7 +36,8 @@ module MergeATSClient
|
|
54
36
|
:'end_user_organization_name' => :'end_user_organization_name',
|
55
37
|
:'end_user_origin_id' => :'end_user_origin_id',
|
56
38
|
:'categories' => :'categories',
|
57
|
-
:'integration' => :'integration'
|
39
|
+
:'integration' => :'integration',
|
40
|
+
:'link_expiry_mins' => :'link_expiry_mins'
|
58
41
|
}
|
59
42
|
end
|
60
43
|
|
@@ -69,15 +52,16 @@ module MergeATSClient
|
|
69
52
|
:'end_user_email_address' => :'String',
|
70
53
|
:'end_user_organization_name' => :'String',
|
71
54
|
:'end_user_origin_id' => :'String',
|
72
|
-
:'categories' => :'Array<
|
73
|
-
:'integration' => :'String'
|
55
|
+
:'categories' => :'Array<CategoriesEnum>',
|
56
|
+
:'integration' => :'String',
|
57
|
+
:'link_expiry_mins' => :'Integer'
|
74
58
|
}
|
75
59
|
end
|
76
60
|
|
77
61
|
# List of attributes with nullable: true
|
78
62
|
def self.openapi_nullable
|
79
63
|
Set.new([
|
80
|
-
:'integration'
|
64
|
+
:'integration',
|
81
65
|
])
|
82
66
|
end
|
83
67
|
|
@@ -117,6 +101,12 @@ module MergeATSClient
|
|
117
101
|
if attributes.key?(:'integration')
|
118
102
|
self.integration = attributes[:'integration']
|
119
103
|
end
|
104
|
+
|
105
|
+
if attributes.key?(:'link_expiry_mins')
|
106
|
+
self.link_expiry_mins = attributes[:'link_expiry_mins']
|
107
|
+
else
|
108
|
+
self.link_expiry_mins = 30
|
109
|
+
end
|
120
110
|
end
|
121
111
|
|
122
112
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,14 +117,54 @@ module MergeATSClient
|
|
127
117
|
invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
|
128
118
|
end
|
129
119
|
|
120
|
+
if @end_user_email_address.to_s.length > 100
|
121
|
+
invalid_properties.push('invalid value for "end_user_email_address", the character length must be smaller than or equal to 100.')
|
122
|
+
end
|
123
|
+
|
124
|
+
if @end_user_email_address.to_s.length < 1
|
125
|
+
invalid_properties.push('invalid value for "end_user_email_address", the character length must be great than or equal to 1.')
|
126
|
+
end
|
127
|
+
|
130
128
|
if @end_user_organization_name.nil?
|
131
129
|
invalid_properties.push('invalid value for "end_user_organization_name", end_user_organization_name cannot be nil.')
|
132
130
|
end
|
133
131
|
|
132
|
+
if @end_user_organization_name.to_s.length > 100
|
133
|
+
invalid_properties.push('invalid value for "end_user_organization_name", the character length must be smaller than or equal to 100.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if @end_user_organization_name.to_s.length < 1
|
137
|
+
invalid_properties.push('invalid value for "end_user_organization_name", the character length must be great than or equal to 1.')
|
138
|
+
end
|
139
|
+
|
134
140
|
if @end_user_origin_id.nil?
|
135
141
|
invalid_properties.push('invalid value for "end_user_origin_id", end_user_origin_id cannot be nil.')
|
136
142
|
end
|
137
143
|
|
144
|
+
if @end_user_origin_id.to_s.length > 100
|
145
|
+
invalid_properties.push('invalid value for "end_user_origin_id", the character length must be smaller than or equal to 100.')
|
146
|
+
end
|
147
|
+
|
148
|
+
if @end_user_origin_id.to_s.length < 1
|
149
|
+
invalid_properties.push('invalid value for "end_user_origin_id", the character length must be great than or equal to 1.')
|
150
|
+
end
|
151
|
+
|
152
|
+
if @categories.nil?
|
153
|
+
invalid_properties.push('invalid value for "categories", categories cannot be nil.')
|
154
|
+
end
|
155
|
+
|
156
|
+
if !@integration.nil? && @integration.to_s.length < 1
|
157
|
+
invalid_properties.push('invalid value for "integration", the character length must be great than or equal to 1.')
|
158
|
+
end
|
159
|
+
|
160
|
+
if !@link_expiry_mins.nil? && @link_expiry_mins > 720
|
161
|
+
invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to 720.')
|
162
|
+
end
|
163
|
+
|
164
|
+
if !@link_expiry_mins.nil? && @link_expiry_mins < 30
|
165
|
+
invalid_properties.push('invalid value for "link_expiry_mins", must be greater than or equal to 30.')
|
166
|
+
end
|
167
|
+
|
138
168
|
invalid_properties
|
139
169
|
end
|
140
170
|
|
@@ -142,11 +172,99 @@ module MergeATSClient
|
|
142
172
|
# @return true if the model is valid
|
143
173
|
def valid?
|
144
174
|
return false if @end_user_email_address.nil?
|
175
|
+
return false if @end_user_email_address.to_s.length > 100
|
176
|
+
return false if @end_user_email_address.to_s.length < 1
|
145
177
|
return false if @end_user_organization_name.nil?
|
178
|
+
return false if @end_user_organization_name.to_s.length > 100
|
179
|
+
return false if @end_user_organization_name.to_s.length < 1
|
146
180
|
return false if @end_user_origin_id.nil?
|
181
|
+
return false if @end_user_origin_id.to_s.length > 100
|
182
|
+
return false if @end_user_origin_id.to_s.length < 1
|
183
|
+
return false if @categories.nil?
|
184
|
+
return false if !@integration.nil? && @integration.to_s.length < 1
|
185
|
+
return false if !@link_expiry_mins.nil? && @link_expiry_mins > 720
|
186
|
+
return false if !@link_expiry_mins.nil? && @link_expiry_mins < 30
|
147
187
|
true
|
148
188
|
end
|
149
189
|
|
190
|
+
# Custom attribute writer method with validation
|
191
|
+
# @param [Object] end_user_email_address Value to be assigned
|
192
|
+
def end_user_email_address=(end_user_email_address)
|
193
|
+
if end_user_email_address.nil?
|
194
|
+
fail ArgumentError, 'end_user_email_address cannot be nil'
|
195
|
+
end
|
196
|
+
|
197
|
+
if end_user_email_address.to_s.length > 100
|
198
|
+
fail ArgumentError, 'invalid value for "end_user_email_address", the character length must be smaller than or equal to 100.'
|
199
|
+
end
|
200
|
+
|
201
|
+
if end_user_email_address.to_s.length < 1
|
202
|
+
fail ArgumentError, 'invalid value for "end_user_email_address", the character length must be great than or equal to 1.'
|
203
|
+
end
|
204
|
+
|
205
|
+
@end_user_email_address = end_user_email_address
|
206
|
+
end
|
207
|
+
|
208
|
+
# Custom attribute writer method with validation
|
209
|
+
# @param [Object] end_user_organization_name Value to be assigned
|
210
|
+
def end_user_organization_name=(end_user_organization_name)
|
211
|
+
if end_user_organization_name.nil?
|
212
|
+
fail ArgumentError, 'end_user_organization_name cannot be nil'
|
213
|
+
end
|
214
|
+
|
215
|
+
if end_user_organization_name.to_s.length > 100
|
216
|
+
fail ArgumentError, 'invalid value for "end_user_organization_name", the character length must be smaller than or equal to 100.'
|
217
|
+
end
|
218
|
+
|
219
|
+
if end_user_organization_name.to_s.length < 1
|
220
|
+
fail ArgumentError, 'invalid value for "end_user_organization_name", the character length must be great than or equal to 1.'
|
221
|
+
end
|
222
|
+
|
223
|
+
@end_user_organization_name = end_user_organization_name
|
224
|
+
end
|
225
|
+
|
226
|
+
# Custom attribute writer method with validation
|
227
|
+
# @param [Object] end_user_origin_id Value to be assigned
|
228
|
+
def end_user_origin_id=(end_user_origin_id)
|
229
|
+
if end_user_origin_id.nil?
|
230
|
+
fail ArgumentError, 'end_user_origin_id cannot be nil'
|
231
|
+
end
|
232
|
+
|
233
|
+
if end_user_origin_id.to_s.length > 100
|
234
|
+
fail ArgumentError, 'invalid value for "end_user_origin_id", the character length must be smaller than or equal to 100.'
|
235
|
+
end
|
236
|
+
|
237
|
+
if end_user_origin_id.to_s.length < 1
|
238
|
+
fail ArgumentError, 'invalid value for "end_user_origin_id", the character length must be great than or equal to 1.'
|
239
|
+
end
|
240
|
+
|
241
|
+
@end_user_origin_id = end_user_origin_id
|
242
|
+
end
|
243
|
+
|
244
|
+
# Custom attribute writer method with validation
|
245
|
+
# @param [Object] integration Value to be assigned
|
246
|
+
def integration=(integration)
|
247
|
+
if !integration.nil? && integration.to_s.length < 1
|
248
|
+
fail ArgumentError, 'invalid value for "integration", the character length must be great than or equal to 1.'
|
249
|
+
end
|
250
|
+
|
251
|
+
@integration = integration
|
252
|
+
end
|
253
|
+
|
254
|
+
# Custom attribute writer method with validation
|
255
|
+
# @param [Object] link_expiry_mins Value to be assigned
|
256
|
+
def link_expiry_mins=(link_expiry_mins)
|
257
|
+
if !link_expiry_mins.nil? && link_expiry_mins > 720
|
258
|
+
fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to 720.'
|
259
|
+
end
|
260
|
+
|
261
|
+
if !link_expiry_mins.nil? && link_expiry_mins < 30
|
262
|
+
fail ArgumentError, 'invalid value for "link_expiry_mins", must be greater than or equal to 30.'
|
263
|
+
end
|
264
|
+
|
265
|
+
@link_expiry_mins = link_expiry_mins
|
266
|
+
end
|
267
|
+
|
150
268
|
# Checks equality by comparing each attribute.
|
151
269
|
# @param [Object] Object to be compared
|
152
270
|
def ==(o)
|
@@ -156,7 +274,8 @@ module MergeATSClient
|
|
156
274
|
end_user_organization_name == o.end_user_organization_name &&
|
157
275
|
end_user_origin_id == o.end_user_origin_id &&
|
158
276
|
categories == o.categories &&
|
159
|
-
integration == o.integration
|
277
|
+
integration == o.integration &&
|
278
|
+
link_expiry_mins == o.link_expiry_mins
|
160
279
|
end
|
161
280
|
|
162
281
|
# @see the `==` method
|
@@ -168,7 +287,7 @@ module MergeATSClient
|
|
168
287
|
# Calculates hash code according to all attributes.
|
169
288
|
# @return [Integer] Hash code
|
170
289
|
def hash
|
171
|
-
[end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration].hash
|
290
|
+
[end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins].hash
|
172
291
|
end
|
173
292
|
|
174
293
|
# Builds the object from hash
|
@@ -211,7 +330,7 @@ module MergeATSClient
|
|
211
330
|
when :Date
|
212
331
|
Date.parse(value)
|
213
332
|
when :String
|
214
|
-
value
|
333
|
+
value
|
215
334
|
when :Integer
|
216
335
|
value.to_i
|
217
336
|
when :Float
|