merge_ats_client 2.0.1 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +16 -0
- data/README.md +186 -167
- data/docs/AccountIntegration.md +6 -2
- data/docs/ActivitiesApi.md +164 -8
- data/docs/Activity.md +12 -6
- data/docs/ActivityEndpointRequest.md +20 -0
- data/docs/ActivityRequest.md +32 -0
- data/docs/ActivityResponse.md +24 -0
- data/docs/Application.md +12 -10
- data/docs/ApplicationRequest.md +5 -9
- data/docs/ApplicationsApi.md +4 -4
- data/docs/Attachment.md +8 -4
- data/docs/AttachmentRequest.md +1 -3
- data/docs/AttachmentsApi.md +13 -9
- data/docs/Candidate.md +8 -6
- data/docs/CandidateRequest.md +1 -9
- data/docs/CandidatesApi.md +16 -13
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/Department.md +7 -3
- data/docs/DepartmentsApi.md +4 -4
- data/docs/EEOC.md +12 -8
- data/docs/EeocsApi.md +13 -9
- data/docs/EmailAddress.md +4 -2
- data/docs/EmailAddressRequest.md +6 -2
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- data/docs/ForceResyncApi.md +1 -1
- data/docs/InterviewsApi.md +165 -9
- data/docs/Issue.md +10 -8
- data/docs/IssuesApi.md +6 -6
- data/docs/Job.md +8 -4
- data/docs/JobInterviewStage.md +10 -4
- data/docs/JobInterviewStagesApi.md +4 -4
- data/docs/JobsApi.md +16 -10
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/MetaResponse.md +2 -0
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/Offer.md +10 -6
- data/docs/OffersApi.md +13 -9
- data/docs/Office.md +7 -3
- data/docs/OfficesApi.md +4 -4
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PhoneNumber.md +4 -2
- data/docs/PhoneNumberRequest.md +6 -2
- data/docs/RejectReason.md +7 -3
- data/docs/RejectReasonsApi.md +4 -4
- data/docs/RemoteUser.md +8 -4
- data/docs/ScheduledInterview.md +11 -7
- data/docs/ScheduledInterviewEndpointRequest.md +20 -0
- data/docs/ScheduledInterviewRequest.md +36 -0
- data/docs/ScheduledInterviewResponse.md +24 -0
- data/docs/Scorecard.md +11 -7
- data/docs/ScorecardsApi.md +13 -9
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +3 -1
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tag.md +7 -3
- data/docs/TagsApi.md +4 -4
- data/docs/Url.md +4 -2
- data/docs/UrlRequest.md +6 -2
- data/docs/UsersApi.md +13 -9
- data/lib/merge_ats_client/api/activities_api.rb +160 -8
- data/lib/merge_ats_client/api/applications_api.rb +4 -4
- data/lib/merge_ats_client/api/attachments_api.rb +22 -8
- data/lib/merge_ats_client/api/candidates_api.rb +15 -11
- data/lib/merge_ats_client/api/departments_api.rb +4 -4
- data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
- data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
- data/lib/merge_ats_client/api/interviews_api.rb +160 -8
- data/lib/merge_ats_client/api/issues_api.rb +6 -6
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
- data/lib/merge_ats_client/api/jobs_api.rb +27 -10
- data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_ats_client/api/offers_api.rb +22 -8
- data/lib/merge_ats_client/api/offices_api.rb +4 -4
- data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
- data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
- data/lib/merge_ats_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
- data/lib/merge_ats_client/api/tags_api.rb +4 -4
- data/lib/merge_ats_client/api/users_api.rb +22 -8
- data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/account_integration.rb +30 -8
- data/lib/merge_ats_client/models/activity.rb +50 -16
- data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/activity_request.rb +300 -0
- data/lib/merge_ats_client/models/activity_response.rb +266 -0
- data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/application.rb +40 -26
- data/lib/merge_ats_client/models/application_request.rb +7 -26
- data/lib/merge_ats_client/models/attachment.rb +38 -16
- data/lib/merge_ats_client/models/attachment_request.rb +3 -14
- data/lib/merge_ats_client/models/attachment_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/candidate.rb +36 -27
- data/lib/merge_ats_client/models/candidate_request.rb +3 -49
- data/lib/merge_ats_client/models/categories_enum.rb +4 -2
- data/lib/merge_ats_client/models/category_enum.rb +4 -2
- data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_ats_client/models/condition_schema.rb +298 -0
- data/lib/merge_ats_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_ats_client/models/department.rb +36 -14
- data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/eeoc.rb +42 -19
- data/lib/merge_ats_client/models/email_address.rb +16 -6
- data/lib/merge_ats_client/models/email_address_request.rb +30 -6
- data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_ats_client/models/encoding_enum.rb +1 -1
- data/lib/merge_ats_client/models/end_user_details_request.rb +20 -7
- data/lib/merge_ats_client/models/gender_enum.rb +1 -1
- data/lib/merge_ats_client/models/issue.rb +16 -4
- data/lib/merge_ats_client/models/job.rb +38 -16
- data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
- data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/link_token.rb +0 -5
- data/lib/merge_ats_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_ats_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_ats_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_ats_client/models/meta_response.rb +12 -1
- data/lib/merge_ats_client/models/method_enum.rb +1 -1
- data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_ats_client/models/offer.rb +40 -16
- data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/office.rb +37 -15
- data/lib/merge_ats_client/models/operator_schema.rb +229 -0
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
- data/lib/merge_ats_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_ats_client/models/phone_number.rb +16 -6
- data/lib/merge_ats_client/models/phone_number_request.rb +30 -6
- 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 +1 -1
- data/lib/merge_ats_client/models/reject_reason.rb +37 -15
- data/lib/merge_ats_client/models/remote_user.rb +38 -16
- data/lib/merge_ats_client/models/request_format_enum.rb +1 -1
- data/lib/merge_ats_client/models/response_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
- data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
- data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/scorecard.rb +41 -16
- data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_ats_client/models/sync_status.rb +13 -4
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +3 -2
- data/lib/merge_ats_client/models/tag.rb +36 -14
- data/lib/merge_ats_client/models/url.rb +17 -7
- data/lib/merge_ats_client/models/url_request.rb +31 -7
- data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
- 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/version.rb +1 -1
- data/lib/merge_ats_client.rb +19 -1
- data/spec/api/activities_api_spec.rb +31 -4
- data/spec/api/applications_api_spec.rb +2 -2
- data/spec/api/attachments_api_spec.rb +6 -4
- data/spec/api/candidates_api_spec.rb +5 -3
- data/spec/api/departments_api_spec.rb +2 -2
- data/spec/api/eeocs_api_spec.rb +6 -4
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/interviews_api_spec.rb +31 -4
- data/spec/api/issues_api_spec.rb +3 -3
- data/spec/api/job_interview_stages_api_spec.rb +2 -2
- data/spec/api/jobs_api_spec.rb +8 -5
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/offers_api_spec.rb +6 -4
- data/spec/api/offices_api_spec.rb +2 -2
- data/spec/api/reject_reasons_api_spec.rb +2 -2
- data/spec/api/scorecards_api_spec.rb +6 -4
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +6 -4
- data/spec/models/account_integration_spec.rb +12 -0
- data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
- data/spec/models/activity_request_spec.rb +76 -0
- data/spec/models/activity_response_spec.rb +52 -0
- data/spec/models/activity_spec.rb +19 -1
- data/spec/models/application_request_spec.rb +0 -12
- data/spec/models/application_spec.rb +9 -3
- data/spec/models/attachment_request_spec.rb +0 -6
- data/spec/models/attachment_spec.rb +14 -2
- data/spec/models/candidate_request_spec.rb +0 -24
- data/spec/models/candidate_spec.rb +9 -3
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/department_spec.rb +14 -2
- data/spec/models/eeoc_spec.rb +14 -2
- data/spec/models/email_address_request_spec.rb +12 -0
- data/spec/models/email_address_spec.rb +6 -0
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/job_interview_stage_spec.rb +19 -1
- data/spec/models/job_spec.rb +14 -2
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/offer_spec.rb +14 -2
- data/spec/models/office_spec.rb +14 -2
- data/spec/models/{remote_data_request_spec.rb → operator_schema_spec.rb} +8 -8
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/phone_number_request_spec.rb +12 -0
- data/spec/models/phone_number_spec.rb +6 -0
- data/spec/models/reject_reason_spec.rb +14 -2
- data/spec/models/remote_user_spec.rb +14 -2
- data/spec/models/scheduled_interview_endpoint_request_spec.rb +40 -0
- data/spec/models/scheduled_interview_request_spec.rb +88 -0
- data/spec/models/scheduled_interview_response_spec.rb +52 -0
- data/spec/models/scheduled_interview_spec.rb +14 -2
- data/spec/models/scorecard_spec.rb +14 -2
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tag_spec.rb +14 -2
- data/spec/models/url_request_spec.rb +12 -0
- data/spec/models/url_spec.rb +6 -0
- metadata +182 -109
@@ -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 ScheduledInterviewResponse
|
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' => :'ScheduledInterview',
|
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::ScheduledInterviewResponse` 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::ScheduledInterviewResponse`. 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
|
@@ -14,17 +14,20 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Scorecard Object ### Description The `Scorecard` object is used to represent
|
17
|
+
# # The Scorecard Object ### Description The `Scorecard` object is used to represent an interviewer's candidate recommendation based on a particular interview. ### Usage Example Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant.
|
18
18
|
class Scorecard
|
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 application being scored.
|
24
25
|
attr_accessor :application
|
25
26
|
|
27
|
+
# The interview being scored.
|
26
28
|
attr_accessor :interview
|
27
29
|
|
30
|
+
# The interviewer doing the scoring.
|
28
31
|
attr_accessor :interviewer
|
29
32
|
|
30
33
|
# When the third party's scorecard was created.
|
@@ -33,14 +36,19 @@ module MergeATSClient
|
|
33
36
|
# When the scorecard was submitted.
|
34
37
|
attr_accessor :submitted_at
|
35
38
|
|
36
|
-
# The inteviewer's recommendation.
|
39
|
+
# The inteviewer's recommendation. * `DEFINITELY_NO` - DEFINITELY_NO * `NO` - NO * `YES` - YES * `STRONG_YES` - STRONG_YES * `NO_DECISION` - NO_DECISION
|
37
40
|
attr_accessor :overall_recommendation
|
38
41
|
|
39
|
-
attr_accessor :remote_data
|
40
|
-
|
41
42
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
42
43
|
attr_accessor :remote_was_deleted
|
43
44
|
|
45
|
+
attr_accessor :field_mappings
|
46
|
+
|
47
|
+
# This is the datetime that this object was last updated by Merge
|
48
|
+
attr_accessor :modified_at
|
49
|
+
|
50
|
+
attr_accessor :remote_data
|
51
|
+
|
44
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
53
|
def self.attribute_map
|
46
54
|
{
|
@@ -52,8 +60,10 @@ module MergeATSClient
|
|
52
60
|
:'remote_created_at' => :'remote_created_at',
|
53
61
|
:'submitted_at' => :'submitted_at',
|
54
62
|
:'overall_recommendation' => :'overall_recommendation',
|
55
|
-
:'
|
56
|
-
:'
|
63
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
64
|
+
:'field_mappings' => :'field_mappings',
|
65
|
+
:'modified_at' => :'modified_at',
|
66
|
+
:'remote_data' => :'remote_data'
|
57
67
|
}
|
58
68
|
end
|
59
69
|
|
@@ -73,8 +83,10 @@ module MergeATSClient
|
|
73
83
|
:'remote_created_at' => :'Time',
|
74
84
|
:'submitted_at' => :'Time',
|
75
85
|
:'overall_recommendation' => :'OverallRecommendationEnum',
|
76
|
-
:'
|
77
|
-
:'
|
86
|
+
:'remote_was_deleted' => :'Boolean',
|
87
|
+
:'field_mappings' => :'Hash<String, Object>',
|
88
|
+
:'modified_at' => :'Time',
|
89
|
+
:'remote_data' => :'Array<RemoteData>'
|
78
90
|
}
|
79
91
|
end
|
80
92
|
|
@@ -88,7 +100,8 @@ module MergeATSClient
|
|
88
100
|
:'remote_created_at',
|
89
101
|
:'submitted_at',
|
90
102
|
:'overall_recommendation',
|
91
|
-
:'
|
103
|
+
:'field_mappings',
|
104
|
+
:'remote_data'
|
92
105
|
])
|
93
106
|
end
|
94
107
|
|
@@ -139,15 +152,25 @@ module MergeATSClient
|
|
139
152
|
self.overall_recommendation = attributes[:'overall_recommendation']
|
140
153
|
end
|
141
154
|
|
155
|
+
if attributes.key?(:'remote_was_deleted')
|
156
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'field_mappings')
|
160
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
161
|
+
self.field_mappings = value
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'modified_at')
|
166
|
+
self.modified_at = attributes[:'modified_at']
|
167
|
+
end
|
168
|
+
|
142
169
|
if attributes.key?(:'remote_data')
|
143
170
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
144
171
|
self.remote_data = value
|
145
172
|
end
|
146
173
|
end
|
147
|
-
|
148
|
-
if attributes.key?(:'remote_was_deleted')
|
149
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
150
|
-
end
|
151
174
|
end
|
152
175
|
|
153
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -176,8 +199,10 @@ module MergeATSClient
|
|
176
199
|
remote_created_at == o.remote_created_at &&
|
177
200
|
submitted_at == o.submitted_at &&
|
178
201
|
overall_recommendation == o.overall_recommendation &&
|
179
|
-
|
180
|
-
|
202
|
+
remote_was_deleted == o.remote_was_deleted &&
|
203
|
+
field_mappings == o.field_mappings &&
|
204
|
+
modified_at == o.modified_at &&
|
205
|
+
remote_data == o.remote_data
|
181
206
|
end
|
182
207
|
|
183
208
|
# @see the `==` method
|
@@ -189,7 +214,7 @@ module MergeATSClient
|
|
189
214
|
# Calculates hash code according to all attributes.
|
190
215
|
# @return [Integer] Hash code
|
191
216
|
def hash
|
192
|
-
[id, remote_id, application, interview, interviewer, remote_created_at, submitted_at, overall_recommendation,
|
217
|
+
[id, remote_id, application, interview, interviewer, remote_created_at, submitted_at, overall_recommendation, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
193
218
|
end
|
194
219
|
|
195
220
|
# Builds the object from hash
|
@@ -0,0 +1,45 @@
|
|
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 SelectiveSyncConfigurationsUsageEnum
|
18
|
+
NEXT_SYNC = "IN_NEXT_SYNC".freeze
|
19
|
+
LAST_SYNC = "IN_LAST_SYNC".freeze
|
20
|
+
|
21
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
22
|
+
|
23
|
+
attr_accessor :value
|
24
|
+
attr_accessor :raw_value
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def build_from_hash(value)
|
30
|
+
@raw_value = value
|
31
|
+
if ["IN_NEXT_SYNC", "IN_LAST_SYNC", ].include? value
|
32
|
+
@value = value
|
33
|
+
else
|
34
|
+
@value = MERGE_NONSTANDARD_VALUE
|
35
|
+
end
|
36
|
+
|
37
|
+
self
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.build_from_hash(value)
|
41
|
+
SelectiveSyncConfigurationsUsageEnum.new.build_from_hash(value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -28,6 +28,8 @@ module MergeATSClient
|
|
28
28
|
|
29
29
|
attr_accessor :is_initial_sync
|
30
30
|
|
31
|
+
attr_accessor :selective_sync_configurations_usage
|
32
|
+
|
31
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
34
|
def self.attribute_map
|
33
35
|
{
|
@@ -36,7 +38,8 @@ module MergeATSClient
|
|
36
38
|
:'last_sync_start' => :'last_sync_start',
|
37
39
|
:'next_sync_start' => :'next_sync_start',
|
38
40
|
:'status' => :'status',
|
39
|
-
:'is_initial_sync' => :'is_initial_sync'
|
41
|
+
:'is_initial_sync' => :'is_initial_sync',
|
42
|
+
:'selective_sync_configurations_usage' => :'selective_sync_configurations_usage'
|
40
43
|
}
|
41
44
|
end
|
42
45
|
|
@@ -53,7 +56,8 @@ module MergeATSClient
|
|
53
56
|
:'last_sync_start' => :'Time',
|
54
57
|
:'next_sync_start' => :'Time',
|
55
58
|
:'status' => :'SyncStatusStatusEnum',
|
56
|
-
:'is_initial_sync' => :'Boolean'
|
59
|
+
:'is_initial_sync' => :'Boolean',
|
60
|
+
:'selective_sync_configurations_usage' => :'SelectiveSyncConfigurationsUsageEnum'
|
57
61
|
}
|
58
62
|
end
|
59
63
|
|
@@ -101,6 +105,10 @@ module MergeATSClient
|
|
101
105
|
if attributes.key?(:'is_initial_sync')
|
102
106
|
self.is_initial_sync = attributes[:'is_initial_sync']
|
103
107
|
end
|
108
|
+
|
109
|
+
if attributes.key?(:'selective_sync_configurations_usage')
|
110
|
+
self.selective_sync_configurations_usage = attributes[:'selective_sync_configurations_usage']
|
111
|
+
end
|
104
112
|
end
|
105
113
|
|
106
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -146,7 +154,8 @@ module MergeATSClient
|
|
146
154
|
last_sync_start == o.last_sync_start &&
|
147
155
|
next_sync_start == o.next_sync_start &&
|
148
156
|
status == o.status &&
|
149
|
-
is_initial_sync == o.is_initial_sync
|
157
|
+
is_initial_sync == o.is_initial_sync &&
|
158
|
+
selective_sync_configurations_usage == o.selective_sync_configurations_usage
|
150
159
|
end
|
151
160
|
|
152
161
|
# @see the `==` method
|
@@ -158,7 +167,7 @@ module MergeATSClient
|
|
158
167
|
# Calculates hash code according to all attributes.
|
159
168
|
# @return [Integer] Hash code
|
160
169
|
def hash
|
161
|
-
[model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync].hash
|
170
|
+
[model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync, selective_sync_configurations_usage].hash
|
162
171
|
end
|
163
172
|
|
164
173
|
# Builds the object from hash
|
@@ -20,6 +20,7 @@ module MergeATSClient
|
|
20
20
|
FAILED = "FAILED".freeze
|
21
21
|
DISABLED = "DISABLED".freeze
|
22
22
|
PAUSED = "PAUSED".freeze
|
23
|
+
PARTIALLY_SYNCED = "PARTIALLY_SYNCED".freeze
|
23
24
|
|
24
25
|
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
26
|
|
@@ -31,7 +32,7 @@ module MergeATSClient
|
|
31
32
|
# @return [String] The enum value
|
32
33
|
def build_from_hash(value)
|
33
34
|
@raw_value = value
|
34
|
-
if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", ].include? value
|
35
|
+
if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED", ].include? value
|
35
36
|
@value = value
|
36
37
|
else
|
37
38
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -41,7 +42,7 @@ module MergeATSClient
|
|
41
42
|
end
|
42
43
|
|
43
44
|
def self.build_from_hash(value)
|
44
|
-
|
45
|
+
SyncStatusStatusEnum.new.build_from_hash(value)
|
45
46
|
end
|
46
47
|
end
|
47
48
|
|
@@ -22,18 +22,25 @@ module MergeATSClient
|
|
22
22
|
# The tag's name.
|
23
23
|
attr_accessor :name
|
24
24
|
|
25
|
-
attr_accessor :remote_data
|
26
|
-
|
27
25
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
28
26
|
attr_accessor :remote_was_deleted
|
29
27
|
|
28
|
+
attr_accessor :field_mappings
|
29
|
+
|
30
|
+
# This is the datetime that this object was last updated by Merge
|
31
|
+
attr_accessor :modified_at
|
32
|
+
|
33
|
+
attr_accessor :remote_data
|
34
|
+
|
30
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
36
|
def self.attribute_map
|
32
37
|
{
|
33
38
|
:'remote_id' => :'remote_id',
|
34
39
|
:'name' => :'name',
|
35
|
-
:'
|
36
|
-
:'
|
40
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
41
|
+
:'field_mappings' => :'field_mappings',
|
42
|
+
:'modified_at' => :'modified_at',
|
43
|
+
:'remote_data' => :'remote_data'
|
37
44
|
}
|
38
45
|
end
|
39
46
|
|
@@ -47,8 +54,10 @@ module MergeATSClient
|
|
47
54
|
{
|
48
55
|
:'remote_id' => :'String',
|
49
56
|
:'name' => :'String',
|
50
|
-
:'
|
51
|
-
:'
|
57
|
+
:'remote_was_deleted' => :'Boolean',
|
58
|
+
:'field_mappings' => :'Hash<String, Object>',
|
59
|
+
:'modified_at' => :'Time',
|
60
|
+
:'remote_data' => :'Array<Hash<String, Object>>'
|
52
61
|
}
|
53
62
|
end
|
54
63
|
|
@@ -57,7 +66,8 @@ module MergeATSClient
|
|
57
66
|
Set.new([
|
58
67
|
:'remote_id',
|
59
68
|
:'name',
|
60
|
-
:'
|
69
|
+
:'field_mappings',
|
70
|
+
:'remote_data'
|
61
71
|
])
|
62
72
|
end
|
63
73
|
|
@@ -84,15 +94,25 @@ module MergeATSClient
|
|
84
94
|
self.name = attributes[:'name']
|
85
95
|
end
|
86
96
|
|
97
|
+
if attributes.key?(:'remote_was_deleted')
|
98
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'field_mappings')
|
102
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
103
|
+
self.field_mappings = value
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'modified_at')
|
108
|
+
self.modified_at = attributes[:'modified_at']
|
109
|
+
end
|
110
|
+
|
87
111
|
if attributes.key?(:'remote_data')
|
88
112
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
89
113
|
self.remote_data = value
|
90
114
|
end
|
91
115
|
end
|
92
|
-
|
93
|
-
if attributes.key?(:'remote_was_deleted')
|
94
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
95
|
-
end
|
96
116
|
end
|
97
117
|
|
98
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,8 +135,10 @@ module MergeATSClient
|
|
115
135
|
self.class == o.class &&
|
116
136
|
remote_id == o.remote_id &&
|
117
137
|
name == o.name &&
|
118
|
-
|
119
|
-
|
138
|
+
remote_was_deleted == o.remote_was_deleted &&
|
139
|
+
field_mappings == o.field_mappings &&
|
140
|
+
modified_at == o.modified_at &&
|
141
|
+
remote_data == o.remote_data
|
120
142
|
end
|
121
143
|
|
122
144
|
# @see the `==` method
|
@@ -128,7 +150,7 @@ module MergeATSClient
|
|
128
150
|
# Calculates hash code according to all attributes.
|
129
151
|
# @return [Integer] Hash code
|
130
152
|
def hash
|
131
|
-
[remote_id, name,
|
153
|
+
[remote_id, name, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
132
154
|
end
|
133
155
|
|
134
156
|
# Builds the object from hash
|