merge_ats_client 3.0.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +186 -179
  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/Attachment.md +8 -4
  13. data/docs/AttachmentRequest.md +1 -3
  14. data/docs/AttachmentsApi.md +13 -9
  15. data/docs/Candidate.md +8 -6
  16. data/docs/CandidateRequest.md +1 -9
  17. data/docs/CandidatesApi.md +16 -13
  18. data/docs/CommonModelScopesBodyRequest.md +22 -0
  19. data/docs/ConditionSchema.md +1 -1
  20. data/docs/DataPassthroughRequest.md +1 -1
  21. data/docs/Department.md +7 -3
  22. data/docs/DepartmentsApi.md +4 -4
  23. data/docs/EEOC.md +12 -8
  24. data/docs/EeocsApi.md +13 -9
  25. data/docs/EmailAddress.md +4 -2
  26. data/docs/EmailAddressRequest.md +1 -1
  27. data/docs/EnabledActionsEnum.md +15 -0
  28. data/docs/EndUserDetailsRequest.md +3 -1
  29. data/docs/ForceResyncApi.md +1 -1
  30. data/docs/InterviewsApi.md +165 -9
  31. data/docs/Issue.md +10 -8
  32. data/docs/IssuesApi.md +6 -6
  33. data/docs/Job.md +8 -4
  34. data/docs/JobInterviewStage.md +10 -4
  35. data/docs/JobInterviewStagesApi.md +4 -4
  36. data/docs/JobsApi.md +16 -10
  37. data/docs/LinkToken.md +1 -1
  38. data/docs/LinkedAccountsApi.md +2 -2
  39. data/docs/MetaResponse.md +2 -0
  40. data/docs/MultipartFormFieldRequest.md +1 -1
  41. data/docs/Offer.md +10 -6
  42. data/docs/OffersApi.md +13 -9
  43. data/docs/Office.md +7 -3
  44. data/docs/OfficesApi.md +4 -4
  45. data/docs/PaginatedConditionSchemaList.md +2 -2
  46. data/docs/PhoneNumber.md +4 -2
  47. data/docs/PhoneNumberRequest.md +1 -1
  48. data/docs/RejectReason.md +7 -3
  49. data/docs/RejectReasonsApi.md +4 -4
  50. data/docs/RemoteUser.md +8 -4
  51. data/docs/ScheduledInterview.md +11 -7
  52. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  53. data/docs/ScheduledInterviewRequest.md +36 -0
  54. data/docs/ScheduledInterviewResponse.md +24 -0
  55. data/docs/Scorecard.md +11 -7
  56. data/docs/ScorecardsApi.md +13 -9
  57. data/docs/SelectiveSyncApi.md +2 -2
  58. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  59. data/docs/SyncStatus.md +3 -1
  60. data/docs/SyncStatusApi.md +1 -1
  61. data/docs/Tag.md +7 -3
  62. data/docs/TagsApi.md +4 -4
  63. data/docs/Url.md +4 -2
  64. data/docs/UrlRequest.md +1 -1
  65. data/docs/UsersApi.md +13 -9
  66. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  67. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  68. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  69. data/lib/merge_ats_client/api/candidates_api.rb +15 -11
  70. data/lib/merge_ats_client/api/departments_api.rb +4 -4
  71. data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
  72. data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
  73. data/lib/merge_ats_client/api/interviews_api.rb +160 -8
  74. data/lib/merge_ats_client/api/issues_api.rb +6 -6
  75. data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
  76. data/lib/merge_ats_client/api/jobs_api.rb +27 -10
  77. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
  78. data/lib/merge_ats_client/api/offers_api.rb +22 -8
  79. data/lib/merge_ats_client/api/offices_api.rb +4 -4
  80. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
  81. data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
  82. data/lib/merge_ats_client/api/selective_sync_api.rb +2 -2
  83. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  84. data/lib/merge_ats_client/api/tags_api.rb +4 -4
  85. data/lib/merge_ats_client/api/users_api.rb +22 -8
  86. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  87. data/lib/merge_ats_client/models/activity.rb +50 -16
  88. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  89. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  90. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  91. data/lib/merge_ats_client/models/application.rb +40 -26
  92. data/lib/merge_ats_client/models/application_request.rb +7 -26
  93. data/lib/merge_ats_client/models/attachment.rb +38 -16
  94. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  95. data/lib/merge_ats_client/models/candidate.rb +36 -27
  96. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  97. data/lib/merge_ats_client/models/categories_enum.rb +3 -1
  98. data/lib/merge_ats_client/models/category_enum.rb +3 -1
  99. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  100. data/lib/merge_ats_client/models/condition_schema.rb +1 -0
  101. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  102. data/lib/merge_ats_client/models/department.rb +36 -14
  103. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  104. data/lib/merge_ats_client/models/email_address.rb +16 -6
  105. data/lib/merge_ats_client/models/email_address_request.rb +1 -1
  106. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  107. data/lib/merge_ats_client/models/end_user_details_request.rb +18 -5
  108. data/lib/merge_ats_client/models/issue.rb +16 -4
  109. data/lib/merge_ats_client/models/job.rb +38 -16
  110. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  111. data/lib/merge_ats_client/models/link_token.rb +0 -5
  112. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  113. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  114. data/lib/merge_ats_client/models/offer.rb +40 -16
  115. data/lib/merge_ats_client/models/office.rb +37 -15
  116. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  117. data/lib/merge_ats_client/models/phone_number_request.rb +1 -1
  118. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  119. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  120. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  121. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  122. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  123. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  124. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  125. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  126. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  127. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -1
  128. data/lib/merge_ats_client/models/tag.rb +36 -14
  129. data/lib/merge_ats_client/models/url.rb +16 -6
  130. data/lib/merge_ats_client/models/url_request.rb +1 -1
  131. data/lib/merge_ats_client/version.rb +1 -1
  132. data/lib/merge_ats_client.rb +9 -1
  133. data/spec/api/activities_api_spec.rb +31 -4
  134. data/spec/api/applications_api_spec.rb +2 -2
  135. data/spec/api/attachments_api_spec.rb +6 -4
  136. data/spec/api/candidates_api_spec.rb +5 -3
  137. data/spec/api/departments_api_spec.rb +2 -2
  138. data/spec/api/eeocs_api_spec.rb +6 -4
  139. data/spec/api/force_resync_api_spec.rb +1 -1
  140. data/spec/api/interviews_api_spec.rb +31 -4
  141. data/spec/api/issues_api_spec.rb +3 -3
  142. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  143. data/spec/api/jobs_api_spec.rb +8 -5
  144. data/spec/api/linked_accounts_api_spec.rb +1 -1
  145. data/spec/api/offers_api_spec.rb +6 -4
  146. data/spec/api/offices_api_spec.rb +2 -2
  147. data/spec/api/reject_reasons_api_spec.rb +2 -2
  148. data/spec/api/scorecards_api_spec.rb +6 -4
  149. data/spec/api/selective_sync_api_spec.rb +1 -1
  150. data/spec/api/sync_status_api_spec.rb +1 -1
  151. data/spec/api/tags_api_spec.rb +2 -2
  152. data/spec/api/users_api_spec.rb +6 -4
  153. data/spec/models/account_integration_spec.rb +12 -0
  154. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  155. data/spec/models/activity_request_spec.rb +76 -0
  156. data/spec/models/activity_response_spec.rb +52 -0
  157. data/spec/models/activity_spec.rb +19 -1
  158. data/spec/models/application_request_spec.rb +0 -12
  159. data/spec/models/application_spec.rb +9 -3
  160. data/spec/models/attachment_request_spec.rb +0 -6
  161. data/spec/models/attachment_spec.rb +14 -2
  162. data/spec/models/candidate_request_spec.rb +0 -24
  163. data/spec/models/candidate_spec.rb +9 -3
  164. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  165. data/spec/models/department_spec.rb +14 -2
  166. data/spec/models/eeoc_spec.rb +14 -2
  167. data/spec/models/email_address_spec.rb +6 -0
  168. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  169. data/spec/models/end_user_details_request_spec.rb +6 -0
  170. data/spec/models/issue_spec.rb +6 -0
  171. data/spec/models/job_interview_stage_spec.rb +19 -1
  172. data/spec/models/job_spec.rb +14 -2
  173. data/spec/models/meta_response_spec.rb +6 -0
  174. data/spec/models/offer_spec.rb +14 -2
  175. data/spec/models/office_spec.rb +14 -2
  176. data/spec/models/phone_number_spec.rb +6 -0
  177. data/spec/models/reject_reason_spec.rb +14 -2
  178. data/spec/models/remote_user_spec.rb +14 -2
  179. data/spec/models/{remote_data_request_spec.rb → scheduled_interview_endpoint_request_spec.rb} +8 -8
  180. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  181. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  182. data/spec/models/scheduled_interview_spec.rb +14 -2
  183. data/spec/models/scorecard_spec.rb +14 -2
  184. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  185. data/spec/models/sync_status_spec.rb +6 -0
  186. data/spec/models/tag_spec.rb +14 -2
  187. data/spec/models/url_spec.rb +6 -0
  188. metadata +156 -124
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The RejectReason Object ### Description The `RejectReason` object is used to represent a reason for rejecting an application. ### Usage Example Fetch from the `LIST RejectReasons` endpoint and filter by `ID` to show all reasons.
17
+ # # The RejectReason Object ### Description The `RejectReason` object is used to represent a reason for rejecting an application. These can typically be configured within an ATS system. ### Usage Example Fetch from the `LIST RejectReasons` endpoint and filter by `ID` to show all reasons.
18
18
  class RejectReason
19
19
  attr_accessor :id
20
20
 
@@ -24,19 +24,26 @@ module MergeATSClient
24
24
  # The rejection reason’s name.
25
25
  attr_accessor :name
26
26
 
27
- attr_accessor :remote_data
28
-
29
27
  # Indicates whether or not this object has been deleted by third party webhooks.
30
28
  attr_accessor :remote_was_deleted
31
29
 
30
+ attr_accessor :field_mappings
31
+
32
+ # This is the datetime that this object was last updated by Merge
33
+ attr_accessor :modified_at
34
+
35
+ attr_accessor :remote_data
36
+
32
37
  # Attribute mapping from ruby-style variable name to JSON key.
33
38
  def self.attribute_map
34
39
  {
35
40
  :'id' => :'id',
36
41
  :'remote_id' => :'remote_id',
37
42
  :'name' => :'name',
38
- :'remote_data' => :'remote_data',
39
- :'remote_was_deleted' => :'remote_was_deleted'
43
+ :'remote_was_deleted' => :'remote_was_deleted',
44
+ :'field_mappings' => :'field_mappings',
45
+ :'modified_at' => :'modified_at',
46
+ :'remote_data' => :'remote_data'
40
47
  }
41
48
  end
42
49
 
@@ -51,8 +58,10 @@ module MergeATSClient
51
58
  :'id' => :'String',
52
59
  :'remote_id' => :'String',
53
60
  :'name' => :'String',
54
- :'remote_data' => :'Array<RemoteData>',
55
- :'remote_was_deleted' => :'Boolean'
61
+ :'remote_was_deleted' => :'Boolean',
62
+ :'field_mappings' => :'Hash<String, Object>',
63
+ :'modified_at' => :'Time',
64
+ :'remote_data' => :'Array<RemoteData>'
56
65
  }
57
66
  end
58
67
 
@@ -61,7 +70,8 @@ module MergeATSClient
61
70
  Set.new([
62
71
  :'remote_id',
63
72
  :'name',
64
- :'remote_data',
73
+ :'field_mappings',
74
+ :'remote_data'
65
75
  ])
66
76
  end
67
77
 
@@ -92,15 +102,25 @@ module MergeATSClient
92
102
  self.name = attributes[:'name']
93
103
  end
94
104
 
105
+ if attributes.key?(:'remote_was_deleted')
106
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
107
+ end
108
+
109
+ if attributes.key?(:'field_mappings')
110
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
111
+ self.field_mappings = value
112
+ end
113
+ end
114
+
115
+ if attributes.key?(:'modified_at')
116
+ self.modified_at = attributes[:'modified_at']
117
+ end
118
+
95
119
  if attributes.key?(:'remote_data')
96
120
  if (value = attributes[:'remote_data']).is_a?(Array)
97
121
  self.remote_data = value
98
122
  end
99
123
  end
100
-
101
- if attributes.key?(:'remote_was_deleted')
102
- self.remote_was_deleted = attributes[:'remote_was_deleted']
103
- end
104
124
  end
105
125
 
106
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -124,8 +144,10 @@ module MergeATSClient
124
144
  id == o.id &&
125
145
  remote_id == o.remote_id &&
126
146
  name == o.name &&
127
- remote_data == o.remote_data &&
128
- remote_was_deleted == o.remote_was_deleted
147
+ remote_was_deleted == o.remote_was_deleted &&
148
+ field_mappings == o.field_mappings &&
149
+ modified_at == o.modified_at &&
150
+ remote_data == o.remote_data
129
151
  end
130
152
 
131
153
  # @see the `==` method
@@ -137,7 +159,7 @@ module MergeATSClient
137
159
  # Calculates hash code according to all attributes.
138
160
  # @return [Integer] Hash code
139
161
  def hash
140
- [id, remote_id, name, remote_data, remote_was_deleted].hash
162
+ [id, remote_id, name, remote_was_deleted, field_mappings, modified_at, remote_data].hash
141
163
  end
142
164
 
143
165
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The RemoteUser Object ### Description The `RemoteUser` object is used to represent a third party user. ### Usage Example Fetch from the `LIST RemoteUsers` endpoint to show all users for a third party.
17
+ # # The RemoteUser Object ### Description The `RemoteUser` object is used to represent a user with a login to the ATS system. ### Usage Example Fetch from the `LIST RemoteUsers` endpoint to show all users for a third party.
18
18
  class RemoteUser
19
19
  attr_accessor :id
20
20
 
@@ -36,14 +36,19 @@ module MergeATSClient
36
36
  # When the third party's user was created.
37
37
  attr_accessor :remote_created_at
38
38
 
39
- # The user's role.
39
+ # The user's role. * `SUPER_ADMIN` - SUPER_ADMIN * `ADMIN` - ADMIN * `TEAM_MEMBER` - TEAM_MEMBER * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER * `INTERVIEWER` - INTERVIEWER
40
40
  attr_accessor :access_role
41
41
 
42
- attr_accessor :remote_data
43
-
44
42
  # Indicates whether or not this object has been deleted by third party webhooks.
45
43
  attr_accessor :remote_was_deleted
46
44
 
45
+ attr_accessor :field_mappings
46
+
47
+ # This is the datetime that this object was last updated by Merge
48
+ attr_accessor :modified_at
49
+
50
+ attr_accessor :remote_data
51
+
47
52
  # Attribute mapping from ruby-style variable name to JSON key.
48
53
  def self.attribute_map
49
54
  {
@@ -55,8 +60,10 @@ module MergeATSClient
55
60
  :'disabled' => :'disabled',
56
61
  :'remote_created_at' => :'remote_created_at',
57
62
  :'access_role' => :'access_role',
58
- :'remote_data' => :'remote_data',
59
- :'remote_was_deleted' => :'remote_was_deleted'
63
+ :'remote_was_deleted' => :'remote_was_deleted',
64
+ :'field_mappings' => :'field_mappings',
65
+ :'modified_at' => :'modified_at',
66
+ :'remote_data' => :'remote_data'
60
67
  }
61
68
  end
62
69
 
@@ -76,8 +83,10 @@ module MergeATSClient
76
83
  :'disabled' => :'Boolean',
77
84
  :'remote_created_at' => :'Time',
78
85
  :'access_role' => :'AccessRoleEnum',
79
- :'remote_data' => :'Array<RemoteData>',
80
- :'remote_was_deleted' => :'Boolean'
86
+ :'remote_was_deleted' => :'Boolean',
87
+ :'field_mappings' => :'Hash<String, Object>',
88
+ :'modified_at' => :'Time',
89
+ :'remote_data' => :'Array<RemoteData>'
81
90
  }
82
91
  end
83
92
 
@@ -91,7 +100,8 @@ module MergeATSClient
91
100
  :'disabled',
92
101
  :'remote_created_at',
93
102
  :'access_role',
94
- :'remote_data',
103
+ :'field_mappings',
104
+ :'remote_data'
95
105
  ])
96
106
  end
97
107
 
@@ -142,15 +152,25 @@ module MergeATSClient
142
152
  self.access_role = attributes[:'access_role']
143
153
  end
144
154
 
155
+ if attributes.key?(:'remote_was_deleted')
156
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
157
+ end
158
+
159
+ if attributes.key?(:'field_mappings')
160
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
161
+ self.field_mappings = value
162
+ end
163
+ end
164
+
165
+ if attributes.key?(:'modified_at')
166
+ self.modified_at = attributes[:'modified_at']
167
+ end
168
+
145
169
  if attributes.key?(:'remote_data')
146
170
  if (value = attributes[:'remote_data']).is_a?(Array)
147
171
  self.remote_data = value
148
172
  end
149
173
  end
150
-
151
- if attributes.key?(:'remote_was_deleted')
152
- self.remote_was_deleted = attributes[:'remote_was_deleted']
153
- end
154
174
  end
155
175
 
156
176
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -194,8 +214,10 @@ module MergeATSClient
194
214
  disabled == o.disabled &&
195
215
  remote_created_at == o.remote_created_at &&
196
216
  access_role == o.access_role &&
197
- remote_data == o.remote_data &&
198
- remote_was_deleted == o.remote_was_deleted
217
+ remote_was_deleted == o.remote_was_deleted &&
218
+ field_mappings == o.field_mappings &&
219
+ modified_at == o.modified_at &&
220
+ remote_data == o.remote_data
199
221
  end
200
222
 
201
223
  # @see the `==` method
@@ -207,7 +229,7 @@ module MergeATSClient
207
229
  # Calculates hash code according to all attributes.
208
230
  # @return [Integer] Hash code
209
231
  def hash
210
- [id, remote_id, first_name, last_name, email, disabled, remote_created_at, access_role, remote_data, remote_was_deleted].hash
232
+ [id, remote_id, first_name, last_name, email, disabled, remote_created_at, access_role, remote_was_deleted, field_mappings, modified_at, remote_data].hash
211
233
  end
212
234
 
213
235
  # Builds the object from hash
@@ -14,17 +14,20 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The ScheduledInterview Object ### Description The `ScheduledInterview` object is used to represent an interview. ### Usage Example Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations.
17
+ # # The ScheduledInterview Object ### Description The `ScheduledInterview` object is used to represent a scheduled interview for a given candidate’s application to a job. An `Application` can have multiple `ScheduledInterview`s depending on the particular hiring process. ### Usage Example Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations.
18
18
  class ScheduledInterview
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 application being interviewed.
24
25
  attr_accessor :application
25
26
 
27
+ # The stage of the interview.
26
28
  attr_accessor :job_interview_stage
27
29
 
30
+ # The user organizing the interview.
28
31
  attr_accessor :organizer
29
32
 
30
33
  # Array of `RemoteUser` IDs.
@@ -45,14 +48,19 @@ module MergeATSClient
45
48
  # When the third party's interview was updated.
46
49
  attr_accessor :remote_updated_at
47
50
 
48
- # The interview's status.
51
+ # The interview's status. * `SCHEDULED` - SCHEDULED * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK * `COMPLETE` - COMPLETE
49
52
  attr_accessor :status
50
53
 
51
- attr_accessor :remote_data
52
-
53
54
  # Indicates whether or not this object has been deleted by third party webhooks.
54
55
  attr_accessor :remote_was_deleted
55
56
 
57
+ attr_accessor :field_mappings
58
+
59
+ # This is the datetime that this object was last updated by Merge
60
+ attr_accessor :modified_at
61
+
62
+ attr_accessor :remote_data
63
+
56
64
  # Attribute mapping from ruby-style variable name to JSON key.
57
65
  def self.attribute_map
58
66
  {
@@ -68,8 +76,10 @@ module MergeATSClient
68
76
  :'remote_created_at' => :'remote_created_at',
69
77
  :'remote_updated_at' => :'remote_updated_at',
70
78
  :'status' => :'status',
71
- :'remote_data' => :'remote_data',
72
- :'remote_was_deleted' => :'remote_was_deleted'
79
+ :'remote_was_deleted' => :'remote_was_deleted',
80
+ :'field_mappings' => :'field_mappings',
81
+ :'modified_at' => :'modified_at',
82
+ :'remote_data' => :'remote_data'
73
83
  }
74
84
  end
75
85
 
@@ -93,8 +103,10 @@ module MergeATSClient
93
103
  :'remote_created_at' => :'Time',
94
104
  :'remote_updated_at' => :'Time',
95
105
  :'status' => :'ScheduledInterviewStatusEnum',
96
- :'remote_data' => :'Array<RemoteData>',
97
- :'remote_was_deleted' => :'Boolean'
106
+ :'remote_was_deleted' => :'Boolean',
107
+ :'field_mappings' => :'Hash<String, Object>',
108
+ :'modified_at' => :'Time',
109
+ :'remote_data' => :'Array<RemoteData>'
98
110
  }
99
111
  end
100
112
 
@@ -111,7 +123,8 @@ module MergeATSClient
111
123
  :'remote_created_at',
112
124
  :'remote_updated_at',
113
125
  :'status',
114
- :'remote_data',
126
+ :'field_mappings',
127
+ :'remote_data'
115
128
  ])
116
129
  end
117
130
 
@@ -180,15 +193,25 @@ module MergeATSClient
180
193
  self.status = attributes[:'status']
181
194
  end
182
195
 
196
+ if attributes.key?(:'remote_was_deleted')
197
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
198
+ end
199
+
200
+ if attributes.key?(:'field_mappings')
201
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
202
+ self.field_mappings = value
203
+ end
204
+ end
205
+
206
+ if attributes.key?(:'modified_at')
207
+ self.modified_at = attributes[:'modified_at']
208
+ end
209
+
183
210
  if attributes.key?(:'remote_data')
184
211
  if (value = attributes[:'remote_data']).is_a?(Array)
185
212
  self.remote_data = value
186
213
  end
187
214
  end
188
-
189
- if attributes.key?(:'remote_was_deleted')
190
- self.remote_was_deleted = attributes[:'remote_was_deleted']
191
- end
192
215
  end
193
216
 
194
217
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -221,8 +244,10 @@ module MergeATSClient
221
244
  remote_created_at == o.remote_created_at &&
222
245
  remote_updated_at == o.remote_updated_at &&
223
246
  status == o.status &&
224
- remote_data == o.remote_data &&
225
- remote_was_deleted == o.remote_was_deleted
247
+ remote_was_deleted == o.remote_was_deleted &&
248
+ field_mappings == o.field_mappings &&
249
+ modified_at == o.modified_at &&
250
+ remote_data == o.remote_data
226
251
  end
227
252
 
228
253
  # @see the `==` method
@@ -234,7 +259,7 @@ module MergeATSClient
234
259
  # Calculates hash code according to all attributes.
235
260
  # @return [Integer] Hash code
236
261
  def hash
237
- [id, remote_id, application, job_interview_stage, organizer, interviewers, location, start_at, end_at, remote_created_at, remote_updated_at, status, remote_data, remote_was_deleted].hash
262
+ [id, remote_id, application, job_interview_stage, organizer, interviewers, location, start_at, end_at, remote_created_at, remote_updated_at, status, remote_was_deleted, field_mappings, modified_at, remote_data].hash
238
263
  end
239
264
 
240
265
  # Builds the object from hash
@@ -0,0 +1,237 @@
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 ScheduledInterviewEndpointRequest
18
+ attr_accessor :model
19
+
20
+ attr_accessor :remote_user_id
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'model' => :'model',
26
+ :'remote_user_id' => :'remote_user_id'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'model' => :'ScheduledInterviewRequest',
39
+ :'remote_user_id' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::ScheduledInterviewEndpointRequest` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::ScheduledInterviewEndpointRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'model')
65
+ self.model = attributes[:'model']
66
+ end
67
+
68
+ if attributes.key?(:'remote_user_id')
69
+ self.remote_user_id = attributes[:'remote_user_id']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ if @model.nil?
78
+ invalid_properties.push('invalid value for "model", model cannot be nil.')
79
+ end
80
+
81
+ if @remote_user_id.nil?
82
+ invalid_properties.push('invalid value for "remote_user_id", remote_user_id cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if @model.nil?
92
+ return false if @remote_user_id.nil?
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ model == o.model &&
102
+ remote_user_id == o.remote_user_id
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [model, remote_user_id].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
+ self.send("#{key}=", nil)
132
+ elsif type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :Time
153
+ Time.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ # models (e.g. Pet) or oneOf
184
+ klass = MergeATSClient.const_get(type)
185
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+
237
+ end