merge_ats_client 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +198 -186
- data/docs/Activity.md +2 -2
- data/docs/Application.md +2 -2
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/Attachment.md +2 -2
- data/docs/Candidate.md +2 -2
- data/docs/CandidatesApi.md +156 -0
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/Department.md +2 -2
- data/docs/EEOC.md +2 -2
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/Job.md +2 -2
- data/docs/JobInterviewStage.md +2 -2
- data/docs/Offer.md +2 -2
- data/docs/Office.md +2 -2
- data/docs/PatchedCandidateEndpointRequest.md +20 -0
- data/docs/PatchedCandidateRequest.md +50 -0
- data/docs/RejectReason.md +2 -2
- data/docs/RemoteData.md +1 -1
- data/docs/RemoteUser.md +2 -2
- data/docs/ScheduledInterview.md +2 -2
- data/docs/Scorecard.md +2 -2
- data/docs/Tag.md +2 -2
- data/lib/merge_ats_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_ats_client/api/candidates_api.rb +150 -0
- data/lib/merge_ats_client/api/delete_account_api.rb +7 -7
- data/lib/merge_ats_client/models/activity.rb +10 -10
- data/lib/merge_ats_client/models/application.rb +10 -10
- data/lib/merge_ats_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_ats_client/models/attachment.rb +10 -10
- data/lib/merge_ats_client/models/candidate.rb +10 -10
- data/lib/merge_ats_client/models/department.rb +10 -10
- data/lib/merge_ats_client/models/eeoc.rb +10 -10
- data/lib/merge_ats_client/models/end_user_details_request.rb +1 -1
- data/lib/merge_ats_client/models/job.rb +10 -10
- data/lib/merge_ats_client/models/job_interview_stage.rb +10 -10
- data/lib/merge_ats_client/models/offer.rb +10 -10
- data/lib/merge_ats_client/models/office.rb +10 -10
- data/lib/merge_ats_client/models/patched_candidate_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/patched_candidate_request.rb +418 -0
- data/lib/merge_ats_client/models/reject_reason.rb +10 -10
- data/lib/merge_ats_client/models/remote_data.rb +3 -4
- data/lib/merge_ats_client/models/remote_user.rb +10 -10
- data/lib/merge_ats_client/models/scheduled_interview.rb +10 -10
- data/lib/merge_ats_client/models/scorecard.rb +10 -10
- data/lib/merge_ats_client/models/tag.rb +10 -10
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +4 -0
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/candidates_api_spec.rb +27 -0
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/models/activity_spec.rb +2 -2
- data/spec/models/application_spec.rb +2 -2
- data/spec/models/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/attachment_spec.rb +2 -2
- data/spec/models/candidate_spec.rb +2 -2
- data/spec/models/department_spec.rb +2 -2
- data/spec/models/eeoc_spec.rb +2 -2
- data/spec/models/job_interview_stage_spec.rb +2 -2
- data/spec/models/job_spec.rb +2 -2
- data/spec/models/offer_spec.rb +2 -2
- data/spec/models/office_spec.rb +2 -2
- data/spec/models/patched_candidate_endpoint_request_spec.rb +40 -0
- data/spec/models/patched_candidate_request_spec.rb +130 -0
- data/spec/models/reject_reason_spec.rb +2 -2
- data/spec/models/remote_user_spec.rb +2 -2
- data/spec/models/scheduled_interview_spec.rb +2 -2
- data/spec/models/scorecard_spec.rb +2 -2
- data/spec/models/tag_spec.rb +2 -2
- metadata +140 -124
@@ -0,0 +1,418 @@
|
|
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
|
+
# # The Candidate Object ### Description The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. ### Usage Example Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates.
|
18
|
+
class PatchedCandidateRequest
|
19
|
+
# The candidate's first name.
|
20
|
+
attr_accessor :first_name
|
21
|
+
|
22
|
+
# The candidate's last name.
|
23
|
+
attr_accessor :last_name
|
24
|
+
|
25
|
+
# The candidate's current company.
|
26
|
+
attr_accessor :company
|
27
|
+
|
28
|
+
# The candidate's current title.
|
29
|
+
attr_accessor :title
|
30
|
+
|
31
|
+
# When the most recent interaction with the candidate occurred.
|
32
|
+
attr_accessor :last_interaction_at
|
33
|
+
|
34
|
+
# Whether or not the candidate is private.
|
35
|
+
attr_accessor :is_private
|
36
|
+
|
37
|
+
# Whether or not the candidate can be emailed.
|
38
|
+
attr_accessor :can_email
|
39
|
+
|
40
|
+
# The candidate's locations.
|
41
|
+
attr_accessor :locations
|
42
|
+
|
43
|
+
attr_accessor :phone_numbers
|
44
|
+
|
45
|
+
attr_accessor :email_addresses
|
46
|
+
|
47
|
+
attr_accessor :urls
|
48
|
+
|
49
|
+
# Array of `Tag` names as strings.
|
50
|
+
attr_accessor :tags
|
51
|
+
|
52
|
+
# Array of `Application` object IDs.
|
53
|
+
attr_accessor :applications
|
54
|
+
|
55
|
+
# Array of `Attachment` object IDs.
|
56
|
+
attr_accessor :attachments
|
57
|
+
|
58
|
+
attr_accessor :remote_template_id
|
59
|
+
|
60
|
+
attr_accessor :integration_params
|
61
|
+
|
62
|
+
attr_accessor :linked_account_params
|
63
|
+
|
64
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
65
|
+
def self.attribute_map
|
66
|
+
{
|
67
|
+
:'first_name' => :'first_name',
|
68
|
+
:'last_name' => :'last_name',
|
69
|
+
:'company' => :'company',
|
70
|
+
:'title' => :'title',
|
71
|
+
:'last_interaction_at' => :'last_interaction_at',
|
72
|
+
:'is_private' => :'is_private',
|
73
|
+
:'can_email' => :'can_email',
|
74
|
+
:'locations' => :'locations',
|
75
|
+
:'phone_numbers' => :'phone_numbers',
|
76
|
+
:'email_addresses' => :'email_addresses',
|
77
|
+
:'urls' => :'urls',
|
78
|
+
:'tags' => :'tags',
|
79
|
+
:'applications' => :'applications',
|
80
|
+
:'attachments' => :'attachments',
|
81
|
+
:'remote_template_id' => :'remote_template_id',
|
82
|
+
:'integration_params' => :'integration_params',
|
83
|
+
:'linked_account_params' => :'linked_account_params'
|
84
|
+
}
|
85
|
+
end
|
86
|
+
|
87
|
+
# Returns all the JSON keys this model knows about
|
88
|
+
def self.acceptable_attributes
|
89
|
+
attribute_map.values
|
90
|
+
end
|
91
|
+
|
92
|
+
# Attribute type mapping.
|
93
|
+
def self.openapi_types
|
94
|
+
{
|
95
|
+
:'first_name' => :'String',
|
96
|
+
:'last_name' => :'String',
|
97
|
+
:'company' => :'String',
|
98
|
+
:'title' => :'String',
|
99
|
+
:'last_interaction_at' => :'Time',
|
100
|
+
:'is_private' => :'Boolean',
|
101
|
+
:'can_email' => :'Boolean',
|
102
|
+
:'locations' => :'Array<String>',
|
103
|
+
:'phone_numbers' => :'Array<PhoneNumberRequest>',
|
104
|
+
:'email_addresses' => :'Array<EmailAddressRequest>',
|
105
|
+
:'urls' => :'Array<UrlRequest>',
|
106
|
+
:'tags' => :'Array<String>',
|
107
|
+
:'applications' => :'Array<String>',
|
108
|
+
:'attachments' => :'Array<String>',
|
109
|
+
:'remote_template_id' => :'String',
|
110
|
+
:'integration_params' => :'Hash<String, Object>',
|
111
|
+
:'linked_account_params' => :'Hash<String, Object>'
|
112
|
+
}
|
113
|
+
end
|
114
|
+
|
115
|
+
# List of attributes with nullable: true
|
116
|
+
def self.openapi_nullable
|
117
|
+
Set.new([
|
118
|
+
:'first_name',
|
119
|
+
:'last_name',
|
120
|
+
:'company',
|
121
|
+
:'title',
|
122
|
+
:'last_interaction_at',
|
123
|
+
:'is_private',
|
124
|
+
:'can_email',
|
125
|
+
:'locations',
|
126
|
+
:'remote_template_id',
|
127
|
+
:'integration_params',
|
128
|
+
:'linked_account_params'
|
129
|
+
])
|
130
|
+
end
|
131
|
+
|
132
|
+
# Initializes the object
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
+
def initialize(attributes = {})
|
135
|
+
if (!attributes.is_a?(Hash))
|
136
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::PatchedCandidateRequest` initialize method"
|
137
|
+
end
|
138
|
+
|
139
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
140
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
141
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
142
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::PatchedCandidateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
143
|
+
end
|
144
|
+
h[k.to_sym] = v
|
145
|
+
}
|
146
|
+
|
147
|
+
if attributes.key?(:'first_name')
|
148
|
+
self.first_name = attributes[:'first_name']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'last_name')
|
152
|
+
self.last_name = attributes[:'last_name']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'company')
|
156
|
+
self.company = attributes[:'company']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'title')
|
160
|
+
self.title = attributes[:'title']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.key?(:'last_interaction_at')
|
164
|
+
self.last_interaction_at = attributes[:'last_interaction_at']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'is_private')
|
168
|
+
self.is_private = attributes[:'is_private']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.key?(:'can_email')
|
172
|
+
self.can_email = attributes[:'can_email']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.key?(:'locations')
|
176
|
+
if (value = attributes[:'locations']).is_a?(Array)
|
177
|
+
self.locations = value
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'phone_numbers')
|
182
|
+
if (value = attributes[:'phone_numbers']).is_a?(Array)
|
183
|
+
self.phone_numbers = value
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.key?(:'email_addresses')
|
188
|
+
if (value = attributes[:'email_addresses']).is_a?(Array)
|
189
|
+
self.email_addresses = value
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'urls')
|
194
|
+
if (value = attributes[:'urls']).is_a?(Array)
|
195
|
+
self.urls = value
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.key?(:'tags')
|
200
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
201
|
+
self.tags = value
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'applications')
|
206
|
+
if (value = attributes[:'applications']).is_a?(Array)
|
207
|
+
self.applications = value
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.key?(:'attachments')
|
212
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
213
|
+
self.attachments = value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.key?(:'remote_template_id')
|
218
|
+
self.remote_template_id = attributes[:'remote_template_id']
|
219
|
+
end
|
220
|
+
|
221
|
+
if attributes.key?(:'integration_params')
|
222
|
+
if (value = attributes[:'integration_params']).is_a?(Hash)
|
223
|
+
self.integration_params = value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
if attributes.key?(:'linked_account_params')
|
228
|
+
if (value = attributes[:'linked_account_params']).is_a?(Hash)
|
229
|
+
self.linked_account_params = value
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
235
|
+
# @return Array for valid properties with the reasons
|
236
|
+
def list_invalid_properties
|
237
|
+
invalid_properties = Array.new
|
238
|
+
if !@remote_template_id.nil? && @remote_template_id.to_s.length < 1
|
239
|
+
invalid_properties.push('invalid value for "remote_template_id", the character length must be great than or equal to 1.')
|
240
|
+
end
|
241
|
+
|
242
|
+
invalid_properties
|
243
|
+
end
|
244
|
+
|
245
|
+
# Check to see if the all the properties in the model are valid
|
246
|
+
# @return true if the model is valid
|
247
|
+
def valid?
|
248
|
+
return false if !@remote_template_id.nil? && @remote_template_id.to_s.length < 1
|
249
|
+
true
|
250
|
+
end
|
251
|
+
|
252
|
+
# Custom attribute writer method with validation
|
253
|
+
# @param [Object] remote_template_id Value to be assigned
|
254
|
+
def remote_template_id=(remote_template_id)
|
255
|
+
if !remote_template_id.nil? && remote_template_id.to_s.length < 1
|
256
|
+
fail ArgumentError, 'invalid value for "remote_template_id", the character length must be great than or equal to 1.'
|
257
|
+
end
|
258
|
+
|
259
|
+
@remote_template_id = remote_template_id
|
260
|
+
end
|
261
|
+
|
262
|
+
# Checks equality by comparing each attribute.
|
263
|
+
# @param [Object] Object to be compared
|
264
|
+
def ==(o)
|
265
|
+
return true if self.equal?(o)
|
266
|
+
self.class == o.class &&
|
267
|
+
first_name == o.first_name &&
|
268
|
+
last_name == o.last_name &&
|
269
|
+
company == o.company &&
|
270
|
+
title == o.title &&
|
271
|
+
last_interaction_at == o.last_interaction_at &&
|
272
|
+
is_private == o.is_private &&
|
273
|
+
can_email == o.can_email &&
|
274
|
+
locations == o.locations &&
|
275
|
+
phone_numbers == o.phone_numbers &&
|
276
|
+
email_addresses == o.email_addresses &&
|
277
|
+
urls == o.urls &&
|
278
|
+
tags == o.tags &&
|
279
|
+
applications == o.applications &&
|
280
|
+
attachments == o.attachments &&
|
281
|
+
remote_template_id == o.remote_template_id &&
|
282
|
+
integration_params == o.integration_params &&
|
283
|
+
linked_account_params == o.linked_account_params
|
284
|
+
end
|
285
|
+
|
286
|
+
# @see the `==` method
|
287
|
+
# @param [Object] Object to be compared
|
288
|
+
def eql?(o)
|
289
|
+
self == o
|
290
|
+
end
|
291
|
+
|
292
|
+
# Calculates hash code according to all attributes.
|
293
|
+
# @return [Integer] Hash code
|
294
|
+
def hash
|
295
|
+
[first_name, last_name, company, title, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments, remote_template_id, integration_params, linked_account_params].hash
|
296
|
+
end
|
297
|
+
|
298
|
+
# Builds the object from hash
|
299
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
300
|
+
# @return [Object] Returns the model itself
|
301
|
+
def self.build_from_hash(attributes)
|
302
|
+
new.build_from_hash(attributes)
|
303
|
+
end
|
304
|
+
|
305
|
+
# Builds the object from hash
|
306
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
307
|
+
# @return [Object] Returns the model itself
|
308
|
+
def build_from_hash(attributes)
|
309
|
+
return nil unless attributes.is_a?(Hash)
|
310
|
+
self.class.openapi_types.each_pair do |key, type|
|
311
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
312
|
+
self.send("#{key}=", nil)
|
313
|
+
elsif type =~ /\AArray<(.*)>/i
|
314
|
+
# check to ensure the input is an array given that the attribute
|
315
|
+
# is documented as an array but the input is not
|
316
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
317
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
318
|
+
end
|
319
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
320
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
self
|
325
|
+
end
|
326
|
+
|
327
|
+
# Deserializes the data based on type
|
328
|
+
# @param string type Data type
|
329
|
+
# @param string value Value to be deserialized
|
330
|
+
# @return [Object] Deserialized data
|
331
|
+
def _deserialize(type, value)
|
332
|
+
case type.to_sym
|
333
|
+
when :Time
|
334
|
+
Time.parse(value)
|
335
|
+
when :Date
|
336
|
+
Date.parse(value)
|
337
|
+
when :String
|
338
|
+
value
|
339
|
+
when :Integer
|
340
|
+
value.to_i
|
341
|
+
when :Float
|
342
|
+
value.to_f
|
343
|
+
when :Boolean
|
344
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
345
|
+
true
|
346
|
+
else
|
347
|
+
false
|
348
|
+
end
|
349
|
+
when :Object
|
350
|
+
# generic object (usually a Hash), return directly
|
351
|
+
value
|
352
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
353
|
+
inner_type = Regexp.last_match[:inner_type]
|
354
|
+
value.map { |v| _deserialize(inner_type, v) }
|
355
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
356
|
+
k_type = Regexp.last_match[:k_type]
|
357
|
+
v_type = Regexp.last_match[:v_type]
|
358
|
+
{}.tap do |hash|
|
359
|
+
value.each do |k, v|
|
360
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
361
|
+
end
|
362
|
+
end
|
363
|
+
else # model
|
364
|
+
# models (e.g. Pet) or oneOf
|
365
|
+
klass = MergeATSClient.const_get(type)
|
366
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
# Returns the string representation of the object
|
371
|
+
# @return [String] String presentation of the object
|
372
|
+
def to_s
|
373
|
+
to_hash.to_s
|
374
|
+
end
|
375
|
+
|
376
|
+
# to_body is an alias to to_hash (backward compatibility)
|
377
|
+
# @return [Hash] Returns the object in the form of hash
|
378
|
+
def to_body
|
379
|
+
to_hash
|
380
|
+
end
|
381
|
+
|
382
|
+
# Returns the object in the form of hash
|
383
|
+
# @return [Hash] Returns the object in the form of hash
|
384
|
+
def to_hash
|
385
|
+
hash = {}
|
386
|
+
self.class.attribute_map.each_pair do |attr, param|
|
387
|
+
value = self.send(attr)
|
388
|
+
if value.nil?
|
389
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
390
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
391
|
+
end
|
392
|
+
|
393
|
+
hash[param] = _to_hash(value)
|
394
|
+
end
|
395
|
+
hash
|
396
|
+
end
|
397
|
+
|
398
|
+
# Outputs non-array value in the form of hash
|
399
|
+
# For object, use to_hash. Otherwise, just return the value
|
400
|
+
# @param [Object] value Any valid value
|
401
|
+
# @return [Hash] Returns the value in the form of hash
|
402
|
+
def _to_hash(value)
|
403
|
+
if value.is_a?(Array)
|
404
|
+
value.compact.map { |v| _to_hash(v) }
|
405
|
+
elsif value.is_a?(Hash)
|
406
|
+
{}.tap do |hash|
|
407
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
408
|
+
end
|
409
|
+
elsif value.respond_to? :to_hash
|
410
|
+
value.to_hash
|
411
|
+
else
|
412
|
+
value
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
end
|
417
|
+
|
418
|
+
end
|
@@ -27,11 +27,11 @@ module MergeATSClient
|
|
27
27
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
28
28
|
attr_accessor :remote_was_deleted
|
29
29
|
|
30
|
-
attr_accessor :field_mappings
|
31
|
-
|
32
30
|
# This is the datetime that this object was last updated by Merge
|
33
31
|
attr_accessor :modified_at
|
34
32
|
|
33
|
+
attr_accessor :field_mappings
|
34
|
+
|
35
35
|
attr_accessor :remote_data
|
36
36
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -41,8 +41,8 @@ module MergeATSClient
|
|
41
41
|
:'remote_id' => :'remote_id',
|
42
42
|
:'name' => :'name',
|
43
43
|
:'remote_was_deleted' => :'remote_was_deleted',
|
44
|
-
:'field_mappings' => :'field_mappings',
|
45
44
|
:'modified_at' => :'modified_at',
|
45
|
+
:'field_mappings' => :'field_mappings',
|
46
46
|
:'remote_data' => :'remote_data'
|
47
47
|
}
|
48
48
|
end
|
@@ -59,8 +59,8 @@ module MergeATSClient
|
|
59
59
|
:'remote_id' => :'String',
|
60
60
|
:'name' => :'String',
|
61
61
|
:'remote_was_deleted' => :'Boolean',
|
62
|
-
:'field_mappings' => :'Hash<String, Object>',
|
63
62
|
:'modified_at' => :'Time',
|
63
|
+
:'field_mappings' => :'Hash<String, Object>',
|
64
64
|
:'remote_data' => :'Array<RemoteData>'
|
65
65
|
}
|
66
66
|
end
|
@@ -106,16 +106,16 @@ module MergeATSClient
|
|
106
106
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
107
107
|
end
|
108
108
|
|
109
|
+
if attributes.key?(:'modified_at')
|
110
|
+
self.modified_at = attributes[:'modified_at']
|
111
|
+
end
|
112
|
+
|
109
113
|
if attributes.key?(:'field_mappings')
|
110
114
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
111
115
|
self.field_mappings = value
|
112
116
|
end
|
113
117
|
end
|
114
118
|
|
115
|
-
if attributes.key?(:'modified_at')
|
116
|
-
self.modified_at = attributes[:'modified_at']
|
117
|
-
end
|
118
|
-
|
119
119
|
if attributes.key?(:'remote_data')
|
120
120
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
121
121
|
self.remote_data = value
|
@@ -145,8 +145,8 @@ module MergeATSClient
|
|
145
145
|
remote_id == o.remote_id &&
|
146
146
|
name == o.name &&
|
147
147
|
remote_was_deleted == o.remote_was_deleted &&
|
148
|
-
field_mappings == o.field_mappings &&
|
149
148
|
modified_at == o.modified_at &&
|
149
|
+
field_mappings == o.field_mappings &&
|
150
150
|
remote_data == o.remote_data
|
151
151
|
end
|
152
152
|
|
@@ -159,7 +159,7 @@ module MergeATSClient
|
|
159
159
|
# Calculates hash code according to all attributes.
|
160
160
|
# @return [Integer] Hash code
|
161
161
|
def hash
|
162
|
-
[id, remote_id, name, remote_was_deleted,
|
162
|
+
[id, remote_id, name, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
163
163
|
end
|
164
164
|
|
165
165
|
# Builds the object from hash
|
@@ -36,13 +36,14 @@ module MergeATSClient
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'path' => :'String',
|
39
|
-
:'data' => :'
|
39
|
+
:'data' => :'Object'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
+
:'data'
|
46
47
|
])
|
47
48
|
end
|
48
49
|
|
@@ -66,9 +67,7 @@ module MergeATSClient
|
|
66
67
|
end
|
67
68
|
|
68
69
|
if attributes.key?(:'data')
|
69
|
-
|
70
|
-
self.data = value
|
71
|
-
end
|
70
|
+
self.data = attributes[:'data']
|
72
71
|
end
|
73
72
|
end
|
74
73
|
|
@@ -42,11 +42,11 @@ module MergeATSClient
|
|
42
42
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
43
43
|
attr_accessor :remote_was_deleted
|
44
44
|
|
45
|
-
attr_accessor :field_mappings
|
46
|
-
|
47
45
|
# This is the datetime that this object was last updated by Merge
|
48
46
|
attr_accessor :modified_at
|
49
47
|
|
48
|
+
attr_accessor :field_mappings
|
49
|
+
|
50
50
|
attr_accessor :remote_data
|
51
51
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -61,8 +61,8 @@ module MergeATSClient
|
|
61
61
|
:'remote_created_at' => :'remote_created_at',
|
62
62
|
:'access_role' => :'access_role',
|
63
63
|
:'remote_was_deleted' => :'remote_was_deleted',
|
64
|
-
:'field_mappings' => :'field_mappings',
|
65
64
|
:'modified_at' => :'modified_at',
|
65
|
+
:'field_mappings' => :'field_mappings',
|
66
66
|
:'remote_data' => :'remote_data'
|
67
67
|
}
|
68
68
|
end
|
@@ -84,8 +84,8 @@ module MergeATSClient
|
|
84
84
|
:'remote_created_at' => :'Time',
|
85
85
|
:'access_role' => :'AccessRoleEnum',
|
86
86
|
:'remote_was_deleted' => :'Boolean',
|
87
|
-
:'field_mappings' => :'Hash<String, Object>',
|
88
87
|
:'modified_at' => :'Time',
|
88
|
+
:'field_mappings' => :'Hash<String, Object>',
|
89
89
|
:'remote_data' => :'Array<RemoteData>'
|
90
90
|
}
|
91
91
|
end
|
@@ -156,16 +156,16 @@ module MergeATSClient
|
|
156
156
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
157
157
|
end
|
158
158
|
|
159
|
+
if attributes.key?(:'modified_at')
|
160
|
+
self.modified_at = attributes[:'modified_at']
|
161
|
+
end
|
162
|
+
|
159
163
|
if attributes.key?(:'field_mappings')
|
160
164
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
161
165
|
self.field_mappings = value
|
162
166
|
end
|
163
167
|
end
|
164
168
|
|
165
|
-
if attributes.key?(:'modified_at')
|
166
|
-
self.modified_at = attributes[:'modified_at']
|
167
|
-
end
|
168
|
-
|
169
169
|
if attributes.key?(:'remote_data')
|
170
170
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
171
171
|
self.remote_data = value
|
@@ -215,8 +215,8 @@ module MergeATSClient
|
|
215
215
|
remote_created_at == o.remote_created_at &&
|
216
216
|
access_role == o.access_role &&
|
217
217
|
remote_was_deleted == o.remote_was_deleted &&
|
218
|
-
field_mappings == o.field_mappings &&
|
219
218
|
modified_at == o.modified_at &&
|
219
|
+
field_mappings == o.field_mappings &&
|
220
220
|
remote_data == o.remote_data
|
221
221
|
end
|
222
222
|
|
@@ -229,7 +229,7 @@ module MergeATSClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[id, remote_id, first_name, last_name, email, disabled, remote_created_at, access_role, remote_was_deleted,
|
232
|
+
[id, remote_id, first_name, last_name, email, disabled, remote_created_at, access_role, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -54,11 +54,11 @@ module MergeATSClient
|
|
54
54
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
55
55
|
attr_accessor :remote_was_deleted
|
56
56
|
|
57
|
-
attr_accessor :field_mappings
|
58
|
-
|
59
57
|
# This is the datetime that this object was last updated by Merge
|
60
58
|
attr_accessor :modified_at
|
61
59
|
|
60
|
+
attr_accessor :field_mappings
|
61
|
+
|
62
62
|
attr_accessor :remote_data
|
63
63
|
|
64
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -77,8 +77,8 @@ module MergeATSClient
|
|
77
77
|
:'remote_updated_at' => :'remote_updated_at',
|
78
78
|
:'status' => :'status',
|
79
79
|
:'remote_was_deleted' => :'remote_was_deleted',
|
80
|
-
:'field_mappings' => :'field_mappings',
|
81
80
|
:'modified_at' => :'modified_at',
|
81
|
+
:'field_mappings' => :'field_mappings',
|
82
82
|
:'remote_data' => :'remote_data'
|
83
83
|
}
|
84
84
|
end
|
@@ -104,8 +104,8 @@ module MergeATSClient
|
|
104
104
|
:'remote_updated_at' => :'Time',
|
105
105
|
:'status' => :'ScheduledInterviewStatusEnum',
|
106
106
|
:'remote_was_deleted' => :'Boolean',
|
107
|
-
:'field_mappings' => :'Hash<String, Object>',
|
108
107
|
:'modified_at' => :'Time',
|
108
|
+
:'field_mappings' => :'Hash<String, Object>',
|
109
109
|
:'remote_data' => :'Array<RemoteData>'
|
110
110
|
}
|
111
111
|
end
|
@@ -197,16 +197,16 @@ module MergeATSClient
|
|
197
197
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
198
198
|
end
|
199
199
|
|
200
|
+
if attributes.key?(:'modified_at')
|
201
|
+
self.modified_at = attributes[:'modified_at']
|
202
|
+
end
|
203
|
+
|
200
204
|
if attributes.key?(:'field_mappings')
|
201
205
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
202
206
|
self.field_mappings = value
|
203
207
|
end
|
204
208
|
end
|
205
209
|
|
206
|
-
if attributes.key?(:'modified_at')
|
207
|
-
self.modified_at = attributes[:'modified_at']
|
208
|
-
end
|
209
|
-
|
210
210
|
if attributes.key?(:'remote_data')
|
211
211
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
212
212
|
self.remote_data = value
|
@@ -245,8 +245,8 @@ module MergeATSClient
|
|
245
245
|
remote_updated_at == o.remote_updated_at &&
|
246
246
|
status == o.status &&
|
247
247
|
remote_was_deleted == o.remote_was_deleted &&
|
248
|
-
field_mappings == o.field_mappings &&
|
249
248
|
modified_at == o.modified_at &&
|
249
|
+
field_mappings == o.field_mappings &&
|
250
250
|
remote_data == o.remote_data
|
251
251
|
end
|
252
252
|
|
@@ -259,7 +259,7 @@ module MergeATSClient
|
|
259
259
|
# Calculates hash code according to all attributes.
|
260
260
|
# @return [Integer] Hash code
|
261
261
|
def hash
|
262
|
-
[id, remote_id, application, job_interview_stage, organizer, interviewers, location, start_at, end_at, remote_created_at, remote_updated_at, status, remote_was_deleted,
|
262
|
+
[id, remote_id, application, job_interview_stage, organizer, interviewers, location, start_at, end_at, remote_created_at, remote_updated_at, status, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
263
263
|
end
|
264
264
|
|
265
265
|
# Builds the object from hash
|