merge_ats_client 2.0.1 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +186 -167
  4. data/docs/AccountIntegration.md +6 -2
  5. data/docs/ActivitiesApi.md +164 -8
  6. data/docs/Activity.md +12 -6
  7. data/docs/ActivityEndpointRequest.md +20 -0
  8. data/docs/ActivityRequest.md +32 -0
  9. data/docs/ActivityResponse.md +24 -0
  10. data/docs/Application.md +12 -10
  11. data/docs/ApplicationRequest.md +5 -9
  12. data/docs/ApplicationsApi.md +4 -4
  13. data/docs/Attachment.md +8 -4
  14. data/docs/AttachmentRequest.md +1 -3
  15. data/docs/AttachmentsApi.md +13 -9
  16. data/docs/Candidate.md +8 -6
  17. data/docs/CandidateRequest.md +1 -9
  18. data/docs/CandidatesApi.md +16 -13
  19. data/docs/CommonModelScopesBodyRequest.md +22 -0
  20. data/docs/ConditionSchema.md +30 -0
  21. data/docs/ConditionTypeEnum.md +15 -0
  22. data/docs/DataPassthroughRequest.md +1 -1
  23. data/docs/Department.md +7 -3
  24. data/docs/DepartmentsApi.md +4 -4
  25. data/docs/EEOC.md +12 -8
  26. data/docs/EeocsApi.md +13 -9
  27. data/docs/EmailAddress.md +4 -2
  28. data/docs/EmailAddressRequest.md +6 -2
  29. data/docs/EnabledActionsEnum.md +15 -0
  30. data/docs/EndUserDetailsRequest.md +5 -3
  31. data/docs/ForceResyncApi.md +1 -1
  32. data/docs/InterviewsApi.md +165 -9
  33. data/docs/Issue.md +10 -8
  34. data/docs/IssuesApi.md +6 -6
  35. data/docs/Job.md +8 -4
  36. data/docs/JobInterviewStage.md +10 -4
  37. data/docs/JobInterviewStagesApi.md +4 -4
  38. data/docs/JobsApi.md +16 -10
  39. data/docs/LinkToken.md +1 -1
  40. data/docs/LinkedAccountCondition.md +28 -0
  41. data/docs/LinkedAccountConditionRequest.md +22 -0
  42. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  43. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  44. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  45. data/docs/LinkedAccountsApi.md +2 -2
  46. data/docs/MetaResponse.md +2 -0
  47. data/docs/MultipartFormFieldRequest.md +1 -1
  48. data/docs/Offer.md +10 -6
  49. data/docs/OffersApi.md +13 -9
  50. data/docs/Office.md +7 -3
  51. data/docs/OfficesApi.md +4 -4
  52. data/docs/OperatorSchema.md +20 -0
  53. data/docs/PaginatedConditionSchemaList.md +22 -0
  54. data/docs/PhoneNumber.md +4 -2
  55. data/docs/PhoneNumberRequest.md +6 -2
  56. data/docs/RejectReason.md +7 -3
  57. data/docs/RejectReasonsApi.md +4 -4
  58. data/docs/RemoteUser.md +8 -4
  59. data/docs/ScheduledInterview.md +11 -7
  60. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  61. data/docs/ScheduledInterviewRequest.md +36 -0
  62. data/docs/ScheduledInterviewResponse.md +24 -0
  63. data/docs/Scorecard.md +11 -7
  64. data/docs/ScorecardsApi.md +13 -9
  65. data/docs/SelectiveSyncApi.md +233 -0
  66. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  67. data/docs/SyncStatus.md +3 -1
  68. data/docs/SyncStatusApi.md +1 -1
  69. data/docs/Tag.md +7 -3
  70. data/docs/TagsApi.md +4 -4
  71. data/docs/Url.md +4 -2
  72. data/docs/UrlRequest.md +6 -2
  73. data/docs/UsersApi.md +13 -9
  74. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  75. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  76. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  77. data/lib/merge_ats_client/api/candidates_api.rb +15 -11
  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 +225 -0
  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/access_role_enum.rb +1 -1
  95. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +1 -1
  96. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  97. data/lib/merge_ats_client/models/activity.rb +50 -16
  98. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  99. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  100. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  101. data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
  102. data/lib/merge_ats_client/models/application.rb +40 -26
  103. data/lib/merge_ats_client/models/application_request.rb +7 -26
  104. data/lib/merge_ats_client/models/attachment.rb +38 -16
  105. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  106. data/lib/merge_ats_client/models/attachment_type_enum.rb +1 -1
  107. data/lib/merge_ats_client/models/candidate.rb +36 -27
  108. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  109. data/lib/merge_ats_client/models/categories_enum.rb +4 -2
  110. data/lib/merge_ats_client/models/category_enum.rb +4 -2
  111. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  112. data/lib/merge_ats_client/models/condition_schema.rb +298 -0
  113. data/lib/merge_ats_client/models/condition_type_enum.rb +50 -0
  114. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  115. data/lib/merge_ats_client/models/department.rb +36 -14
  116. data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
  117. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  118. data/lib/merge_ats_client/models/email_address.rb +16 -6
  119. data/lib/merge_ats_client/models/email_address_request.rb +30 -6
  120. data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
  121. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  122. data/lib/merge_ats_client/models/encoding_enum.rb +1 -1
  123. data/lib/merge_ats_client/models/end_user_details_request.rb +20 -7
  124. data/lib/merge_ats_client/models/gender_enum.rb +1 -1
  125. data/lib/merge_ats_client/models/issue.rb +16 -4
  126. data/lib/merge_ats_client/models/job.rb +38 -16
  127. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  128. data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
  129. data/lib/merge_ats_client/models/link_token.rb +0 -5
  130. data/lib/merge_ats_client/models/linked_account_condition.rb +282 -0
  131. data/lib/merge_ats_client/models/linked_account_condition_request.rb +269 -0
  132. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration.rb +221 -0
  133. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  134. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  135. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  136. data/lib/merge_ats_client/models/method_enum.rb +1 -1
  137. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  138. data/lib/merge_ats_client/models/offer.rb +40 -16
  139. data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
  140. data/lib/merge_ats_client/models/office.rb +37 -15
  141. data/lib/merge_ats_client/models/operator_schema.rb +229 -0
  142. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
  143. data/lib/merge_ats_client/models/paginated_condition_schema_list.rb +240 -0
  144. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  145. data/lib/merge_ats_client/models/phone_number_request.rb +30 -6
  146. data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
  147. data/lib/merge_ats_client/models/race_enum.rb +1 -1
  148. data/lib/merge_ats_client/models/reason_enum.rb +1 -1
  149. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  150. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  151. data/lib/merge_ats_client/models/request_format_enum.rb +1 -1
  152. data/lib/merge_ats_client/models/response_type_enum.rb +1 -1
  153. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  154. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  155. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  156. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  157. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
  158. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  159. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  160. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  161. data/lib/merge_ats_client/models/sync_status_status_enum.rb +3 -2
  162. data/lib/merge_ats_client/models/tag.rb +36 -14
  163. data/lib/merge_ats_client/models/url.rb +17 -7
  164. data/lib/merge_ats_client/models/url_request.rb +31 -7
  165. data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
  166. data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
  167. data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
  168. data/lib/merge_ats_client/version.rb +1 -1
  169. data/lib/merge_ats_client.rb +19 -1
  170. data/spec/api/activities_api_spec.rb +31 -4
  171. data/spec/api/applications_api_spec.rb +2 -2
  172. data/spec/api/attachments_api_spec.rb +6 -4
  173. data/spec/api/candidates_api_spec.rb +5 -3
  174. data/spec/api/departments_api_spec.rb +2 -2
  175. data/spec/api/eeocs_api_spec.rb +6 -4
  176. data/spec/api/force_resync_api_spec.rb +1 -1
  177. data/spec/api/interviews_api_spec.rb +31 -4
  178. data/spec/api/issues_api_spec.rb +3 -3
  179. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  180. data/spec/api/jobs_api_spec.rb +8 -5
  181. data/spec/api/linked_accounts_api_spec.rb +1 -1
  182. data/spec/api/offers_api_spec.rb +6 -4
  183. data/spec/api/offices_api_spec.rb +2 -2
  184. data/spec/api/reject_reasons_api_spec.rb +2 -2
  185. data/spec/api/scorecards_api_spec.rb +6 -4
  186. data/spec/api/selective_sync_api_spec.rb +72 -0
  187. data/spec/api/sync_status_api_spec.rb +1 -1
  188. data/spec/api/tags_api_spec.rb +2 -2
  189. data/spec/api/users_api_spec.rb +6 -4
  190. data/spec/models/account_integration_spec.rb +12 -0
  191. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  192. data/spec/models/activity_request_spec.rb +76 -0
  193. data/spec/models/activity_response_spec.rb +52 -0
  194. data/spec/models/activity_spec.rb +19 -1
  195. data/spec/models/application_request_spec.rb +0 -12
  196. data/spec/models/application_spec.rb +9 -3
  197. data/spec/models/attachment_request_spec.rb +0 -6
  198. data/spec/models/attachment_spec.rb +14 -2
  199. data/spec/models/candidate_request_spec.rb +0 -24
  200. data/spec/models/candidate_spec.rb +9 -3
  201. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  202. data/spec/models/condition_schema_spec.rb +70 -0
  203. data/spec/models/condition_type_enum_spec.rb +28 -0
  204. data/spec/models/department_spec.rb +14 -2
  205. data/spec/models/eeoc_spec.rb +14 -2
  206. data/spec/models/email_address_request_spec.rb +12 -0
  207. data/spec/models/email_address_spec.rb +6 -0
  208. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  209. data/spec/models/end_user_details_request_spec.rb +6 -0
  210. data/spec/models/issue_spec.rb +6 -0
  211. data/spec/models/job_interview_stage_spec.rb +19 -1
  212. data/spec/models/job_spec.rb +14 -2
  213. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  214. data/spec/models/linked_account_condition_spec.rb +64 -0
  215. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  216. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  217. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  218. data/spec/models/meta_response_spec.rb +6 -0
  219. data/spec/models/offer_spec.rb +14 -2
  220. data/spec/models/office_spec.rb +14 -2
  221. data/spec/models/{remote_data_request_spec.rb → operator_schema_spec.rb} +8 -8
  222. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  223. data/spec/models/phone_number_request_spec.rb +12 -0
  224. data/spec/models/phone_number_spec.rb +6 -0
  225. data/spec/models/reject_reason_spec.rb +14 -2
  226. data/spec/models/remote_user_spec.rb +14 -2
  227. data/spec/models/scheduled_interview_endpoint_request_spec.rb +40 -0
  228. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  229. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  230. data/spec/models/scheduled_interview_spec.rb +14 -2
  231. data/spec/models/scorecard_spec.rb +14 -2
  232. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  233. data/spec/models/sync_status_spec.rb +6 -0
  234. data/spec/models/tag_spec.rb +14 -2
  235. data/spec/models/url_request_spec.rb +12 -0
  236. data/spec/models/url_spec.rb +6 -0
  237. metadata +182 -109
@@ -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
+ attr_accessor :field_mappings
47
51
 
48
- attr_accessor :remote_was_deleted
52
+ # This is the datetime that this object was last updated by Merge
53
+ attr_accessor :modified_at
54
+
55
+ attr_accessor :remote_data
49
56
 
50
57
  # Attribute mapping from ruby-style variable name to JSON key.
51
58
  def self.attribute_map
@@ -60,9 +67,10 @@ module MergeATSClient
60
67
  :'credited_to' => :'credited_to',
61
68
  :'current_stage' => :'current_stage',
62
69
  :'reject_reason' => :'reject_reason',
63
- :'remote_data' => :'remote_data',
64
- :'custom_fields' => :'custom_fields',
65
- :'remote_was_deleted' => :'remote_was_deleted'
70
+ :'remote_was_deleted' => :'remote_was_deleted',
71
+ :'field_mappings' => :'field_mappings',
72
+ :'modified_at' => :'modified_at',
73
+ :'remote_data' => :'remote_data'
66
74
  }
67
75
  end
68
76
 
@@ -84,9 +92,10 @@ module MergeATSClient
84
92
  :'credited_to' => :'String',
85
93
  :'current_stage' => :'String',
86
94
  :'reject_reason' => :'String',
87
- :'remote_data' => :'Array<RemoteData>',
88
- :'custom_fields' => :'Hash<String, Object>',
89
- :'remote_was_deleted' => :'Boolean'
95
+ :'remote_was_deleted' => :'Boolean',
96
+ :'field_mappings' => :'Hash<String, Object>',
97
+ :'modified_at' => :'Time',
98
+ :'remote_data' => :'Array<RemoteData>'
90
99
  }
91
100
  end
92
101
 
@@ -102,8 +111,8 @@ module MergeATSClient
102
111
  :'credited_to',
103
112
  :'current_stage',
104
113
  :'reject_reason',
105
- :'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']
169
176
  end
170
177
 
171
- if attributes.key?(:'custom_fields')
172
- if (value = attributes[:'custom_fields']).is_a?(Hash)
173
- self.custom_fields = value
178
+ if attributes.key?(:'field_mappings')
179
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
180
+ self.field_mappings = value
174
181
  end
175
182
  end
176
183
 
177
- if attributes.key?(:'remote_was_deleted')
178
- self.remote_was_deleted = attributes[:'remote_was_deleted']
184
+ if attributes.key?(:'modified_at')
185
+ self.modified_at = attributes[:'modified_at']
186
+ end
187
+
188
+ if attributes.key?(:'remote_data')
189
+ if (value = attributes[:'remote_data']).is_a?(Array)
190
+ self.remote_data = value
191
+ end
179
192
  end
180
193
  end
181
194
 
@@ -207,9 +220,10 @@ module MergeATSClient
207
220
  credited_to == o.credited_to &&
208
221
  current_stage == o.current_stage &&
209
222
  reject_reason == o.reject_reason &&
210
- 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
+ field_mappings == o.field_mappings &&
225
+ modified_at == o.modified_at &&
226
+ remote_data == o.remote_data
213
227
  end
214
228
 
215
229
  # @see the `==` method
@@ -221,7 +235,7 @@ module MergeATSClient
221
235
  # Calculates hash code according to all attributes.
222
236
  # @return [Integer] Hash code
223
237
  def hash
224
- [id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, 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, field_mappings, modified_at, remote_data].hash
225
239
  end
226
240
 
227
241
  # Builds the object from hash
@@ -14,13 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Application Object ### Description The `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
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Attachment Object ### Description The `Attachment` object is used to represent a attachment for a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
17
+ # # The Attachment Object ### Description The `Attachment` object is used to represent a file attached to a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
18
18
  class Attachment
19
19
  attr_accessor :id
20
20
 
@@ -29,13 +29,18 @@ module MergeATSClient
29
29
 
30
30
  attr_accessor :candidate
31
31
 
32
- # The attachment's type.
32
+ # The attachment's type. * `RESUME` - RESUME * `COVER_LETTER` - COVER_LETTER * `OFFER_LETTER` - OFFER_LETTER * `OTHER` - OTHER
33
33
  attr_accessor :attachment_type
34
34
 
35
- attr_accessor :remote_data
36
-
37
35
  attr_accessor :remote_was_deleted
38
36
 
37
+ attr_accessor :field_mappings
38
+
39
+ # This is the datetime that this object was last updated by Merge
40
+ attr_accessor :modified_at
41
+
42
+ attr_accessor :remote_data
43
+
39
44
  # Attribute mapping from ruby-style variable name to JSON key.
40
45
  def self.attribute_map
41
46
  {
@@ -45,8 +50,10 @@ module MergeATSClient
45
50
  :'file_url' => :'file_url',
46
51
  :'candidate' => :'candidate',
47
52
  :'attachment_type' => :'attachment_type',
48
- :'remote_data' => :'remote_data',
49
- :'remote_was_deleted' => :'remote_was_deleted'
53
+ :'remote_was_deleted' => :'remote_was_deleted',
54
+ :'field_mappings' => :'field_mappings',
55
+ :'modified_at' => :'modified_at',
56
+ :'remote_data' => :'remote_data'
50
57
  }
51
58
  end
52
59
 
@@ -64,8 +71,10 @@ module MergeATSClient
64
71
  :'file_url' => :'String',
65
72
  :'candidate' => :'String',
66
73
  :'attachment_type' => :'AttachmentTypeEnum',
67
- :'remote_data' => :'Array<RemoteData>',
68
- :'remote_was_deleted' => :'Boolean'
74
+ :'remote_was_deleted' => :'Boolean',
75
+ :'field_mappings' => :'Hash<String, Object>',
76
+ :'modified_at' => :'Time',
77
+ :'remote_data' => :'Array<RemoteData>'
69
78
  }
70
79
  end
71
80
 
@@ -77,7 +86,8 @@ module MergeATSClient
77
86
  :'file_url',
78
87
  :'candidate',
79
88
  :'attachment_type',
80
- :'remote_data',
89
+ :'field_mappings',
90
+ :'remote_data'
81
91
  ])
82
92
  end
83
93
 
@@ -120,15 +130,25 @@ module MergeATSClient
120
130
  self.attachment_type = attributes[:'attachment_type']
121
131
  end
122
132
 
133
+ if attributes.key?(:'remote_was_deleted')
134
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
135
+ end
136
+
137
+ if attributes.key?(:'field_mappings')
138
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
139
+ self.field_mappings = value
140
+ end
141
+ end
142
+
143
+ if attributes.key?(:'modified_at')
144
+ self.modified_at = attributes[:'modified_at']
145
+ end
146
+
123
147
  if attributes.key?(:'remote_data')
124
148
  if (value = attributes[:'remote_data']).is_a?(Array)
125
149
  self.remote_data = value
126
150
  end
127
151
  end
128
-
129
- if attributes.key?(:'remote_was_deleted')
130
- self.remote_was_deleted = attributes[:'remote_was_deleted']
131
- end
132
152
  end
133
153
 
134
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,8 +190,10 @@ module MergeATSClient
170
190
  file_url == o.file_url &&
171
191
  candidate == o.candidate &&
172
192
  attachment_type == o.attachment_type &&
173
- remote_data == o.remote_data &&
174
- remote_was_deleted == o.remote_was_deleted
193
+ remote_was_deleted == o.remote_was_deleted &&
194
+ field_mappings == o.field_mappings &&
195
+ modified_at == o.modified_at &&
196
+ remote_data == o.remote_data
175
197
  end
176
198
 
177
199
  # @see the `==` method
@@ -183,7 +205,7 @@ module MergeATSClient
183
205
  # Calculates hash code according to all attributes.
184
206
  # @return [Integer] Hash code
185
207
  def hash
186
- [id, remote_id, file_name, file_url, candidate, attachment_type, remote_data, remote_was_deleted].hash
208
+ [id, remote_id, file_name, file_url, candidate, attachment_type, remote_was_deleted, field_mappings, modified_at, remote_data].hash
187
209
  end
188
210
 
189
211
  # Builds the object from hash
@@ -14,11 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Attachment Object ### Description The `Attachment` object is used to represent a attachment for a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
17
+ # # The Attachment Object ### Description The `Attachment` object is used to represent a file attached to a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
18
18
  class AttachmentRequest
19
- # The third-party API ID of the matching object.
20
- attr_accessor :remote_id
21
-
22
19
  # The attachment's name.
23
20
  attr_accessor :file_name
24
21
 
@@ -27,7 +24,7 @@ module MergeATSClient
27
24
 
28
25
  attr_accessor :candidate
29
26
 
30
- # The attachment's type.
27
+ # The attachment's type. * `RESUME` - RESUME * `COVER_LETTER` - COVER_LETTER * `OFFER_LETTER` - OFFER_LETTER * `OTHER` - OTHER
31
28
  attr_accessor :attachment_type
32
29
 
33
30
  attr_accessor :integration_params
@@ -37,7 +34,6 @@ module MergeATSClient
37
34
  # Attribute mapping from ruby-style variable name to JSON key.
38
35
  def self.attribute_map
39
36
  {
40
- :'remote_id' => :'remote_id',
41
37
  :'file_name' => :'file_name',
42
38
  :'file_url' => :'file_url',
43
39
  :'candidate' => :'candidate',
@@ -55,7 +51,6 @@ module MergeATSClient
55
51
  # Attribute type mapping.
56
52
  def self.openapi_types
57
53
  {
58
- :'remote_id' => :'String',
59
54
  :'file_name' => :'String',
60
55
  :'file_url' => :'String',
61
56
  :'candidate' => :'String',
@@ -68,7 +63,6 @@ module MergeATSClient
68
63
  # List of attributes with nullable: true
69
64
  def self.openapi_nullable
70
65
  Set.new([
71
- :'remote_id',
72
66
  :'file_name',
73
67
  :'file_url',
74
68
  :'candidate',
@@ -93,10 +87,6 @@ module MergeATSClient
93
87
  h[k.to_sym] = v
94
88
  }
95
89
 
96
- if attributes.key?(:'remote_id')
97
- self.remote_id = attributes[:'remote_id']
98
- end
99
-
100
90
  if attributes.key?(:'file_name')
101
91
  self.file_name = attributes[:'file_name']
102
92
  end
@@ -159,7 +149,6 @@ module MergeATSClient
159
149
  def ==(o)
160
150
  return true if self.equal?(o)
161
151
  self.class == o.class &&
162
- remote_id == o.remote_id &&
163
152
  file_name == o.file_name &&
164
153
  file_url == o.file_url &&
165
154
  candidate == o.candidate &&
@@ -177,7 +166,7 @@ module MergeATSClient
177
166
  # Calculates hash code according to all attributes.
178
167
  # @return [Integer] Hash code
179
168
  def hash
180
- [remote_id, file_name, file_url, candidate, attachment_type, integration_params, linked_account_params].hash
169
+ [file_name, file_url, candidate, attachment_type, integration_params, linked_account_params].hash
181
170
  end
182
171
 
183
172
  # Builds the object from hash
@@ -40,7 +40,7 @@ module MergeATSClient
40
40
  end
41
41
 
42
42
  def self.build_from_hash(value)
43
- IssueStatusEnum.new.build_from_hash(value)
43
+ AttachmentTypeEnum.new.build_from_hash(value)
44
44
  end
45
45
  end
46
46
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Candidate Object ### Description The `Candidate` object is used to represent a Candidate for various positions. ### Usage Example Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates.
17
+ # # The Candidate Object ### Description The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. ### Usage Example Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates.
18
18
  class Candidate
19
19
  attr_accessor :id
20
20
 
@@ -39,7 +39,7 @@ module MergeATSClient
39
39
  # When the third party's candidate was updated.
40
40
  attr_accessor :remote_updated_at
41
41
 
42
- # When the most recent candidate interaction occurred.
42
+ # When the most recent interaction with the candidate occurred.
43
43
  attr_accessor :last_interaction_at
44
44
 
45
45
  # Whether or not the candidate is private.
@@ -66,12 +66,14 @@ module MergeATSClient
66
66
  # Array of `Attachment` object IDs.
67
67
  attr_accessor :attachments
68
68
 
69
- attr_accessor :remote_data
69
+ attr_accessor :remote_was_deleted
70
70
 
71
- # Custom fields configured for a given model.
72
- attr_accessor :custom_fields
71
+ attr_accessor :field_mappings
73
72
 
74
- attr_accessor :remote_was_deleted
73
+ # This is the datetime that this object was last updated by Merge
74
+ attr_accessor :modified_at
75
+
76
+ attr_accessor :remote_data
75
77
 
76
78
  # Attribute mapping from ruby-style variable name to JSON key.
77
79
  def self.attribute_map
@@ -94,9 +96,10 @@ module MergeATSClient
94
96
  :'tags' => :'tags',
95
97
  :'applications' => :'applications',
96
98
  :'attachments' => :'attachments',
97
- :'remote_data' => :'remote_data',
98
- :'custom_fields' => :'custom_fields',
99
- :'remote_was_deleted' => :'remote_was_deleted'
99
+ :'remote_was_deleted' => :'remote_was_deleted',
100
+ :'field_mappings' => :'field_mappings',
101
+ :'modified_at' => :'modified_at',
102
+ :'remote_data' => :'remote_data'
100
103
  }
101
104
  end
102
105
 
@@ -126,9 +129,10 @@ module MergeATSClient
126
129
  :'tags' => :'Array<String>',
127
130
  :'applications' => :'Array<String>',
128
131
  :'attachments' => :'Array<String>',
129
- :'remote_data' => :'Array<RemoteData>',
130
- :'custom_fields' => :'Hash<String, Object>',
131
- :'remote_was_deleted' => :'Boolean'
132
+ :'remote_was_deleted' => :'Boolean',
133
+ :'field_mappings' => :'Hash<String, Object>',
134
+ :'modified_at' => :'Time',
135
+ :'remote_data' => :'Array<RemoteData>'
132
136
  }
133
137
  end
134
138
 
@@ -146,8 +150,8 @@ module MergeATSClient
146
150
  :'is_private',
147
151
  :'can_email',
148
152
  :'locations',
149
- :'remote_data',
150
- :'custom_fields',
153
+ :'field_mappings',
154
+ :'remote_data'
151
155
  ])
152
156
  end
153
157
 
@@ -252,20 +256,24 @@ module MergeATSClient
252
256
  end
253
257
  end
254
258
 
255
- if attributes.key?(:'remote_data')
256
- if (value = attributes[:'remote_data']).is_a?(Array)
257
- self.remote_data = value
258
- end
259
+ if attributes.key?(:'remote_was_deleted')
260
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
259
261
  end
260
262
 
261
- if attributes.key?(:'custom_fields')
262
- if (value = attributes[:'custom_fields']).is_a?(Hash)
263
- self.custom_fields = value
263
+ if attributes.key?(:'field_mappings')
264
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
265
+ self.field_mappings = value
264
266
  end
265
267
  end
266
268
 
267
- if attributes.key?(:'remote_was_deleted')
268
- self.remote_was_deleted = attributes[:'remote_was_deleted']
269
+ if attributes.key?(:'modified_at')
270
+ self.modified_at = attributes[:'modified_at']
271
+ end
272
+
273
+ if attributes.key?(:'remote_data')
274
+ if (value = attributes[:'remote_data']).is_a?(Array)
275
+ self.remote_data = value
276
+ end
269
277
  end
270
278
  end
271
279
 
@@ -305,9 +313,10 @@ module MergeATSClient
305
313
  tags == o.tags &&
306
314
  applications == o.applications &&
307
315
  attachments == o.attachments &&
308
- remote_data == o.remote_data &&
309
- custom_fields == o.custom_fields &&
310
- remote_was_deleted == o.remote_was_deleted
316
+ remote_was_deleted == o.remote_was_deleted &&
317
+ field_mappings == o.field_mappings &&
318
+ modified_at == o.modified_at &&
319
+ remote_data == o.remote_data
311
320
  end
312
321
 
313
322
  # @see the `==` method
@@ -319,7 +328,7 @@ module MergeATSClient
319
328
  # Calculates hash code according to all attributes.
320
329
  # @return [Integer] Hash code
321
330
  def hash
322
- [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, remote_was_deleted].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, field_mappings, modified_at, remote_data].hash
323
332
  end
324
333
 
325
334
  # Builds the object from hash