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,223 @@
|
|
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 AsyncPassthroughReciept
|
18
|
+
attr_accessor :async_passthrough_receipt_id
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'async_passthrough_receipt_id' => :'async_passthrough_receipt_id'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns all the JSON keys this model knows about
|
28
|
+
def self.acceptable_attributes
|
29
|
+
attribute_map.values
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'async_passthrough_receipt_id' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AsyncPassthroughReciept` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AsyncPassthroughReciept`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'async_passthrough_receipt_id')
|
61
|
+
self.async_passthrough_receipt_id = attributes[:'async_passthrough_receipt_id']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properties with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = Array.new
|
69
|
+
if @async_passthrough_receipt_id.nil?
|
70
|
+
invalid_properties.push('invalid value for "async_passthrough_receipt_id", async_passthrough_receipt_id cannot be nil.')
|
71
|
+
end
|
72
|
+
|
73
|
+
invalid_properties
|
74
|
+
end
|
75
|
+
|
76
|
+
# Check to see if the all the properties in the model are valid
|
77
|
+
# @return true if the model is valid
|
78
|
+
def valid?
|
79
|
+
return false if @async_passthrough_receipt_id.nil?
|
80
|
+
true
|
81
|
+
end
|
82
|
+
|
83
|
+
# Checks equality by comparing each attribute.
|
84
|
+
# @param [Object] Object to be compared
|
85
|
+
def ==(o)
|
86
|
+
return true if self.equal?(o)
|
87
|
+
self.class == o.class &&
|
88
|
+
async_passthrough_receipt_id == o.async_passthrough_receipt_id
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(o)
|
94
|
+
self == o
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Integer] Hash code
|
99
|
+
def hash
|
100
|
+
[async_passthrough_receipt_id].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def self.build_from_hash(attributes)
|
107
|
+
new.build_from_hash(attributes)
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def build_from_hash(attributes)
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
115
|
+
self.class.openapi_types.each_pair do |key, type|
|
116
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
117
|
+
self.send("#{key}=", nil)
|
118
|
+
elsif type =~ /\AArray<(.*)>/i
|
119
|
+
# check to ensure the input is an array given that the attribute
|
120
|
+
# is documented as an array but the input is not
|
121
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
123
|
+
end
|
124
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
125
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
self
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deserializes the data based on type
|
133
|
+
# @param string type Data type
|
134
|
+
# @param string value Value to be deserialized
|
135
|
+
# @return [Object] Deserialized data
|
136
|
+
def _deserialize(type, value)
|
137
|
+
case type.to_sym
|
138
|
+
when :Time
|
139
|
+
Time.parse(value)
|
140
|
+
when :Date
|
141
|
+
Date.parse(value)
|
142
|
+
when :String
|
143
|
+
value
|
144
|
+
when :Integer
|
145
|
+
value.to_i
|
146
|
+
when :Float
|
147
|
+
value.to_f
|
148
|
+
when :Boolean
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
150
|
+
true
|
151
|
+
else
|
152
|
+
false
|
153
|
+
end
|
154
|
+
when :Object
|
155
|
+
# generic object (usually a Hash), return directly
|
156
|
+
value
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
163
|
+
{}.tap do |hash|
|
164
|
+
value.each do |k, v|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
else # model
|
169
|
+
# models (e.g. Pet) or oneOf
|
170
|
+
klass = MergeATSClient.const_get(type)
|
171
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
if value.nil?
|
194
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
|
+
end
|
197
|
+
|
198
|
+
hash[param] = _to_hash(value)
|
199
|
+
end
|
200
|
+
hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Outputs non-array value in the form of hash
|
204
|
+
# For object, use to_hash. Otherwise, just return the value
|
205
|
+
# @param [Object] value Any valid value
|
206
|
+
# @return [Hash] Returns the value in the form of hash
|
207
|
+
def _to_hash(value)
|
208
|
+
if value.is_a?(Array)
|
209
|
+
value.compact.map { |v| _to_hash(v) }
|
210
|
+
elsif value.is_a?(Hash)
|
211
|
+
{}.tap do |hash|
|
212
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
213
|
+
end
|
214
|
+
elsif value.respond_to? :to_hash
|
215
|
+
value.to_hash
|
216
|
+
else
|
217
|
+
value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
@@ -34,11 +34,11 @@ module MergeATSClient
|
|
34
34
|
|
35
35
|
attr_accessor :remote_was_deleted
|
36
36
|
|
37
|
-
attr_accessor :field_mappings
|
38
|
-
|
39
37
|
# This is the datetime that this object was last updated by Merge
|
40
38
|
attr_accessor :modified_at
|
41
39
|
|
40
|
+
attr_accessor :field_mappings
|
41
|
+
|
42
42
|
attr_accessor :remote_data
|
43
43
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -51,8 +51,8 @@ module MergeATSClient
|
|
51
51
|
:'candidate' => :'candidate',
|
52
52
|
:'attachment_type' => :'attachment_type',
|
53
53
|
:'remote_was_deleted' => :'remote_was_deleted',
|
54
|
-
:'field_mappings' => :'field_mappings',
|
55
54
|
:'modified_at' => :'modified_at',
|
55
|
+
:'field_mappings' => :'field_mappings',
|
56
56
|
:'remote_data' => :'remote_data'
|
57
57
|
}
|
58
58
|
end
|
@@ -72,8 +72,8 @@ module MergeATSClient
|
|
72
72
|
:'candidate' => :'String',
|
73
73
|
:'attachment_type' => :'AttachmentTypeEnum',
|
74
74
|
:'remote_was_deleted' => :'Boolean',
|
75
|
-
:'field_mappings' => :'Hash<String, Object>',
|
76
75
|
:'modified_at' => :'Time',
|
76
|
+
:'field_mappings' => :'Hash<String, Object>',
|
77
77
|
:'remote_data' => :'Array<RemoteData>'
|
78
78
|
}
|
79
79
|
end
|
@@ -134,16 +134,16 @@ module MergeATSClient
|
|
134
134
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
135
135
|
end
|
136
136
|
|
137
|
+
if attributes.key?(:'modified_at')
|
138
|
+
self.modified_at = attributes[:'modified_at']
|
139
|
+
end
|
140
|
+
|
137
141
|
if attributes.key?(:'field_mappings')
|
138
142
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
139
143
|
self.field_mappings = value
|
140
144
|
end
|
141
145
|
end
|
142
146
|
|
143
|
-
if attributes.key?(:'modified_at')
|
144
|
-
self.modified_at = attributes[:'modified_at']
|
145
|
-
end
|
146
|
-
|
147
147
|
if attributes.key?(:'remote_data')
|
148
148
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
149
149
|
self.remote_data = value
|
@@ -191,8 +191,8 @@ module MergeATSClient
|
|
191
191
|
candidate == o.candidate &&
|
192
192
|
attachment_type == o.attachment_type &&
|
193
193
|
remote_was_deleted == o.remote_was_deleted &&
|
194
|
-
field_mappings == o.field_mappings &&
|
195
194
|
modified_at == o.modified_at &&
|
195
|
+
field_mappings == o.field_mappings &&
|
196
196
|
remote_data == o.remote_data
|
197
197
|
end
|
198
198
|
|
@@ -205,7 +205,7 @@ module MergeATSClient
|
|
205
205
|
# Calculates hash code according to all attributes.
|
206
206
|
# @return [Integer] Hash code
|
207
207
|
def hash
|
208
|
-
[id, remote_id, file_name, file_url, candidate, attachment_type, remote_was_deleted,
|
208
|
+
[id, remote_id, file_name, file_url, candidate, attachment_type, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
209
209
|
end
|
210
210
|
|
211
211
|
# Builds the object from hash
|
@@ -68,11 +68,11 @@ module MergeATSClient
|
|
68
68
|
|
69
69
|
attr_accessor :remote_was_deleted
|
70
70
|
|
71
|
-
attr_accessor :field_mappings
|
72
|
-
|
73
71
|
# This is the datetime that this object was last updated by Merge
|
74
72
|
attr_accessor :modified_at
|
75
73
|
|
74
|
+
attr_accessor :field_mappings
|
75
|
+
|
76
76
|
attr_accessor :remote_data
|
77
77
|
|
78
78
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -97,8 +97,8 @@ module MergeATSClient
|
|
97
97
|
:'applications' => :'applications',
|
98
98
|
:'attachments' => :'attachments',
|
99
99
|
:'remote_was_deleted' => :'remote_was_deleted',
|
100
|
-
:'field_mappings' => :'field_mappings',
|
101
100
|
:'modified_at' => :'modified_at',
|
101
|
+
:'field_mappings' => :'field_mappings',
|
102
102
|
:'remote_data' => :'remote_data'
|
103
103
|
}
|
104
104
|
end
|
@@ -130,8 +130,8 @@ module MergeATSClient
|
|
130
130
|
:'applications' => :'Array<String>',
|
131
131
|
:'attachments' => :'Array<String>',
|
132
132
|
:'remote_was_deleted' => :'Boolean',
|
133
|
-
:'field_mappings' => :'Hash<String, Object>',
|
134
133
|
:'modified_at' => :'Time',
|
134
|
+
:'field_mappings' => :'Hash<String, Object>',
|
135
135
|
:'remote_data' => :'Array<RemoteData>'
|
136
136
|
}
|
137
137
|
end
|
@@ -260,16 +260,16 @@ module MergeATSClient
|
|
260
260
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
261
261
|
end
|
262
262
|
|
263
|
+
if attributes.key?(:'modified_at')
|
264
|
+
self.modified_at = attributes[:'modified_at']
|
265
|
+
end
|
266
|
+
|
263
267
|
if attributes.key?(:'field_mappings')
|
264
268
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
265
269
|
self.field_mappings = value
|
266
270
|
end
|
267
271
|
end
|
268
272
|
|
269
|
-
if attributes.key?(:'modified_at')
|
270
|
-
self.modified_at = attributes[:'modified_at']
|
271
|
-
end
|
272
|
-
|
273
273
|
if attributes.key?(:'remote_data')
|
274
274
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
275
275
|
self.remote_data = value
|
@@ -314,8 +314,8 @@ module MergeATSClient
|
|
314
314
|
applications == o.applications &&
|
315
315
|
attachments == o.attachments &&
|
316
316
|
remote_was_deleted == o.remote_was_deleted &&
|
317
|
-
field_mappings == o.field_mappings &&
|
318
317
|
modified_at == o.modified_at &&
|
318
|
+
field_mappings == o.field_mappings &&
|
319
319
|
remote_data == o.remote_data
|
320
320
|
end
|
321
321
|
|
@@ -328,7 +328,7 @@ module MergeATSClient
|
|
328
328
|
# Calculates hash code according to all attributes.
|
329
329
|
# @return [Integer] Hash code
|
330
330
|
def hash
|
331
|
-
[id, remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments, remote_was_deleted,
|
331
|
+
[id, remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
332
332
|
end
|
333
333
|
|
334
334
|
# Builds the object from hash
|
@@ -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
|
@@ -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
|
:'veteran_status' => :'veteran_status',
|
62
62
|
:'disability_status' => :'disability_status',
|
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
|
:'veteran_status' => :'VeteranStatusEnum',
|
85
85
|
:'disability_status' => :'DisabilityStatusEnum',
|
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
|
@@ -200,8 +200,8 @@ module MergeATSClient
|
|
200
200
|
veteran_status == o.veteran_status &&
|
201
201
|
disability_status == o.disability_status &&
|
202
202
|
remote_was_deleted == o.remote_was_deleted &&
|
203
|
-
field_mappings == o.field_mappings &&
|
204
203
|
modified_at == o.modified_at &&
|
204
|
+
field_mappings == o.field_mappings &&
|
205
205
|
remote_data == o.remote_data
|
206
206
|
end
|
207
207
|
|
@@ -214,7 +214,7 @@ module MergeATSClient
|
|
214
214
|
# Calculates hash code according to all attributes.
|
215
215
|
# @return [Integer] Hash code
|
216
216
|
def hash
|
217
|
-
[id, remote_id, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_was_deleted,
|
217
|
+
[id, remote_id, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
218
218
|
end
|
219
219
|
|
220
220
|
# Builds the object from hash
|
@@ -33,7 +33,7 @@ module MergeATSClient
|
|
33
33
|
# An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
|
34
34
|
attr_accessor :link_expiry_mins
|
35
35
|
|
36
|
-
# Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/
|
36
|
+
# Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
37
37
|
attr_accessor :should_create_magic_link_url
|
38
38
|
|
39
39
|
# An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
|
@@ -59,11 +59,11 @@ module MergeATSClient
|
|
59
59
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
60
60
|
attr_accessor :remote_was_deleted
|
61
61
|
|
62
|
-
attr_accessor :field_mappings
|
63
|
-
|
64
62
|
# This is the datetime that this object was last updated by Merge
|
65
63
|
attr_accessor :modified_at
|
66
64
|
|
65
|
+
attr_accessor :field_mappings
|
66
|
+
|
67
67
|
attr_accessor :remote_data
|
68
68
|
|
69
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -84,8 +84,8 @@ module MergeATSClient
|
|
84
84
|
:'hiring_managers' => :'hiring_managers',
|
85
85
|
:'recruiters' => :'recruiters',
|
86
86
|
:'remote_was_deleted' => :'remote_was_deleted',
|
87
|
-
:'field_mappings' => :'field_mappings',
|
88
87
|
:'modified_at' => :'modified_at',
|
88
|
+
:'field_mappings' => :'field_mappings',
|
89
89
|
:'remote_data' => :'remote_data'
|
90
90
|
}
|
91
91
|
end
|
@@ -113,8 +113,8 @@ module MergeATSClient
|
|
113
113
|
:'hiring_managers' => :'Array<String>',
|
114
114
|
:'recruiters' => :'Array<String>',
|
115
115
|
:'remote_was_deleted' => :'Boolean',
|
116
|
-
:'field_mappings' => :'Hash<String, Object>',
|
117
116
|
:'modified_at' => :'Time',
|
117
|
+
:'field_mappings' => :'Hash<String, Object>',
|
118
118
|
:'remote_data' => :'Array<RemoteData>'
|
119
119
|
}
|
120
120
|
end
|
@@ -220,16 +220,16 @@ module MergeATSClient
|
|
220
220
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
221
221
|
end
|
222
222
|
|
223
|
+
if attributes.key?(:'modified_at')
|
224
|
+
self.modified_at = attributes[:'modified_at']
|
225
|
+
end
|
226
|
+
|
223
227
|
if attributes.key?(:'field_mappings')
|
224
228
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
225
229
|
self.field_mappings = value
|
226
230
|
end
|
227
231
|
end
|
228
232
|
|
229
|
-
if attributes.key?(:'modified_at')
|
230
|
-
self.modified_at = attributes[:'modified_at']
|
231
|
-
end
|
232
|
-
|
233
233
|
if attributes.key?(:'remote_data')
|
234
234
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
235
235
|
self.remote_data = value
|
@@ -270,8 +270,8 @@ module MergeATSClient
|
|
270
270
|
hiring_managers == o.hiring_managers &&
|
271
271
|
recruiters == o.recruiters &&
|
272
272
|
remote_was_deleted == o.remote_was_deleted &&
|
273
|
-
field_mappings == o.field_mappings &&
|
274
273
|
modified_at == o.modified_at &&
|
274
|
+
field_mappings == o.field_mappings &&
|
275
275
|
remote_data == o.remote_data
|
276
276
|
end
|
277
277
|
|
@@ -284,7 +284,7 @@ module MergeATSClient
|
|
284
284
|
# Calculates hash code according to all attributes.
|
285
285
|
# @return [Integer] Hash code
|
286
286
|
def hash
|
287
|
-
[id, remote_id, name, description, code, status, job_posting_urls, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_was_deleted,
|
287
|
+
[id, remote_id, name, description, code, status, job_posting_urls, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
288
288
|
end
|
289
289
|
|
290
290
|
# Builds the object from hash
|
@@ -33,11 +33,11 @@ module MergeATSClient
|
|
33
33
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
34
34
|
attr_accessor :remote_was_deleted
|
35
35
|
|
36
|
-
attr_accessor :field_mappings
|
37
|
-
|
38
36
|
# This is the datetime that this object was last updated by Merge
|
39
37
|
attr_accessor :modified_at
|
40
38
|
|
39
|
+
attr_accessor :field_mappings
|
40
|
+
|
41
41
|
attr_accessor :remote_data
|
42
42
|
|
43
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -49,8 +49,8 @@ module MergeATSClient
|
|
49
49
|
:'job' => :'job',
|
50
50
|
:'stage_order' => :'stage_order',
|
51
51
|
:'remote_was_deleted' => :'remote_was_deleted',
|
52
|
-
:'field_mappings' => :'field_mappings',
|
53
52
|
:'modified_at' => :'modified_at',
|
53
|
+
:'field_mappings' => :'field_mappings',
|
54
54
|
:'remote_data' => :'remote_data'
|
55
55
|
}
|
56
56
|
end
|
@@ -69,8 +69,8 @@ module MergeATSClient
|
|
69
69
|
:'job' => :'String',
|
70
70
|
:'stage_order' => :'Integer',
|
71
71
|
:'remote_was_deleted' => :'Boolean',
|
72
|
-
:'field_mappings' => :'Hash<String, Object>',
|
73
72
|
:'modified_at' => :'Time',
|
73
|
+
:'field_mappings' => :'Hash<String, Object>',
|
74
74
|
:'remote_data' => :'Array<RemoteData>'
|
75
75
|
}
|
76
76
|
end
|
@@ -126,16 +126,16 @@ module MergeATSClient
|
|
126
126
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
127
127
|
end
|
128
128
|
|
129
|
+
if attributes.key?(:'modified_at')
|
130
|
+
self.modified_at = attributes[:'modified_at']
|
131
|
+
end
|
132
|
+
|
129
133
|
if attributes.key?(:'field_mappings')
|
130
134
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
131
135
|
self.field_mappings = value
|
132
136
|
end
|
133
137
|
end
|
134
138
|
|
135
|
-
if attributes.key?(:'modified_at')
|
136
|
-
self.modified_at = attributes[:'modified_at']
|
137
|
-
end
|
138
|
-
|
139
139
|
if attributes.key?(:'remote_data')
|
140
140
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
141
141
|
self.remote_data = value
|
@@ -191,8 +191,8 @@ module MergeATSClient
|
|
191
191
|
job == o.job &&
|
192
192
|
stage_order == o.stage_order &&
|
193
193
|
remote_was_deleted == o.remote_was_deleted &&
|
194
|
-
field_mappings == o.field_mappings &&
|
195
194
|
modified_at == o.modified_at &&
|
195
|
+
field_mappings == o.field_mappings &&
|
196
196
|
remote_data == o.remote_data
|
197
197
|
end
|
198
198
|
|
@@ -205,7 +205,7 @@ module MergeATSClient
|
|
205
205
|
# Calculates hash code according to all attributes.
|
206
206
|
# @return [Integer] Hash code
|
207
207
|
def hash
|
208
|
-
[id, remote_id, name, job, stage_order, remote_was_deleted,
|
208
|
+
[id, remote_id, name, job, stage_order, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
209
209
|
end
|
210
210
|
|
211
211
|
# Builds the object from hash
|