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
@@ -14,35 +14,41 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The EEOC Object ### Description The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate. ### Usage Example Fetch from the `LIST EEOCs` endpoint and filter by `candidate` to show all EEOC information for a candidate.
17
+ # # The EEOC Object ### Description The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate (race, gender, veteran status, disability status). ### Usage Example Fetch from the `LIST EEOCs` endpoint and filter by `candidate` to show all EEOC information for a candidate.
18
18
  class EEOC
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 being represented.
24
25
  attr_accessor :candidate
25
26
 
26
27
  # When the information was submitted.
27
28
  attr_accessor :submitted_at
28
29
 
29
- # The candidate's race.
30
+ # The candidate's race. * `AMERICAN_INDIAN_OR_ALASKAN_NATIVE` - AMERICAN_INDIAN_OR_ALASKAN_NATIVE * `ASIAN` - ASIAN * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO * `WHITE` - WHITE * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY
30
31
  attr_accessor :race
31
32
 
32
- # The candidate's gender.
33
+ # The candidate's gender. * `MALE` - MALE * `FEMALE` - FEMALE * `NON-BINARY` - NON-BINARY * `OTHER` - OTHER * `DECLINE_TO_SELF_IDENTIFY` - DECLINE_TO_SELF_IDENTIFY
33
34
  attr_accessor :gender
34
35
 
35
- # The candidate's veteran status.
36
+ # The candidate's veteran status. * `I_AM_NOT_A_PROTECTED_VETERAN` - I_AM_NOT_A_PROTECTED_VETERAN * `I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN` - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER
36
37
  attr_accessor :veteran_status
37
38
 
38
- # The candidate's disability status.
39
+ # The candidate's disability status. * `YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY` - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY * `NO_I_DONT_HAVE_A_DISABILITY` - NO_I_DONT_HAVE_A_DISABILITY * `I_DONT_WISH_TO_ANSWER` - I_DONT_WISH_TO_ANSWER
39
40
  attr_accessor :disability_status
40
41
 
41
- attr_accessor :remote_data
42
-
43
42
  # Indicates whether or not this object has been deleted by third party webhooks.
44
43
  attr_accessor :remote_was_deleted
45
44
 
45
+ # This is the datetime that this object was last updated by Merge
46
+ attr_accessor :modified_at
47
+
48
+ attr_accessor :field_mappings
49
+
50
+ attr_accessor :remote_data
51
+
46
52
  # Attribute mapping from ruby-style variable name to JSON key.
47
53
  def self.attribute_map
48
54
  {
@@ -54,8 +60,10 @@ module MergeATSClient
54
60
  :'gender' => :'gender',
55
61
  :'veteran_status' => :'veteran_status',
56
62
  :'disability_status' => :'disability_status',
57
- :'remote_data' => :'remote_data',
58
- :'remote_was_deleted' => :'remote_was_deleted'
63
+ :'remote_was_deleted' => :'remote_was_deleted',
64
+ :'modified_at' => :'modified_at',
65
+ :'field_mappings' => :'field_mappings',
66
+ :'remote_data' => :'remote_data'
59
67
  }
60
68
  end
61
69
 
@@ -75,8 +83,10 @@ module MergeATSClient
75
83
  :'gender' => :'GenderEnum',
76
84
  :'veteran_status' => :'VeteranStatusEnum',
77
85
  :'disability_status' => :'DisabilityStatusEnum',
78
- :'remote_data' => :'Array<RemoteData>',
79
- :'remote_was_deleted' => :'Boolean'
86
+ :'remote_was_deleted' => :'Boolean',
87
+ :'modified_at' => :'Time',
88
+ :'field_mappings' => :'Hash<String, Object>',
89
+ :'remote_data' => :'Array<RemoteData>'
80
90
  }
81
91
  end
82
92
 
@@ -90,7 +100,8 @@ module MergeATSClient
90
100
  :'gender',
91
101
  :'veteran_status',
92
102
  :'disability_status',
93
- :'remote_data',
103
+ :'field_mappings',
104
+ :'remote_data'
94
105
  ])
95
106
  end
96
107
 
@@ -141,15 +152,25 @@ module MergeATSClient
141
152
  self.disability_status = attributes[:'disability_status']
142
153
  end
143
154
 
155
+ if attributes.key?(:'remote_was_deleted')
156
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
157
+ end
158
+
159
+ if attributes.key?(:'modified_at')
160
+ self.modified_at = attributes[:'modified_at']
161
+ end
162
+
163
+ if attributes.key?(:'field_mappings')
164
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
165
+ self.field_mappings = value
166
+ end
167
+ end
168
+
144
169
  if attributes.key?(:'remote_data')
145
170
  if (value = attributes[:'remote_data']).is_a?(Array)
146
171
  self.remote_data = value
147
172
  end
148
173
  end
149
-
150
- if attributes.key?(:'remote_was_deleted')
151
- self.remote_was_deleted = attributes[:'remote_was_deleted']
152
- end
153
174
  end
154
175
 
155
176
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -178,8 +199,10 @@ module MergeATSClient
178
199
  gender == o.gender &&
179
200
  veteran_status == o.veteran_status &&
180
201
  disability_status == o.disability_status &&
181
- remote_data == o.remote_data &&
182
- remote_was_deleted == o.remote_was_deleted
202
+ remote_was_deleted == o.remote_was_deleted &&
203
+ modified_at == o.modified_at &&
204
+ field_mappings == o.field_mappings &&
205
+ remote_data == o.remote_data
183
206
  end
184
207
 
185
208
  # @see the `==` method
@@ -191,7 +214,7 @@ module MergeATSClient
191
214
  # Calculates hash code according to all attributes.
192
215
  # @return [Integer] Hash code
193
216
  def hash
194
- [id, remote_id, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_data, remote_was_deleted].hash
217
+ [id, remote_id, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_was_deleted, modified_at, field_mappings, remote_data].hash
195
218
  end
196
219
 
197
220
  # Builds the object from hash
@@ -19,14 +19,18 @@ module MergeATSClient
19
19
  # The email address.
20
20
  attr_accessor :value
21
21
 
22
- # The type of email address.
22
+ # The type of email address. * `PERSONAL` - PERSONAL * `WORK` - WORK * `OTHER` - OTHER
23
23
  attr_accessor :email_address_type
24
24
 
25
+ # This is the datetime that this object was last updated by Merge
26
+ attr_accessor :modified_at
27
+
25
28
  # Attribute mapping from ruby-style variable name to JSON key.
26
29
  def self.attribute_map
27
30
  {
28
31
  :'value' => :'value',
29
- :'email_address_type' => :'email_address_type'
32
+ :'email_address_type' => :'email_address_type',
33
+ :'modified_at' => :'modified_at'
30
34
  }
31
35
  end
32
36
 
@@ -39,7 +43,8 @@ module MergeATSClient
39
43
  def self.openapi_types
40
44
  {
41
45
  :'value' => :'String',
42
- :'email_address_type' => :'EmailAddressTypeEnum'
46
+ :'email_address_type' => :'EmailAddressTypeEnum',
47
+ :'modified_at' => :'Time'
43
48
  }
44
49
  end
45
50
 
@@ -47,7 +52,7 @@ module MergeATSClient
47
52
  def self.openapi_nullable
48
53
  Set.new([
49
54
  :'value',
50
- :'email_address_type'
55
+ :'email_address_type',
51
56
  ])
52
57
  end
53
58
 
@@ -73,6 +78,10 @@ module MergeATSClient
73
78
  if attributes.key?(:'email_address_type')
74
79
  self.email_address_type = attributes[:'email_address_type']
75
80
  end
81
+
82
+ if attributes.key?(:'modified_at')
83
+ self.modified_at = attributes[:'modified_at']
84
+ end
76
85
  end
77
86
 
78
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -109,7 +118,8 @@ module MergeATSClient
109
118
  return true if self.equal?(o)
110
119
  self.class == o.class &&
111
120
  value == o.value &&
112
- email_address_type == o.email_address_type
121
+ email_address_type == o.email_address_type &&
122
+ modified_at == o.modified_at
113
123
  end
114
124
 
115
125
  # @see the `==` method
@@ -121,7 +131,7 @@ module MergeATSClient
121
131
  # Calculates hash code according to all attributes.
122
132
  # @return [Integer] Hash code
123
133
  def hash
124
- [value, email_address_type].hash
134
+ [value, email_address_type, modified_at].hash
125
135
  end
126
136
 
127
137
  # Builds the object from hash
@@ -19,7 +19,7 @@ module MergeATSClient
19
19
  # The email address.
20
20
  attr_accessor :value
21
21
 
22
- # The type of email address.
22
+ # The type of email address. * `PERSONAL` - PERSONAL * `WORK` - WORK * `OTHER` - OTHER
23
23
  attr_accessor :email_address_type
24
24
 
25
25
  attr_accessor :integration_params
@@ -0,0 +1,45 @@
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 EnabledActionsEnum
18
+ READ = "READ".freeze
19
+ WRITE = "WRITE".freeze
20
+
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def build_from_hash(value)
30
+ @raw_value = value
31
+ if ["READ", "WRITE", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ EnabledActionsEnum.new.build_from_hash(value)
42
+ end
43
+ end
44
+
45
+ end
@@ -33,9 +33,12 @@ module MergeATSClient
33
33
  # An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
34
34
  attr_accessor :link_expiry_mins
35
35
 
36
- # Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/product/integrations,-fast.-say-hello-to-magic-link/.
36
+ # Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
37
37
  attr_accessor :should_create_magic_link_url
38
38
 
39
+ # An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
40
+ attr_accessor :common_models
41
+
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
@@ -45,7 +48,8 @@ module MergeATSClient
45
48
  :'categories' => :'categories',
46
49
  :'integration' => :'integration',
47
50
  :'link_expiry_mins' => :'link_expiry_mins',
48
- :'should_create_magic_link_url' => :'should_create_magic_link_url'
51
+ :'should_create_magic_link_url' => :'should_create_magic_link_url',
52
+ :'common_models' => :'common_models'
49
53
  }
50
54
  end
51
55
 
@@ -63,7 +67,8 @@ module MergeATSClient
63
67
  :'categories' => :'Array<CategoriesEnum>',
64
68
  :'integration' => :'String',
65
69
  :'link_expiry_mins' => :'Integer',
66
- :'should_create_magic_link_url' => :'Boolean'
70
+ :'should_create_magic_link_url' => :'Boolean',
71
+ :'common_models' => :'Array<CommonModelScopesBodyRequest>'
67
72
  }
68
73
  end
69
74
 
@@ -71,7 +76,8 @@ module MergeATSClient
71
76
  def self.openapi_nullable
72
77
  Set.new([
73
78
  :'integration',
74
- :'should_create_magic_link_url'
79
+ :'should_create_magic_link_url',
80
+ :'common_models'
75
81
  ])
76
82
  end
77
83
 
@@ -123,6 +129,12 @@ module MergeATSClient
123
129
  else
124
130
  self.should_create_magic_link_url = false
125
131
  end
132
+
133
+ if attributes.key?(:'common_models')
134
+ if (value = attributes[:'common_models']).is_a?(Array)
135
+ self.common_models = value
136
+ end
137
+ end
126
138
  end
127
139
 
128
140
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -292,7 +304,8 @@ module MergeATSClient
292
304
  categories == o.categories &&
293
305
  integration == o.integration &&
294
306
  link_expiry_mins == o.link_expiry_mins &&
295
- should_create_magic_link_url == o.should_create_magic_link_url
307
+ should_create_magic_link_url == o.should_create_magic_link_url &&
308
+ common_models == o.common_models
296
309
  end
297
310
 
298
311
  # @see the `==` method
@@ -304,7 +317,7 @@ module MergeATSClient
304
317
  # Calculates hash code according to all attributes.
305
318
  # @return [Integer] Hash code
306
319
  def hash
307
- [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url].hash
320
+ [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url, common_models].hash
308
321
  end
309
322
 
310
323
  # Builds the object from hash
@@ -17,6 +17,7 @@ module MergeATSClient
17
17
  class Issue
18
18
  attr_accessor :id
19
19
 
20
+ # Status of the issue. Options: ('ONGOING', 'RESOLVED') * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED
20
21
  attr_accessor :status
21
22
 
22
23
  attr_accessor :error_description
@@ -29,6 +30,8 @@ module MergeATSClient
29
30
 
30
31
  attr_accessor :is_muted
31
32
 
33
+ attr_accessor :error_details
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -38,7 +41,8 @@ module MergeATSClient
38
41
  :'end_user' => :'end_user',
39
42
  :'first_incident_time' => :'first_incident_time',
40
43
  :'last_incident_time' => :'last_incident_time',
41
- :'is_muted' => :'is_muted'
44
+ :'is_muted' => :'is_muted',
45
+ :'error_details' => :'error_details'
42
46
  }
43
47
  end
44
48
 
@@ -56,7 +60,8 @@ module MergeATSClient
56
60
  :'end_user' => :'Hash<String, Object>',
57
61
  :'first_incident_time' => :'Time',
58
62
  :'last_incident_time' => :'Time',
59
- :'is_muted' => :'Boolean'
63
+ :'is_muted' => :'Boolean',
64
+ :'error_details' => :'Array<String>'
60
65
  }
61
66
  end
62
67
 
@@ -112,6 +117,12 @@ module MergeATSClient
112
117
  if attributes.key?(:'is_muted')
113
118
  self.is_muted = attributes[:'is_muted']
114
119
  end
120
+
121
+ if attributes.key?(:'error_details')
122
+ if (value = attributes[:'error_details']).is_a?(Array)
123
+ self.error_details = value
124
+ end
125
+ end
115
126
  end
116
127
 
117
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -143,7 +154,8 @@ module MergeATSClient
143
154
  end_user == o.end_user &&
144
155
  first_incident_time == o.first_incident_time &&
145
156
  last_incident_time == o.last_incident_time &&
146
- is_muted == o.is_muted
157
+ is_muted == o.is_muted &&
158
+ error_details == o.error_details
147
159
  end
148
160
 
149
161
  # @see the `==` method
@@ -155,7 +167,7 @@ module MergeATSClient
155
167
  # Calculates hash code according to all attributes.
156
168
  # @return [Integer] Hash code
157
169
  def hash
158
- [id, status, error_description, end_user, first_incident_time, last_incident_time, is_muted].hash
170
+ [id, status, error_description, end_user, first_incident_time, last_incident_time, is_muted, error_details].hash
159
171
  end
160
172
 
161
173
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Job Object ### Description The `Job` object is used to represent a Job offering at a company. ### Usage Example Fetch from the `LIST Jobs` endpoint to show all job postings.
17
+ # # The Job Object ### Description The `Job` object can be used to track any jobs that are currently or will be open/closed for applications. ### Usage Example Fetch from the `LIST Jobs` endpoint to show all job postings.
18
18
  class Job
19
19
  attr_accessor :id
20
20
 
@@ -30,7 +30,7 @@ module MergeATSClient
30
30
  # The job's code. Typically an additional identifier used to reference the particular job that is displayed on the ATS.
31
31
  attr_accessor :code
32
32
 
33
- # The job's status.
33
+ # The job's status. * `OPEN` - OPEN * `CLOSED` - CLOSED * `DRAFT` - DRAFT * `ARCHIVED` - ARCHIVED * `PENDING` - PENDING
34
34
  attr_accessor :status
35
35
 
36
36
  attr_accessor :job_posting_urls
@@ -56,11 +56,16 @@ module MergeATSClient
56
56
  # IDs of `RemoteUser` objects that serve as recruiters for this `Job`.
57
57
  attr_accessor :recruiters
58
58
 
59
- attr_accessor :remote_data
60
-
61
59
  # Indicates whether or not this object has been deleted by third party webhooks.
62
60
  attr_accessor :remote_was_deleted
63
61
 
62
+ # This is the datetime that this object was last updated by Merge
63
+ attr_accessor :modified_at
64
+
65
+ attr_accessor :field_mappings
66
+
67
+ attr_accessor :remote_data
68
+
64
69
  # Attribute mapping from ruby-style variable name to JSON key.
65
70
  def self.attribute_map
66
71
  {
@@ -78,8 +83,10 @@ module MergeATSClient
78
83
  :'offices' => :'offices',
79
84
  :'hiring_managers' => :'hiring_managers',
80
85
  :'recruiters' => :'recruiters',
81
- :'remote_data' => :'remote_data',
82
- :'remote_was_deleted' => :'remote_was_deleted'
86
+ :'remote_was_deleted' => :'remote_was_deleted',
87
+ :'modified_at' => :'modified_at',
88
+ :'field_mappings' => :'field_mappings',
89
+ :'remote_data' => :'remote_data'
83
90
  }
84
91
  end
85
92
 
@@ -105,8 +112,10 @@ module MergeATSClient
105
112
  :'offices' => :'Array<String>',
106
113
  :'hiring_managers' => :'Array<String>',
107
114
  :'recruiters' => :'Array<String>',
108
- :'remote_data' => :'Array<RemoteData>',
109
- :'remote_was_deleted' => :'Boolean'
115
+ :'remote_was_deleted' => :'Boolean',
116
+ :'modified_at' => :'Time',
117
+ :'field_mappings' => :'Hash<String, Object>',
118
+ :'remote_data' => :'Array<RemoteData>'
110
119
  }
111
120
  end
112
121
 
@@ -121,7 +130,8 @@ module MergeATSClient
121
130
  :'remote_created_at',
122
131
  :'remote_updated_at',
123
132
  :'confidential',
124
- :'remote_data',
133
+ :'field_mappings',
134
+ :'remote_data'
125
135
  ])
126
136
  end
127
137
 
@@ -206,15 +216,25 @@ module MergeATSClient
206
216
  end
207
217
  end
208
218
 
219
+ if attributes.key?(:'remote_was_deleted')
220
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
221
+ end
222
+
223
+ if attributes.key?(:'modified_at')
224
+ self.modified_at = attributes[:'modified_at']
225
+ end
226
+
227
+ if attributes.key?(:'field_mappings')
228
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
229
+ self.field_mappings = value
230
+ end
231
+ end
232
+
209
233
  if attributes.key?(:'remote_data')
210
234
  if (value = attributes[:'remote_data']).is_a?(Array)
211
235
  self.remote_data = value
212
236
  end
213
237
  end
214
-
215
- if attributes.key?(:'remote_was_deleted')
216
- self.remote_was_deleted = attributes[:'remote_was_deleted']
217
- end
218
238
  end
219
239
 
220
240
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -249,8 +269,10 @@ module MergeATSClient
249
269
  offices == o.offices &&
250
270
  hiring_managers == o.hiring_managers &&
251
271
  recruiters == o.recruiters &&
252
- remote_data == o.remote_data &&
253
- remote_was_deleted == o.remote_was_deleted
272
+ remote_was_deleted == o.remote_was_deleted &&
273
+ modified_at == o.modified_at &&
274
+ field_mappings == o.field_mappings &&
275
+ remote_data == o.remote_data
254
276
  end
255
277
 
256
278
  # @see the `==` method
@@ -262,7 +284,7 @@ module MergeATSClient
262
284
  # Calculates hash code according to all attributes.
263
285
  # @return [Integer] Hash code
264
286
  def hash
265
- [id, remote_id, name, description, code, status, job_posting_urls, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_data, remote_was_deleted].hash
287
+ [id, remote_id, name, description, code, status, job_posting_urls, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_was_deleted, modified_at, field_mappings, remote_data].hash
266
288
  end
267
289
 
268
290
  # Builds the object from hash