merge_ats_client 3.0.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +186 -179
- 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 +1 -1
- 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 +1 -1
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +3 -1
- 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/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/PaginatedConditionSchemaList.md +2 -2
- data/docs/PhoneNumber.md +4 -2
- data/docs/PhoneNumberRequest.md +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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/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/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/candidate.rb +36 -27
- data/lib/merge_ats_client/models/candidate_request.rb +3 -49
- data/lib/merge_ats_client/models/categories_enum.rb +3 -1
- data/lib/merge_ats_client/models/category_enum.rb +3 -1
- data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_ats_client/models/condition_schema.rb +1 -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/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 +1 -1
- data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +18 -5
- 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/link_token.rb +0 -5
- data/lib/merge_ats_client/models/meta_response.rb +12 -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/office.rb +37 -15
- data/lib/merge_ats_client/models/phone_number.rb +16 -6
- data/lib/merge_ats_client/models/phone_number_request.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/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/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 +2 -1
- data/lib/merge_ats_client/models/tag.rb +36 -14
- data/lib/merge_ats_client/models/url.rb +16 -6
- data/lib/merge_ats_client/models/url_request.rb +1 -1
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +9 -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 +1 -1
- 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/department_spec.rb +14 -2
- data/spec/models/eeoc_spec.rb +14 -2
- 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/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/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/{remote_data_request_spec.rb → scheduled_interview_endpoint_request_spec.rb} +8 -8
- 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_spec.rb +6 -0
- metadata +156 -124
@@ -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 ActivityResponse
|
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' => :'Activity',
|
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::ActivityResponse` 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::ActivityResponse`. 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,15 +14,17 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Application Object ### Description The
|
17
|
+
# # The Application Object ### Description The Application Object is used to represent a candidate's journey through a particular Job's recruiting process. If a Candidate applies for multiple Jobs, there will be a separate Application for each Job if the third-party integration allows it. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
|
18
18
|
class Application
|
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 applying.
|
24
25
|
attr_accessor :candidate
|
25
26
|
|
27
|
+
# The job being applied for.
|
26
28
|
attr_accessor :job
|
27
29
|
|
28
30
|
# When the application was submitted.
|
@@ -34,18 +36,23 @@ module MergeATSClient
|
|
34
36
|
# The application's source.
|
35
37
|
attr_accessor :source
|
36
38
|
|
39
|
+
# The user credited for this application.
|
37
40
|
attr_accessor :credited_to
|
38
41
|
|
42
|
+
# The application's current stage.
|
39
43
|
attr_accessor :current_stage
|
40
44
|
|
45
|
+
# The application's reason for rejection.
|
41
46
|
attr_accessor :reject_reason
|
42
47
|
|
43
|
-
attr_accessor :
|
48
|
+
attr_accessor :remote_was_deleted
|
44
49
|
|
45
|
-
|
46
|
-
attr_accessor :custom_fields
|
50
|
+
attr_accessor :field_mappings
|
47
51
|
|
48
|
-
|
52
|
+
# This is the datetime that this object was last updated by Merge
|
53
|
+
attr_accessor :modified_at
|
54
|
+
|
55
|
+
attr_accessor :remote_data
|
49
56
|
|
50
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
58
|
def self.attribute_map
|
@@ -60,9 +67,10 @@ module MergeATSClient
|
|
60
67
|
:'credited_to' => :'credited_to',
|
61
68
|
:'current_stage' => :'current_stage',
|
62
69
|
:'reject_reason' => :'reject_reason',
|
63
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
70
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
71
|
+
:'field_mappings' => :'field_mappings',
|
72
|
+
:'modified_at' => :'modified_at',
|
73
|
+
:'remote_data' => :'remote_data'
|
66
74
|
}
|
67
75
|
end
|
68
76
|
|
@@ -84,9 +92,10 @@ module MergeATSClient
|
|
84
92
|
:'credited_to' => :'String',
|
85
93
|
:'current_stage' => :'String',
|
86
94
|
:'reject_reason' => :'String',
|
87
|
-
:'
|
88
|
-
:'
|
89
|
-
:'
|
95
|
+
:'remote_was_deleted' => :'Boolean',
|
96
|
+
:'field_mappings' => :'Hash<String, Object>',
|
97
|
+
:'modified_at' => :'Time',
|
98
|
+
:'remote_data' => :'Array<RemoteData>'
|
90
99
|
}
|
91
100
|
end
|
92
101
|
|
@@ -102,8 +111,8 @@ module MergeATSClient
|
|
102
111
|
:'credited_to',
|
103
112
|
:'current_stage',
|
104
113
|
:'reject_reason',
|
105
|
-
:'
|
106
|
-
:'
|
114
|
+
:'field_mappings',
|
115
|
+
:'remote_data'
|
107
116
|
])
|
108
117
|
end
|
109
118
|
|
@@ -162,20 +171,24 @@ module MergeATSClient
|
|
162
171
|
self.reject_reason = attributes[:'reject_reason']
|
163
172
|
end
|
164
173
|
|
165
|
-
if attributes.key?(:'
|
166
|
-
|
167
|
-
self.remote_data = value
|
168
|
-
end
|
174
|
+
if attributes.key?(:'remote_was_deleted')
|
175
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
169
176
|
end
|
170
177
|
|
171
|
-
if attributes.key?(:'
|
172
|
-
if (value = attributes[:'
|
173
|
-
self.
|
178
|
+
if attributes.key?(:'field_mappings')
|
179
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
180
|
+
self.field_mappings = value
|
174
181
|
end
|
175
182
|
end
|
176
183
|
|
177
|
-
if attributes.key?(:'
|
178
|
-
self.
|
184
|
+
if attributes.key?(:'modified_at')
|
185
|
+
self.modified_at = attributes[:'modified_at']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'remote_data')
|
189
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
190
|
+
self.remote_data = value
|
191
|
+
end
|
179
192
|
end
|
180
193
|
end
|
181
194
|
|
@@ -207,9 +220,10 @@ module MergeATSClient
|
|
207
220
|
credited_to == o.credited_to &&
|
208
221
|
current_stage == o.current_stage &&
|
209
222
|
reject_reason == o.reject_reason &&
|
210
|
-
|
211
|
-
|
212
|
-
|
223
|
+
remote_was_deleted == o.remote_was_deleted &&
|
224
|
+
field_mappings == o.field_mappings &&
|
225
|
+
modified_at == o.modified_at &&
|
226
|
+
remote_data == o.remote_data
|
213
227
|
end
|
214
228
|
|
215
229
|
# @see the `==` method
|
@@ -221,7 +235,7 @@ module MergeATSClient
|
|
221
235
|
# Calculates hash code according to all attributes.
|
222
236
|
# @return [Integer] Hash code
|
223
237
|
def hash
|
224
|
-
[id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason,
|
238
|
+
[id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
225
239
|
end
|
226
240
|
|
227
241
|
# Builds the object from hash
|
@@ -14,13 +14,12 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Application Object ### Description The
|
17
|
+
# # The Application Object ### Description The Application Object is used to represent a candidate's journey through a particular Job's recruiting process. If a Candidate applies for multiple Jobs, there will be a separate Application for each Job if the third-party integration allows it. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
|
18
18
|
class ApplicationRequest
|
19
|
-
# The
|
20
|
-
attr_accessor :remote_id
|
21
|
-
|
19
|
+
# The candidate applying.
|
22
20
|
attr_accessor :candidate
|
23
21
|
|
22
|
+
# The job being applied for.
|
24
23
|
attr_accessor :job
|
25
24
|
|
26
25
|
# When the application was submitted.
|
@@ -32,15 +31,15 @@ module MergeATSClient
|
|
32
31
|
# The application's source.
|
33
32
|
attr_accessor :source
|
34
33
|
|
34
|
+
# The user credited for this application.
|
35
35
|
attr_accessor :credited_to
|
36
36
|
|
37
|
+
# The application's current stage.
|
37
38
|
attr_accessor :current_stage
|
38
39
|
|
40
|
+
# The application's reason for rejection.
|
39
41
|
attr_accessor :reject_reason
|
40
42
|
|
41
|
-
# Custom fields configured for a given model.
|
42
|
-
attr_accessor :custom_fields
|
43
|
-
|
44
43
|
attr_accessor :remote_template_id
|
45
44
|
|
46
45
|
attr_accessor :integration_params
|
@@ -50,7 +49,6 @@ module MergeATSClient
|
|
50
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
50
|
def self.attribute_map
|
52
51
|
{
|
53
|
-
:'remote_id' => :'remote_id',
|
54
52
|
:'candidate' => :'candidate',
|
55
53
|
:'job' => :'job',
|
56
54
|
:'applied_at' => :'applied_at',
|
@@ -59,7 +57,6 @@ module MergeATSClient
|
|
59
57
|
:'credited_to' => :'credited_to',
|
60
58
|
:'current_stage' => :'current_stage',
|
61
59
|
:'reject_reason' => :'reject_reason',
|
62
|
-
:'custom_fields' => :'custom_fields',
|
63
60
|
:'remote_template_id' => :'remote_template_id',
|
64
61
|
:'integration_params' => :'integration_params',
|
65
62
|
:'linked_account_params' => :'linked_account_params'
|
@@ -74,7 +71,6 @@ module MergeATSClient
|
|
74
71
|
# Attribute type mapping.
|
75
72
|
def self.openapi_types
|
76
73
|
{
|
77
|
-
:'remote_id' => :'String',
|
78
74
|
:'candidate' => :'String',
|
79
75
|
:'job' => :'String',
|
80
76
|
:'applied_at' => :'Time',
|
@@ -83,7 +79,6 @@ module MergeATSClient
|
|
83
79
|
:'credited_to' => :'String',
|
84
80
|
:'current_stage' => :'String',
|
85
81
|
:'reject_reason' => :'String',
|
86
|
-
:'custom_fields' => :'Hash<String, Object>',
|
87
82
|
:'remote_template_id' => :'String',
|
88
83
|
:'integration_params' => :'Hash<String, Object>',
|
89
84
|
:'linked_account_params' => :'Hash<String, Object>'
|
@@ -93,7 +88,6 @@ module MergeATSClient
|
|
93
88
|
# List of attributes with nullable: true
|
94
89
|
def self.openapi_nullable
|
95
90
|
Set.new([
|
96
|
-
:'remote_id',
|
97
91
|
:'candidate',
|
98
92
|
:'job',
|
99
93
|
:'applied_at',
|
@@ -102,7 +96,6 @@ module MergeATSClient
|
|
102
96
|
:'credited_to',
|
103
97
|
:'current_stage',
|
104
98
|
:'reject_reason',
|
105
|
-
:'custom_fields',
|
106
99
|
:'remote_template_id',
|
107
100
|
:'integration_params',
|
108
101
|
:'linked_account_params'
|
@@ -124,10 +117,6 @@ module MergeATSClient
|
|
124
117
|
h[k.to_sym] = v
|
125
118
|
}
|
126
119
|
|
127
|
-
if attributes.key?(:'remote_id')
|
128
|
-
self.remote_id = attributes[:'remote_id']
|
129
|
-
end
|
130
|
-
|
131
120
|
if attributes.key?(:'candidate')
|
132
121
|
self.candidate = attributes[:'candidate']
|
133
122
|
end
|
@@ -160,12 +149,6 @@ module MergeATSClient
|
|
160
149
|
self.reject_reason = attributes[:'reject_reason']
|
161
150
|
end
|
162
151
|
|
163
|
-
if attributes.key?(:'custom_fields')
|
164
|
-
if (value = attributes[:'custom_fields']).is_a?(Hash)
|
165
|
-
self.custom_fields = value
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
152
|
if attributes.key?(:'remote_template_id')
|
170
153
|
self.remote_template_id = attributes[:'remote_template_id']
|
171
154
|
end
|
@@ -216,7 +199,6 @@ module MergeATSClient
|
|
216
199
|
def ==(o)
|
217
200
|
return true if self.equal?(o)
|
218
201
|
self.class == o.class &&
|
219
|
-
remote_id == o.remote_id &&
|
220
202
|
candidate == o.candidate &&
|
221
203
|
job == o.job &&
|
222
204
|
applied_at == o.applied_at &&
|
@@ -225,7 +207,6 @@ module MergeATSClient
|
|
225
207
|
credited_to == o.credited_to &&
|
226
208
|
current_stage == o.current_stage &&
|
227
209
|
reject_reason == o.reject_reason &&
|
228
|
-
custom_fields == o.custom_fields &&
|
229
210
|
remote_template_id == o.remote_template_id &&
|
230
211
|
integration_params == o.integration_params &&
|
231
212
|
linked_account_params == o.linked_account_params
|
@@ -240,7 +221,7 @@ module MergeATSClient
|
|
240
221
|
# Calculates hash code according to all attributes.
|
241
222
|
# @return [Integer] Hash code
|
242
223
|
def hash
|
243
|
-
[
|
224
|
+
[candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_template_id, integration_params, linked_account_params].hash
|
244
225
|
end
|
245
226
|
|
246
227
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Attachment Object ### Description The `Attachment` object is used to represent a
|
17
|
+
# # The Attachment Object ### Description The `Attachment` object is used to represent a file attached to a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
|
18
18
|
class Attachment
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -29,13 +29,18 @@ module MergeATSClient
|
|
29
29
|
|
30
30
|
attr_accessor :candidate
|
31
31
|
|
32
|
-
# The attachment's type.
|
32
|
+
# The attachment's type. * `RESUME` - RESUME * `COVER_LETTER` - COVER_LETTER * `OFFER_LETTER` - OFFER_LETTER * `OTHER` - OTHER
|
33
33
|
attr_accessor :attachment_type
|
34
34
|
|
35
|
-
attr_accessor :remote_data
|
36
|
-
|
37
35
|
attr_accessor :remote_was_deleted
|
38
36
|
|
37
|
+
attr_accessor :field_mappings
|
38
|
+
|
39
|
+
# This is the datetime that this object was last updated by Merge
|
40
|
+
attr_accessor :modified_at
|
41
|
+
|
42
|
+
attr_accessor :remote_data
|
43
|
+
|
39
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
45
|
def self.attribute_map
|
41
46
|
{
|
@@ -45,8 +50,10 @@ module MergeATSClient
|
|
45
50
|
:'file_url' => :'file_url',
|
46
51
|
:'candidate' => :'candidate',
|
47
52
|
:'attachment_type' => :'attachment_type',
|
48
|
-
:'
|
49
|
-
:'
|
53
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
54
|
+
:'field_mappings' => :'field_mappings',
|
55
|
+
:'modified_at' => :'modified_at',
|
56
|
+
:'remote_data' => :'remote_data'
|
50
57
|
}
|
51
58
|
end
|
52
59
|
|
@@ -64,8 +71,10 @@ module MergeATSClient
|
|
64
71
|
:'file_url' => :'String',
|
65
72
|
:'candidate' => :'String',
|
66
73
|
:'attachment_type' => :'AttachmentTypeEnum',
|
67
|
-
:'
|
68
|
-
:'
|
74
|
+
:'remote_was_deleted' => :'Boolean',
|
75
|
+
:'field_mappings' => :'Hash<String, Object>',
|
76
|
+
:'modified_at' => :'Time',
|
77
|
+
:'remote_data' => :'Array<RemoteData>'
|
69
78
|
}
|
70
79
|
end
|
71
80
|
|
@@ -77,7 +86,8 @@ module MergeATSClient
|
|
77
86
|
:'file_url',
|
78
87
|
:'candidate',
|
79
88
|
:'attachment_type',
|
80
|
-
:'
|
89
|
+
:'field_mappings',
|
90
|
+
:'remote_data'
|
81
91
|
])
|
82
92
|
end
|
83
93
|
|
@@ -120,15 +130,25 @@ module MergeATSClient
|
|
120
130
|
self.attachment_type = attributes[:'attachment_type']
|
121
131
|
end
|
122
132
|
|
133
|
+
if attributes.key?(:'remote_was_deleted')
|
134
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'field_mappings')
|
138
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
139
|
+
self.field_mappings = value
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'modified_at')
|
144
|
+
self.modified_at = attributes[:'modified_at']
|
145
|
+
end
|
146
|
+
|
123
147
|
if attributes.key?(:'remote_data')
|
124
148
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
125
149
|
self.remote_data = value
|
126
150
|
end
|
127
151
|
end
|
128
|
-
|
129
|
-
if attributes.key?(:'remote_was_deleted')
|
130
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
131
|
-
end
|
132
152
|
end
|
133
153
|
|
134
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -170,8 +190,10 @@ module MergeATSClient
|
|
170
190
|
file_url == o.file_url &&
|
171
191
|
candidate == o.candidate &&
|
172
192
|
attachment_type == o.attachment_type &&
|
173
|
-
|
174
|
-
|
193
|
+
remote_was_deleted == o.remote_was_deleted &&
|
194
|
+
field_mappings == o.field_mappings &&
|
195
|
+
modified_at == o.modified_at &&
|
196
|
+
remote_data == o.remote_data
|
175
197
|
end
|
176
198
|
|
177
199
|
# @see the `==` method
|
@@ -183,7 +205,7 @@ module MergeATSClient
|
|
183
205
|
# Calculates hash code according to all attributes.
|
184
206
|
# @return [Integer] Hash code
|
185
207
|
def hash
|
186
|
-
[id, remote_id, file_name, file_url, candidate, attachment_type,
|
208
|
+
[id, remote_id, file_name, file_url, candidate, attachment_type, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
187
209
|
end
|
188
210
|
|
189
211
|
# Builds the object from hash
|