merge_ats_client 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/docs/AccountDetails.md +30 -0
- data/docs/AccountDetailsAndActions.md +30 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +76 -0
- data/docs/Activity.md +3 -3
- data/docs/Application.md +5 -3
- data/docs/ApplicationRequest.md +5 -3
- data/docs/Candidate.md +9 -7
- data/docs/CandidateRequest.md +9 -7
- data/docs/CandidatesApi.md +9 -1
- data/docs/CategoriesEnum.md +15 -0
- data/docs/CategoryEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +5 -3
- data/docs/DeleteAccountApi.md +78 -0
- data/docs/EEOC.md +1 -1
- data/docs/EmailAddress.md +1 -1
- data/docs/EmailAddressRequest.md +1 -1
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +169 -0
- data/docs/Job.md +8 -6
- data/docs/JobsApi.md +1 -0
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/Offer.md +4 -4
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/RemoteUser.md +1 -1
- data/docs/RemoteUserRequest.md +1 -1
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/ScheduledInterview.md +5 -5
- data/docs/ScheduledInterviewRequest.md +5 -5
- data/docs/Scorecard.md +2 -2
- data/docs/ScorecardRequest.md +2 -2
- data/docs/SyncStatusApi.md +1 -1
- data/docs/UsersApi.md +1 -0
- data/lib/merge_ats_client/api/account_details_api.rb +77 -0
- data/lib/merge_ats_client/api/account_token_api.rb +1 -1
- data/lib/merge_ats_client/api/activities_api.rb +1 -1
- data/lib/merge_ats_client/api/applications_api.rb +1 -1
- data/lib/merge_ats_client/api/attachments_api.rb +1 -1
- data/lib/merge_ats_client/api/available_actions_api.rb +1 -1
- data/lib/merge_ats_client/api/candidates_api.rb +13 -1
- data/lib/merge_ats_client/api/delete_account_api.rb +82 -0
- data/lib/merge_ats_client/api/departments_api.rb +1 -1
- data/lib/merge_ats_client/api/eeocs_api.rb +1 -1
- data/lib/merge_ats_client/api/generate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/interviews_api.rb +1 -1
- data/lib/merge_ats_client/api/issues_api.rb +169 -0
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +1 -1
- data/lib/merge_ats_client/api/jobs_api.rb +4 -1
- data/lib/merge_ats_client/api/link_token_api.rb +1 -1
- data/lib/merge_ats_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_ats_client/api/offers_api.rb +1 -1
- data/lib/merge_ats_client/api/offices_api.rb +1 -1
- data/lib/merge_ats_client/api/passthrough_api.rb +1 -1
- data/lib/merge_ats_client/api/regenerate_key_api.rb +1 -1
- data/lib/merge_ats_client/api/reject_reasons_api.rb +1 -1
- data/lib/merge_ats_client/api/scorecards_api.rb +1 -1
- data/lib/merge_ats_client/api/sync_status_api.rb +3 -3
- data/lib/merge_ats_client/api/tags_api.rb +1 -1
- data/lib/merge_ats_client/api/users_api.rb +1 -1
- data/lib/merge_ats_client/api_client.rb +1 -1
- data/lib/merge_ats_client/api_error.rb +1 -1
- data/lib/merge_ats_client/configuration.rb +1 -1
- data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
- data/lib/merge_ats_client/models/account_details.rb +273 -0
- data/lib/merge_ats_client/models/account_details_and_actions.rb +293 -0
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +308 -0
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/account_integration.rb +5 -5
- data/lib/merge_ats_client/models/account_token.rb +1 -1
- data/lib/merge_ats_client/models/activity.rb +1 -1
- data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/application.rb +19 -6
- data/lib/merge_ats_client/models/application_request.rb +19 -6
- data/lib/merge_ats_client/models/attachment.rb +1 -1
- data/lib/merge_ats_client/models/available_actions.rb +1 -1
- data/lib/merge_ats_client/models/candidate.rb +22 -6
- data/lib/merge_ats_client/models/candidate_request.rb +21 -5
- data/lib/merge_ats_client/models/categories_enum.rb +36 -0
- data/lib/merge_ats_client/models/category_enum.rb +36 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +16 -8
- data/lib/merge_ats_client/models/department.rb +1 -1
- data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/eeoc.rb +1 -1
- data/lib/merge_ats_client/models/email_address.rb +1 -1
- data/lib/merge_ats_client/models/email_address_request.rb +1 -1
- data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/end_user_details_request.rb +1 -1
- data/lib/merge_ats_client/models/gender_enum.rb +1 -1
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +1 -1
- data/lib/merge_ats_client/models/issue.rb +281 -0
- data/lib/merge_ats_client/models/issue_status_enum.rb +35 -0
- data/lib/merge_ats_client/models/job.rb +16 -2
- data/lib/merge_ats_client/models/job_interview_stage.rb +1 -1
- data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/link_token.rb +1 -1
- data/lib/merge_ats_client/models/method_enum.rb +1 -1
- data/lib/merge_ats_client/models/model_operation.rb +1 -1
- data/lib/merge_ats_client/models/offer.rb +1 -1
- data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/office.rb +1 -1
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
- data/lib/merge_ats_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_activity_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_application_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_department_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_offer_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_office_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +1 -1
- data/lib/merge_ats_client/models/phone_number.rb +1 -1
- data/lib/merge_ats_client/models/phone_number_request.rb +1 -1
- 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/reject_reason.rb +1 -1
- data/lib/merge_ats_client/models/remote_data.rb +1 -1
- data/lib/merge_ats_client/models/remote_data_request.rb +1 -1
- data/lib/merge_ats_client/models/remote_key.rb +1 -1
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +1 -1
- data/lib/merge_ats_client/models/remote_response.rb +1 -1
- data/lib/merge_ats_client/models/remote_user.rb +1 -1
- data/lib/merge_ats_client/models/request_format_enum.rb +35 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +2 -1
- data/lib/merge_ats_client/models/scheduled_interview_request.rb +1 -0
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/scorecard.rb +1 -1
- data/lib/merge_ats_client/models/sync_status.rb +1 -1
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +1 -0
- data/lib/merge_ats_client/models/tag.rb +1 -1
- data/lib/merge_ats_client/models/url.rb +6 -6
- data/lib/merge_ats_client/models/url_request.rb +6 -6
- 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 +16 -1
- data/merge_ats_client.gemspec +1 -1
- data/spec/api/account_details_api_spec.rb +45 -0
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +70 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/account_details_spec.rb +70 -0
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/spec_helper.rb +1 -1
- metadata +52 -2
@@ -0,0 +1,308 @@
|
|
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 AccountDetailsAndActionsIntegration
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
attr_accessor :categories
|
21
|
+
|
22
|
+
attr_accessor :image
|
23
|
+
|
24
|
+
attr_accessor :square_image
|
25
|
+
|
26
|
+
attr_accessor :color
|
27
|
+
|
28
|
+
attr_accessor :slug
|
29
|
+
|
30
|
+
attr_accessor :passthrough_available
|
31
|
+
|
32
|
+
attr_accessor :available_model_operations
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'name' => :'name',
|
38
|
+
:'categories' => :'categories',
|
39
|
+
:'image' => :'image',
|
40
|
+
:'square_image' => :'square_image',
|
41
|
+
:'color' => :'color',
|
42
|
+
:'slug' => :'slug',
|
43
|
+
:'passthrough_available' => :'passthrough_available',
|
44
|
+
:'available_model_operations' => :'available_model_operations'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'name' => :'String',
|
57
|
+
:'categories' => :'CategoriesEnum',
|
58
|
+
:'image' => :'String',
|
59
|
+
:'square_image' => :'String',
|
60
|
+
:'color' => :'String',
|
61
|
+
:'slug' => :'String',
|
62
|
+
:'passthrough_available' => :'Boolean',
|
63
|
+
:'available_model_operations' => :'Array<ModelOperation>'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AccountDetailsAndActionsIntegration` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AccountDetailsAndActionsIntegration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'name')
|
89
|
+
self.name = attributes[:'name']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'categories')
|
93
|
+
self.categories = attributes[:'categories']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'image')
|
97
|
+
self.image = attributes[:'image']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'square_image')
|
101
|
+
self.square_image = attributes[:'square_image']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'color')
|
105
|
+
self.color = attributes[:'color']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'slug')
|
109
|
+
self.slug = attributes[:'slug']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'passthrough_available')
|
113
|
+
self.passthrough_available = attributes[:'passthrough_available']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'available_model_operations')
|
117
|
+
if (value = attributes[:'available_model_operations']).is_a?(Array)
|
118
|
+
self.available_model_operations = value
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
124
|
+
# @return Array for valid properties with the reasons
|
125
|
+
def list_invalid_properties
|
126
|
+
invalid_properties = Array.new
|
127
|
+
if @name.nil?
|
128
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
|
+
if @categories.nil?
|
132
|
+
invalid_properties.push('invalid value for "categories", categories cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @color.nil?
|
136
|
+
invalid_properties.push('invalid value for "color", color cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if @slug.nil?
|
140
|
+
invalid_properties.push('invalid value for "slug", slug cannot be nil.')
|
141
|
+
end
|
142
|
+
|
143
|
+
if @passthrough_available.nil?
|
144
|
+
invalid_properties.push('invalid value for "passthrough_available", passthrough_available cannot be nil.')
|
145
|
+
end
|
146
|
+
|
147
|
+
invalid_properties
|
148
|
+
end
|
149
|
+
|
150
|
+
# Check to see if the all the properties in the model are valid
|
151
|
+
# @return true if the model is valid
|
152
|
+
def valid?
|
153
|
+
return false if @name.nil?
|
154
|
+
return false if @categories.nil?
|
155
|
+
return false if @color.nil?
|
156
|
+
return false if @slug.nil?
|
157
|
+
return false if @passthrough_available.nil?
|
158
|
+
true
|
159
|
+
end
|
160
|
+
|
161
|
+
# Checks equality by comparing each attribute.
|
162
|
+
# @param [Object] Object to be compared
|
163
|
+
def ==(o)
|
164
|
+
return true if self.equal?(o)
|
165
|
+
self.class == o.class &&
|
166
|
+
name == o.name &&
|
167
|
+
categories == o.categories &&
|
168
|
+
image == o.image &&
|
169
|
+
square_image == o.square_image &&
|
170
|
+
color == o.color &&
|
171
|
+
slug == o.slug &&
|
172
|
+
passthrough_available == o.passthrough_available &&
|
173
|
+
available_model_operations == o.available_model_operations
|
174
|
+
end
|
175
|
+
|
176
|
+
# @see the `==` method
|
177
|
+
# @param [Object] Object to be compared
|
178
|
+
def eql?(o)
|
179
|
+
self == o
|
180
|
+
end
|
181
|
+
|
182
|
+
# Calculates hash code according to all attributes.
|
183
|
+
# @return [Integer] Hash code
|
184
|
+
def hash
|
185
|
+
[name, categories, image, square_image, color, slug, passthrough_available, available_model_operations].hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Builds the object from hash
|
189
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
190
|
+
# @return [Object] Returns the model itself
|
191
|
+
def self.build_from_hash(attributes)
|
192
|
+
new.build_from_hash(attributes)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Builds the object from hash
|
196
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
197
|
+
# @return [Object] Returns the model itself
|
198
|
+
def build_from_hash(attributes)
|
199
|
+
return nil unless attributes.is_a?(Hash)
|
200
|
+
self.class.openapi_types.each_pair do |key, type|
|
201
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
202
|
+
self.send("#{key}=", nil)
|
203
|
+
elsif type =~ /\AArray<(.*)>/i
|
204
|
+
# check to ensure the input is an array given that the attribute
|
205
|
+
# is documented as an array but the input is not
|
206
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
207
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
208
|
+
end
|
209
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
210
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
self
|
215
|
+
end
|
216
|
+
|
217
|
+
# Deserializes the data based on type
|
218
|
+
# @param string type Data type
|
219
|
+
# @param string value Value to be deserialized
|
220
|
+
# @return [Object] Deserialized data
|
221
|
+
def _deserialize(type, value)
|
222
|
+
case type.to_sym
|
223
|
+
when :Time
|
224
|
+
Time.parse(value)
|
225
|
+
when :Date
|
226
|
+
Date.parse(value)
|
227
|
+
when :String
|
228
|
+
value
|
229
|
+
when :Integer
|
230
|
+
value.to_i
|
231
|
+
when :Float
|
232
|
+
value.to_f
|
233
|
+
when :Boolean
|
234
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
235
|
+
true
|
236
|
+
else
|
237
|
+
false
|
238
|
+
end
|
239
|
+
when :Object
|
240
|
+
# generic object (usually a Hash), return directly
|
241
|
+
value
|
242
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
243
|
+
inner_type = Regexp.last_match[:inner_type]
|
244
|
+
value.map { |v| _deserialize(inner_type, v) }
|
245
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
246
|
+
k_type = Regexp.last_match[:k_type]
|
247
|
+
v_type = Regexp.last_match[:v_type]
|
248
|
+
{}.tap do |hash|
|
249
|
+
value.each do |k, v|
|
250
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
else # model
|
254
|
+
# models (e.g. Pet) or oneOf
|
255
|
+
klass = MergeATSClient.const_get(type)
|
256
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
# Returns the string representation of the object
|
261
|
+
# @return [String] String presentation of the object
|
262
|
+
def to_s
|
263
|
+
to_hash.to_s
|
264
|
+
end
|
265
|
+
|
266
|
+
# to_body is an alias to to_hash (backward compatibility)
|
267
|
+
# @return [Hash] Returns the object in the form of hash
|
268
|
+
def to_body
|
269
|
+
to_hash
|
270
|
+
end
|
271
|
+
|
272
|
+
# Returns the object in the form of hash
|
273
|
+
# @return [Hash] Returns the object in the form of hash
|
274
|
+
def to_hash
|
275
|
+
hash = {}
|
276
|
+
self.class.attribute_map.each_pair do |attr, param|
|
277
|
+
value = self.send(attr)
|
278
|
+
if value.nil?
|
279
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
280
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
281
|
+
end
|
282
|
+
|
283
|
+
hash[param] = _to_hash(value)
|
284
|
+
end
|
285
|
+
hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Outputs non-array value in the form of hash
|
289
|
+
# For object, use to_hash. Otherwise, just return the value
|
290
|
+
# @param [Object] value Any valid value
|
291
|
+
# @return [Hash] Returns the value in the form of hash
|
292
|
+
def _to_hash(value)
|
293
|
+
if value.is_a?(Array)
|
294
|
+
value.compact.map { |v| _to_hash(v) }
|
295
|
+
elsif value.is_a?(Hash)
|
296
|
+
{}.tap do |hash|
|
297
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
298
|
+
end
|
299
|
+
elsif value.respond_to? :to_hash
|
300
|
+
value.to_hash
|
301
|
+
else
|
302
|
+
value
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
end
|
307
|
+
|
308
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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 AccountDetailsAndActionsStatusEnum
|
18
|
+
COMPLETE = "COMPLETE".freeze
|
19
|
+
INCOMPLETE = "INCOMPLETE".freeze
|
20
|
+
RELINK_NEEDED = "RELINK_NEEDED".freeze
|
21
|
+
|
22
|
+
# Builds the enum from string
|
23
|
+
# @param [String] The enum value in the form of the string
|
24
|
+
# @return [String] The enum value
|
25
|
+
def self.build_from_hash(value)
|
26
|
+
new.build_from_hash(value)
|
27
|
+
end
|
28
|
+
|
29
|
+
# Builds the enum from string
|
30
|
+
# @param [String] The enum value in the form of the string
|
31
|
+
# @return [String] The enum value
|
32
|
+
def build_from_hash(value)
|
33
|
+
value
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,16 +18,16 @@ module MergeATSClient
|
|
18
18
|
# Company name.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
-
# Category or categories this integration belongs to.
|
21
|
+
# Category or categories this integration belongs to. Multiple categories should be comma separated.<br/><br>Example: For [ats, hris], enter <i>ats,hris</i>
|
22
22
|
attr_accessor :categories
|
23
23
|
|
24
|
-
# Company logo in rectangular shape.
|
24
|
+
# Company logo in rectangular shape. <b>Upload an image with a clear background.</b>
|
25
25
|
attr_accessor :image
|
26
26
|
|
27
|
-
# Company logo in square shape.
|
27
|
+
# Company logo in square shape. <b>Upload an image with a white background.</b>
|
28
28
|
attr_accessor :square_image
|
29
29
|
|
30
|
-
# The color of this integration used for buttons and text throughout the app and landing pages.
|
30
|
+
# The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>
|
31
31
|
attr_accessor :color
|
32
32
|
|
33
33
|
attr_accessor :slug
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -47,6 +47,9 @@ module MergeATSClient
|
|
47
47
|
|
48
48
|
attr_accessor :remote_data
|
49
49
|
|
50
|
+
# Custom fields configured for a given model.
|
51
|
+
attr_accessor :custom_fields
|
52
|
+
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
@@ -60,7 +63,8 @@ module MergeATSClient
|
|
60
63
|
:'credited_to' => :'credited_to',
|
61
64
|
:'current_stage' => :'current_stage',
|
62
65
|
:'reject_reason' => :'reject_reason',
|
63
|
-
:'remote_data' => :'remote_data'
|
66
|
+
:'remote_data' => :'remote_data',
|
67
|
+
:'custom_fields' => :'custom_fields'
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -82,7 +86,8 @@ module MergeATSClient
|
|
82
86
|
:'credited_to' => :'String',
|
83
87
|
:'current_stage' => :'String',
|
84
88
|
:'reject_reason' => :'String',
|
85
|
-
:'remote_data' => :'Array<RemoteData>'
|
89
|
+
:'remote_data' => :'Array<RemoteData>',
|
90
|
+
:'custom_fields' => :'Hash<String, Object>'
|
86
91
|
}
|
87
92
|
end
|
88
93
|
|
@@ -98,7 +103,8 @@ module MergeATSClient
|
|
98
103
|
:'credited_to',
|
99
104
|
:'current_stage',
|
100
105
|
:'reject_reason',
|
101
|
-
:'remote_data'
|
106
|
+
:'remote_data',
|
107
|
+
:'custom_fields'
|
102
108
|
])
|
103
109
|
end
|
104
110
|
|
@@ -162,6 +168,12 @@ module MergeATSClient
|
|
162
168
|
self.remote_data = value
|
163
169
|
end
|
164
170
|
end
|
171
|
+
|
172
|
+
if attributes.key?(:'custom_fields')
|
173
|
+
if (value = attributes[:'custom_fields']).is_a?(Hash)
|
174
|
+
self.custom_fields = value
|
175
|
+
end
|
176
|
+
end
|
165
177
|
end
|
166
178
|
|
167
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -192,7 +204,8 @@ module MergeATSClient
|
|
192
204
|
credited_to == o.credited_to &&
|
193
205
|
current_stage == o.current_stage &&
|
194
206
|
reject_reason == o.reject_reason &&
|
195
|
-
remote_data == o.remote_data
|
207
|
+
remote_data == o.remote_data &&
|
208
|
+
custom_fields == o.custom_fields
|
196
209
|
end
|
197
210
|
|
198
211
|
# @see the `==` method
|
@@ -204,7 +217,7 @@ module MergeATSClient
|
|
204
217
|
# Calculates hash code according to all attributes.
|
205
218
|
# @return [Integer] Hash code
|
206
219
|
def hash
|
207
|
-
[id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_data].hash
|
220
|
+
[id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_data, custom_fields].hash
|
208
221
|
end
|
209
222
|
|
210
223
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,6 +43,9 @@ module MergeATSClient
|
|
43
43
|
# The application's reason for rejection.
|
44
44
|
attr_accessor :reject_reason
|
45
45
|
|
46
|
+
# Custom fields configured for a given model.
|
47
|
+
attr_accessor :custom_fields
|
48
|
+
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
50
|
def self.attribute_map
|
48
51
|
{
|
@@ -54,7 +57,8 @@ module MergeATSClient
|
|
54
57
|
:'source' => :'source',
|
55
58
|
:'credited_to' => :'credited_to',
|
56
59
|
:'current_stage' => :'current_stage',
|
57
|
-
:'reject_reason' => :'reject_reason'
|
60
|
+
:'reject_reason' => :'reject_reason',
|
61
|
+
:'custom_fields' => :'custom_fields'
|
58
62
|
}
|
59
63
|
end
|
60
64
|
|
@@ -74,7 +78,8 @@ module MergeATSClient
|
|
74
78
|
:'source' => :'String',
|
75
79
|
:'credited_to' => :'String',
|
76
80
|
:'current_stage' => :'String',
|
77
|
-
:'reject_reason' => :'String'
|
81
|
+
:'reject_reason' => :'String',
|
82
|
+
:'custom_fields' => :'Hash<String, Object>'
|
78
83
|
}
|
79
84
|
end
|
80
85
|
|
@@ -89,7 +94,8 @@ module MergeATSClient
|
|
89
94
|
:'source',
|
90
95
|
:'credited_to',
|
91
96
|
:'current_stage',
|
92
|
-
:'reject_reason'
|
97
|
+
:'reject_reason',
|
98
|
+
:'custom_fields'
|
93
99
|
])
|
94
100
|
end
|
95
101
|
|
@@ -143,6 +149,12 @@ module MergeATSClient
|
|
143
149
|
if attributes.key?(:'reject_reason')
|
144
150
|
self.reject_reason = attributes[:'reject_reason']
|
145
151
|
end
|
152
|
+
|
153
|
+
if attributes.key?(:'custom_fields')
|
154
|
+
if (value = attributes[:'custom_fields']).is_a?(Hash)
|
155
|
+
self.custom_fields = value
|
156
|
+
end
|
157
|
+
end
|
146
158
|
end
|
147
159
|
|
148
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -171,7 +183,8 @@ module MergeATSClient
|
|
171
183
|
source == o.source &&
|
172
184
|
credited_to == o.credited_to &&
|
173
185
|
current_stage == o.current_stage &&
|
174
|
-
reject_reason == o.reject_reason
|
186
|
+
reject_reason == o.reject_reason &&
|
187
|
+
custom_fields == o.custom_fields
|
175
188
|
end
|
176
189
|
|
177
190
|
# @see the `==` method
|
@@ -183,7 +196,7 @@ module MergeATSClient
|
|
183
196
|
# Calculates hash code according to all attributes.
|
184
197
|
# @return [Integer] Hash code
|
185
198
|
def hash
|
186
|
-
[remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason].hash
|
199
|
+
[remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, custom_fields].hash
|
187
200
|
end
|
188
201
|
|
189
202
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -57,14 +57,20 @@ module MergeATSClient
|
|
57
57
|
|
58
58
|
attr_accessor :urls
|
59
59
|
|
60
|
+
# Array of `Tag` names as strings.
|
60
61
|
attr_accessor :tags
|
61
62
|
|
63
|
+
# Array of `Application` object IDs.
|
62
64
|
attr_accessor :applications
|
63
65
|
|
66
|
+
# Array of `Attachment` object IDs.
|
64
67
|
attr_accessor :attachments
|
65
68
|
|
66
69
|
attr_accessor :remote_data
|
67
70
|
|
71
|
+
# Custom fields configured for a given model.
|
72
|
+
attr_accessor :custom_fields
|
73
|
+
|
68
74
|
# Attribute mapping from ruby-style variable name to JSON key.
|
69
75
|
def self.attribute_map
|
70
76
|
{
|
@@ -86,7 +92,8 @@ module MergeATSClient
|
|
86
92
|
:'tags' => :'tags',
|
87
93
|
:'applications' => :'applications',
|
88
94
|
:'attachments' => :'attachments',
|
89
|
-
:'remote_data' => :'remote_data'
|
95
|
+
:'remote_data' => :'remote_data',
|
96
|
+
:'custom_fields' => :'custom_fields'
|
90
97
|
}
|
91
98
|
end
|
92
99
|
|
@@ -116,7 +123,8 @@ module MergeATSClient
|
|
116
123
|
:'tags' => :'Array<String>',
|
117
124
|
:'applications' => :'Array<String>',
|
118
125
|
:'attachments' => :'Array<String>',
|
119
|
-
:'remote_data' => :'Array<RemoteData>'
|
126
|
+
:'remote_data' => :'Array<RemoteData>',
|
127
|
+
:'custom_fields' => :'Hash<String, Object>'
|
120
128
|
}
|
121
129
|
end
|
122
130
|
|
@@ -134,7 +142,8 @@ module MergeATSClient
|
|
134
142
|
:'is_private',
|
135
143
|
:'can_email',
|
136
144
|
:'locations',
|
137
|
-
:'remote_data'
|
145
|
+
:'remote_data',
|
146
|
+
:'custom_fields'
|
138
147
|
])
|
139
148
|
end
|
140
149
|
|
@@ -244,6 +253,12 @@ module MergeATSClient
|
|
244
253
|
self.remote_data = value
|
245
254
|
end
|
246
255
|
end
|
256
|
+
|
257
|
+
if attributes.key?(:'custom_fields')
|
258
|
+
if (value = attributes[:'custom_fields']).is_a?(Hash)
|
259
|
+
self.custom_fields = value
|
260
|
+
end
|
261
|
+
end
|
247
262
|
end
|
248
263
|
|
249
264
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -282,7 +297,8 @@ module MergeATSClient
|
|
282
297
|
tags == o.tags &&
|
283
298
|
applications == o.applications &&
|
284
299
|
attachments == o.attachments &&
|
285
|
-
remote_data == o.remote_data
|
300
|
+
remote_data == o.remote_data &&
|
301
|
+
custom_fields == o.custom_fields
|
286
302
|
end
|
287
303
|
|
288
304
|
# @see the `==` method
|
@@ -294,7 +310,7 @@ module MergeATSClient
|
|
294
310
|
# Calculates hash code according to all attributes.
|
295
311
|
# @return [Integer] Hash code
|
296
312
|
def hash
|
297
|
-
[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_data].hash
|
313
|
+
[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_data, custom_fields].hash
|
298
314
|
end
|
299
315
|
|
300
316
|
# Builds the object from hash
|