merge_ats_client 3.0.0 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -6
  3. data/docs/AccountIntegration.md +6 -2
  4. data/docs/ActivitiesApi.md +164 -8
  5. data/docs/Activity.md +12 -6
  6. data/docs/ActivityEndpointRequest.md +20 -0
  7. data/docs/ActivityRequest.md +32 -0
  8. data/docs/ActivityResponse.md +24 -0
  9. data/docs/Application.md +12 -10
  10. data/docs/ApplicationRequest.md +5 -9
  11. data/docs/ApplicationsApi.md +4 -4
  12. data/docs/AsyncPassthroughApi.md +155 -0
  13. data/docs/AsyncPassthroughReciept.md +18 -0
  14. data/docs/Attachment.md +8 -4
  15. data/docs/AttachmentRequest.md +1 -3
  16. data/docs/AttachmentsApi.md +13 -9
  17. data/docs/Candidate.md +8 -6
  18. data/docs/CandidateRequest.md +1 -9
  19. data/docs/CandidatesApi.md +172 -13
  20. data/docs/CommonModelScopesBodyRequest.md +22 -0
  21. data/docs/ConditionSchema.md +1 -1
  22. data/docs/DataPassthroughRequest.md +1 -1
  23. data/docs/DeleteAccountApi.md +9 -9
  24. data/docs/Department.md +7 -3
  25. data/docs/DepartmentsApi.md +4 -4
  26. data/docs/EEOC.md +12 -8
  27. data/docs/EeocsApi.md +13 -9
  28. data/docs/EmailAddress.md +4 -2
  29. data/docs/EmailAddressRequest.md +1 -1
  30. data/docs/EnabledActionsEnum.md +15 -0
  31. data/docs/EndUserDetailsRequest.md +4 -2
  32. data/docs/ForceResyncApi.md +1 -1
  33. data/docs/InterviewsApi.md +165 -9
  34. data/docs/Issue.md +10 -8
  35. data/docs/IssuesApi.md +6 -6
  36. data/docs/Job.md +8 -4
  37. data/docs/JobInterviewStage.md +10 -4
  38. data/docs/JobInterviewStagesApi.md +4 -4
  39. data/docs/JobsApi.md +16 -10
  40. data/docs/LinkToken.md +1 -1
  41. data/docs/LinkedAccountsApi.md +2 -2
  42. data/docs/MetaResponse.md +2 -0
  43. data/docs/MultipartFormFieldRequest.md +1 -1
  44. data/docs/Offer.md +10 -6
  45. data/docs/OffersApi.md +13 -9
  46. data/docs/Office.md +7 -3
  47. data/docs/OfficesApi.md +4 -4
  48. data/docs/PaginatedConditionSchemaList.md +2 -2
  49. data/docs/PatchedCandidateEndpointRequest.md +20 -0
  50. data/docs/PatchedCandidateRequest.md +50 -0
  51. data/docs/PhoneNumber.md +4 -2
  52. data/docs/PhoneNumberRequest.md +1 -1
  53. data/docs/RejectReason.md +7 -3
  54. data/docs/RejectReasonsApi.md +4 -4
  55. data/docs/RemoteData.md +1 -1
  56. data/docs/RemoteUser.md +8 -4
  57. data/docs/ScheduledInterview.md +11 -7
  58. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  59. data/docs/ScheduledInterviewRequest.md +36 -0
  60. data/docs/ScheduledInterviewResponse.md +24 -0
  61. data/docs/Scorecard.md +11 -7
  62. data/docs/ScorecardsApi.md +13 -9
  63. data/docs/SelectiveSyncApi.md +2 -2
  64. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  65. data/docs/SyncStatus.md +3 -1
  66. data/docs/SyncStatusApi.md +1 -1
  67. data/docs/Tag.md +7 -3
  68. data/docs/TagsApi.md +4 -4
  69. data/docs/Url.md +4 -2
  70. data/docs/UrlRequest.md +1 -1
  71. data/docs/UsersApi.md +13 -9
  72. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  73. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  74. data/lib/merge_ats_client/api/async_passthrough_api.rb +160 -0
  75. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  76. data/lib/merge_ats_client/api/candidates_api.rb +165 -11
  77. data/lib/merge_ats_client/api/delete_account_api.rb +7 -7
  78. data/lib/merge_ats_client/api/departments_api.rb +4 -4
  79. data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
  80. data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
  81. data/lib/merge_ats_client/api/interviews_api.rb +160 -8
  82. data/lib/merge_ats_client/api/issues_api.rb +6 -6
  83. data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
  84. data/lib/merge_ats_client/api/jobs_api.rb +27 -10
  85. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
  86. data/lib/merge_ats_client/api/offers_api.rb +22 -8
  87. data/lib/merge_ats_client/api/offices_api.rb +4 -4
  88. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
  89. data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
  90. data/lib/merge_ats_client/api/selective_sync_api.rb +2 -2
  91. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  92. data/lib/merge_ats_client/api/tags_api.rb +4 -4
  93. data/lib/merge_ats_client/api/users_api.rb +22 -8
  94. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  95. data/lib/merge_ats_client/models/activity.rb +50 -16
  96. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  97. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  98. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  99. data/lib/merge_ats_client/models/application.rb +40 -26
  100. data/lib/merge_ats_client/models/application_request.rb +7 -26
  101. data/lib/merge_ats_client/models/async_passthrough_reciept.rb +223 -0
  102. data/lib/merge_ats_client/models/attachment.rb +38 -16
  103. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  104. data/lib/merge_ats_client/models/candidate.rb +36 -27
  105. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  106. data/lib/merge_ats_client/models/categories_enum.rb +3 -1
  107. data/lib/merge_ats_client/models/category_enum.rb +3 -1
  108. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  109. data/lib/merge_ats_client/models/condition_schema.rb +1 -0
  110. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  111. data/lib/merge_ats_client/models/department.rb +36 -14
  112. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  113. data/lib/merge_ats_client/models/email_address.rb +16 -6
  114. data/lib/merge_ats_client/models/email_address_request.rb +1 -1
  115. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  116. data/lib/merge_ats_client/models/end_user_details_request.rb +19 -6
  117. data/lib/merge_ats_client/models/issue.rb +16 -4
  118. data/lib/merge_ats_client/models/job.rb +38 -16
  119. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  120. data/lib/merge_ats_client/models/link_token.rb +0 -5
  121. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  122. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  123. data/lib/merge_ats_client/models/offer.rb +40 -16
  124. data/lib/merge_ats_client/models/office.rb +37 -15
  125. data/lib/merge_ats_client/models/patched_candidate_endpoint_request.rb +237 -0
  126. data/lib/merge_ats_client/models/patched_candidate_request.rb +418 -0
  127. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  128. data/lib/merge_ats_client/models/phone_number_request.rb +1 -1
  129. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  130. data/lib/merge_ats_client/models/remote_data.rb +3 -4
  131. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  132. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  133. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  134. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  135. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  136. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  137. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  138. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  139. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -1
  140. data/lib/merge_ats_client/models/tag.rb +36 -14
  141. data/lib/merge_ats_client/models/url.rb +16 -6
  142. data/lib/merge_ats_client/models/url_request.rb +1 -1
  143. data/lib/merge_ats_client/version.rb +1 -1
  144. data/lib/merge_ats_client.rb +13 -1
  145. data/spec/api/activities_api_spec.rb +31 -4
  146. data/spec/api/applications_api_spec.rb +2 -2
  147. data/spec/api/async_passthrough_api_spec.rb +59 -0
  148. data/spec/api/attachments_api_spec.rb +6 -4
  149. data/spec/api/candidates_api_spec.rb +32 -3
  150. data/spec/api/delete_account_api_spec.rb +2 -2
  151. data/spec/api/departments_api_spec.rb +2 -2
  152. data/spec/api/eeocs_api_spec.rb +6 -4
  153. data/spec/api/force_resync_api_spec.rb +1 -1
  154. data/spec/api/interviews_api_spec.rb +31 -4
  155. data/spec/api/issues_api_spec.rb +3 -3
  156. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  157. data/spec/api/jobs_api_spec.rb +8 -5
  158. data/spec/api/linked_accounts_api_spec.rb +1 -1
  159. data/spec/api/offers_api_spec.rb +6 -4
  160. data/spec/api/offices_api_spec.rb +2 -2
  161. data/spec/api/reject_reasons_api_spec.rb +2 -2
  162. data/spec/api/scorecards_api_spec.rb +6 -4
  163. data/spec/api/selective_sync_api_spec.rb +1 -1
  164. data/spec/api/sync_status_api_spec.rb +1 -1
  165. data/spec/api/tags_api_spec.rb +2 -2
  166. data/spec/api/users_api_spec.rb +6 -4
  167. data/spec/models/account_integration_spec.rb +12 -0
  168. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  169. data/spec/models/activity_request_spec.rb +76 -0
  170. data/spec/models/activity_response_spec.rb +52 -0
  171. data/spec/models/activity_spec.rb +19 -1
  172. data/spec/models/application_request_spec.rb +0 -12
  173. data/spec/models/application_spec.rb +9 -3
  174. data/spec/models/async_passthrough_reciept_spec.rb +34 -0
  175. data/spec/models/attachment_request_spec.rb +0 -6
  176. data/spec/models/attachment_spec.rb +14 -2
  177. data/spec/models/candidate_request_spec.rb +0 -24
  178. data/spec/models/candidate_spec.rb +9 -3
  179. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  180. data/spec/models/department_spec.rb +14 -2
  181. data/spec/models/eeoc_spec.rb +14 -2
  182. data/spec/models/email_address_spec.rb +6 -0
  183. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  184. data/spec/models/end_user_details_request_spec.rb +6 -0
  185. data/spec/models/issue_spec.rb +6 -0
  186. data/spec/models/job_interview_stage_spec.rb +19 -1
  187. data/spec/models/job_spec.rb +14 -2
  188. data/spec/models/meta_response_spec.rb +6 -0
  189. data/spec/models/offer_spec.rb +14 -2
  190. data/spec/models/office_spec.rb +14 -2
  191. data/spec/models/{remote_data_request_spec.rb → patched_candidate_endpoint_request_spec.rb} +8 -8
  192. data/spec/models/patched_candidate_request_spec.rb +130 -0
  193. data/spec/models/phone_number_spec.rb +6 -0
  194. data/spec/models/reject_reason_spec.rb +14 -2
  195. data/spec/models/remote_user_spec.rb +14 -2
  196. data/spec/models/scheduled_interview_endpoint_request_spec.rb +40 -0
  197. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  198. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  199. data/spec/models/scheduled_interview_spec.rb +14 -2
  200. data/spec/models/scorecard_spec.rb +14 -2
  201. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  202. data/spec/models/sync_status_spec.rb +6 -0
  203. data/spec/models/tag_spec.rb +14 -2
  204. data/spec/models/url_spec.rb +6 -0
  205. metadata +167 -119
@@ -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 `Application` object is used to represent an Application for a job position. This is separate from the Candidate object, although some systems may only allow a Candidate to have one Application. Please note: Application objects are constructed if the object does not exist in the remote system. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
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 :remote_data
48
+ attr_accessor :remote_was_deleted
44
49
 
45
- # Custom fields configured for a given model.
46
- attr_accessor :custom_fields
50
+ # This is the datetime that this object was last updated by Merge
51
+ attr_accessor :modified_at
47
52
 
48
- attr_accessor :remote_was_deleted
53
+ attr_accessor :field_mappings
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
- :'remote_data' => :'remote_data',
64
- :'custom_fields' => :'custom_fields',
65
- :'remote_was_deleted' => :'remote_was_deleted'
70
+ :'remote_was_deleted' => :'remote_was_deleted',
71
+ :'modified_at' => :'modified_at',
72
+ :'field_mappings' => :'field_mappings',
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
- :'remote_data' => :'Array<RemoteData>',
88
- :'custom_fields' => :'Hash<String, Object>',
89
- :'remote_was_deleted' => :'Boolean'
95
+ :'remote_was_deleted' => :'Boolean',
96
+ :'modified_at' => :'Time',
97
+ :'field_mappings' => :'Hash<String, Object>',
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
- :'remote_data',
106
- :'custom_fields',
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?(:'remote_data')
166
- if (value = attributes[:'remote_data']).is_a?(Array)
167
- self.remote_data = value
168
- end
174
+ if attributes.key?(:'remote_was_deleted')
175
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
176
+ end
177
+
178
+ if attributes.key?(:'modified_at')
179
+ self.modified_at = attributes[:'modified_at']
169
180
  end
170
181
 
171
- if attributes.key?(:'custom_fields')
172
- if (value = attributes[:'custom_fields']).is_a?(Hash)
173
- self.custom_fields = value
182
+ if attributes.key?(:'field_mappings')
183
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
184
+ self.field_mappings = value
174
185
  end
175
186
  end
176
187
 
177
- if attributes.key?(:'remote_was_deleted')
178
- self.remote_was_deleted = attributes[:'remote_was_deleted']
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
- remote_data == o.remote_data &&
211
- custom_fields == o.custom_fields &&
212
- remote_was_deleted == o.remote_was_deleted
223
+ remote_was_deleted == o.remote_was_deleted &&
224
+ modified_at == o.modified_at &&
225
+ field_mappings == o.field_mappings &&
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, remote_data, custom_fields, remote_was_deleted].hash
238
+ [id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_was_deleted, modified_at, field_mappings, 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 `Application` object is used to represent an Application for a job position. This is separate from the Candidate object, although some systems may only allow a Candidate to have one Application. Please note: Application objects are constructed if the object does not exist in the remote system. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
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 third-party API ID of the matching object.
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
- [remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, custom_fields, remote_template_id, integration_params, linked_account_params].hash
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