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
@@ -17,6 +17,8 @@ module MergeATSClient
17
17
  class MetaResponse
18
18
  attr_accessor :request_schema
19
19
 
20
+ attr_accessor :remote_field_classes
21
+
20
22
  attr_accessor :status
21
23
 
22
24
  attr_accessor :has_conditional_params
@@ -27,6 +29,7 @@ module MergeATSClient
27
29
  def self.attribute_map
28
30
  {
29
31
  :'request_schema' => :'request_schema',
32
+ :'remote_field_classes' => :'remote_field_classes',
30
33
  :'status' => :'status',
31
34
  :'has_conditional_params' => :'has_conditional_params',
32
35
  :'has_required_linked_account_params' => :'has_required_linked_account_params'
@@ -42,6 +45,7 @@ module MergeATSClient
42
45
  def self.openapi_types
43
46
  {
44
47
  :'request_schema' => :'Hash<String, Object>',
48
+ :'remote_field_classes' => :'Hash<String, Object>',
45
49
  :'status' => :'LinkedAccountStatus',
46
50
  :'has_conditional_params' => :'Boolean',
47
51
  :'has_required_linked_account_params' => :'Boolean'
@@ -75,6 +79,12 @@ module MergeATSClient
75
79
  end
76
80
  end
77
81
 
82
+ if attributes.key?(:'remote_field_classes')
83
+ if (value = attributes[:'remote_field_classes']).is_a?(Hash)
84
+ self.remote_field_classes = value
85
+ end
86
+ end
87
+
78
88
  if attributes.key?(:'status')
79
89
  self.status = attributes[:'status']
80
90
  end
@@ -122,6 +132,7 @@ module MergeATSClient
122
132
  return true if self.equal?(o)
123
133
  self.class == o.class &&
124
134
  request_schema == o.request_schema &&
135
+ remote_field_classes == o.remote_field_classes &&
125
136
  status == o.status &&
126
137
  has_conditional_params == o.has_conditional_params &&
127
138
  has_required_linked_account_params == o.has_required_linked_account_params
@@ -136,7 +147,7 @@ module MergeATSClient
136
147
  # Calculates hash code according to all attributes.
137
148
  # @return [Integer] Hash code
138
149
  def hash
139
- [request_schema, status, has_conditional_params, has_required_linked_account_params].hash
150
+ [request_schema, remote_field_classes, status, has_conditional_params, has_required_linked_account_params].hash
140
151
  end
141
152
 
142
153
  # Builds the object from hash
@@ -43,7 +43,7 @@ module MergeATSClient
43
43
  end
44
44
 
45
45
  def self.build_from_hash(value)
46
- IssueStatusEnum.new.build_from_hash(value)
46
+ MethodEnum.new.build_from_hash(value)
47
47
  end
48
48
  end
49
49
 
@@ -22,7 +22,7 @@ module MergeATSClient
22
22
  # The data for the form field.
23
23
  attr_accessor :data
24
24
 
25
- # The encoding of the value of `data`. Defaults to `RAW` if not defined.
25
+ # The encoding of the value of `data`. Defaults to `RAW` if not defined. * `RAW` - RAW * `BASE64` - BASE64 * `GZIP_BASE64` - GZIP_BASE64
26
26
  attr_accessor :encoding
27
27
 
28
28
  # The file name of the form field, if the field is for a file.
@@ -14,15 +14,17 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Offer Object ### Description The `Offer` object is used to represent an offer for an application. ### Usage Example Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers.
17
+ # # The Offer Object ### Description The `Offer` object is used to represent an offer for a candidate's application specific to a job. ### Usage Example Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers.
18
18
  class Offer
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 who is receiving the offer.
24
25
  attr_accessor :application
25
26
 
27
+ # The user who created the offer.
26
28
  attr_accessor :creator
27
29
 
28
30
  # When the third party's offer was created.
@@ -37,14 +39,19 @@ module MergeATSClient
37
39
  # The employment start date on the offer.
38
40
  attr_accessor :start_date
39
41
 
40
- # The offer's status.
42
+ # The offer's status. * `DRAFT` - DRAFT * `APPROVAL-SENT` - APPROVAL-SENT * `APPROVED` - APPROVED * `SENT` - SENT * `SENT-MANUALLY` - SENT-MANUALLY * `OPENED` - OPENED * `DENIED` - DENIED * `SIGNED` - SIGNED * `DEPRECATED` - DEPRECATED
41
43
  attr_accessor :status
42
44
 
43
- attr_accessor :remote_data
44
-
45
45
  # Indicates whether or not this object has been deleted by third party webhooks.
46
46
  attr_accessor :remote_was_deleted
47
47
 
48
+ attr_accessor :field_mappings
49
+
50
+ # This is the datetime that this object was last updated by Merge
51
+ attr_accessor :modified_at
52
+
53
+ attr_accessor :remote_data
54
+
48
55
  # Attribute mapping from ruby-style variable name to JSON key.
49
56
  def self.attribute_map
50
57
  {
@@ -57,8 +64,10 @@ module MergeATSClient
57
64
  :'sent_at' => :'sent_at',
58
65
  :'start_date' => :'start_date',
59
66
  :'status' => :'status',
60
- :'remote_data' => :'remote_data',
61
- :'remote_was_deleted' => :'remote_was_deleted'
67
+ :'remote_was_deleted' => :'remote_was_deleted',
68
+ :'field_mappings' => :'field_mappings',
69
+ :'modified_at' => :'modified_at',
70
+ :'remote_data' => :'remote_data'
62
71
  }
63
72
  end
64
73
 
@@ -79,8 +88,10 @@ module MergeATSClient
79
88
  :'sent_at' => :'Time',
80
89
  :'start_date' => :'Time',
81
90
  :'status' => :'OfferStatusEnum',
82
- :'remote_data' => :'Array<RemoteData>',
83
- :'remote_was_deleted' => :'Boolean'
91
+ :'remote_was_deleted' => :'Boolean',
92
+ :'field_mappings' => :'Hash<String, Object>',
93
+ :'modified_at' => :'Time',
94
+ :'remote_data' => :'Array<RemoteData>'
84
95
  }
85
96
  end
86
97
 
@@ -95,7 +106,8 @@ module MergeATSClient
95
106
  :'sent_at',
96
107
  :'start_date',
97
108
  :'status',
98
- :'remote_data',
109
+ :'field_mappings',
110
+ :'remote_data'
99
111
  ])
100
112
  end
101
113
 
@@ -150,15 +162,25 @@ module MergeATSClient
150
162
  self.status = attributes[:'status']
151
163
  end
152
164
 
165
+ if attributes.key?(:'remote_was_deleted')
166
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
167
+ end
168
+
169
+ if attributes.key?(:'field_mappings')
170
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
171
+ self.field_mappings = value
172
+ end
173
+ end
174
+
175
+ if attributes.key?(:'modified_at')
176
+ self.modified_at = attributes[:'modified_at']
177
+ end
178
+
153
179
  if attributes.key?(:'remote_data')
154
180
  if (value = attributes[:'remote_data']).is_a?(Array)
155
181
  self.remote_data = value
156
182
  end
157
183
  end
158
-
159
- if attributes.key?(:'remote_was_deleted')
160
- self.remote_was_deleted = attributes[:'remote_was_deleted']
161
- end
162
184
  end
163
185
 
164
186
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -188,8 +210,10 @@ module MergeATSClient
188
210
  sent_at == o.sent_at &&
189
211
  start_date == o.start_date &&
190
212
  status == o.status &&
191
- remote_data == o.remote_data &&
192
- remote_was_deleted == o.remote_was_deleted
213
+ remote_was_deleted == o.remote_was_deleted &&
214
+ field_mappings == o.field_mappings &&
215
+ modified_at == o.modified_at &&
216
+ remote_data == o.remote_data
193
217
  end
194
218
 
195
219
  # @see the `==` method
@@ -201,7 +225,7 @@ module MergeATSClient
201
225
  # Calculates hash code according to all attributes.
202
226
  # @return [Integer] Hash code
203
227
  def hash
204
- [id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status, remote_data, remote_was_deleted].hash
228
+ [id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status, remote_was_deleted, field_mappings, modified_at, remote_data].hash
205
229
  end
206
230
 
207
231
  # Builds the object from hash
@@ -45,7 +45,7 @@ module MergeATSClient
45
45
  end
46
46
 
47
47
  def self.build_from_hash(value)
48
- IssueStatusEnum.new.build_from_hash(value)
48
+ OfferStatusEnum.new.build_from_hash(value)
49
49
  end
50
50
  end
51
51
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Office Object ### Description The `Office` object is used to represent an office within a company. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
17
+ # # The Office Object ### Description The `Office` object is used to represent an office within a company. A given `Job` has the `Office` ID in its offices field. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
18
18
  class Office
19
19
  attr_accessor :id
20
20
 
@@ -27,11 +27,16 @@ module MergeATSClient
27
27
  # The office's location.
28
28
  attr_accessor :location
29
29
 
30
- attr_accessor :remote_data
31
-
32
30
  # Indicates whether or not this object has been deleted by third party webhooks.
33
31
  attr_accessor :remote_was_deleted
34
32
 
33
+ attr_accessor :field_mappings
34
+
35
+ # This is the datetime that this object was last updated by Merge
36
+ attr_accessor :modified_at
37
+
38
+ attr_accessor :remote_data
39
+
35
40
  # Attribute mapping from ruby-style variable name to JSON key.
36
41
  def self.attribute_map
37
42
  {
@@ -39,8 +44,10 @@ module MergeATSClient
39
44
  :'remote_id' => :'remote_id',
40
45
  :'name' => :'name',
41
46
  :'location' => :'location',
42
- :'remote_data' => :'remote_data',
43
- :'remote_was_deleted' => :'remote_was_deleted'
47
+ :'remote_was_deleted' => :'remote_was_deleted',
48
+ :'field_mappings' => :'field_mappings',
49
+ :'modified_at' => :'modified_at',
50
+ :'remote_data' => :'remote_data'
44
51
  }
45
52
  end
46
53
 
@@ -56,8 +63,10 @@ module MergeATSClient
56
63
  :'remote_id' => :'String',
57
64
  :'name' => :'String',
58
65
  :'location' => :'String',
59
- :'remote_data' => :'Array<RemoteData>',
60
- :'remote_was_deleted' => :'Boolean'
66
+ :'remote_was_deleted' => :'Boolean',
67
+ :'field_mappings' => :'Hash<String, Object>',
68
+ :'modified_at' => :'Time',
69
+ :'remote_data' => :'Array<RemoteData>'
61
70
  }
62
71
  end
63
72
 
@@ -67,7 +76,8 @@ module MergeATSClient
67
76
  :'remote_id',
68
77
  :'name',
69
78
  :'location',
70
- :'remote_data',
79
+ :'field_mappings',
80
+ :'remote_data'
71
81
  ])
72
82
  end
73
83
 
@@ -102,15 +112,25 @@ module MergeATSClient
102
112
  self.location = attributes[:'location']
103
113
  end
104
114
 
115
+ if attributes.key?(:'remote_was_deleted')
116
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
117
+ end
118
+
119
+ if attributes.key?(:'field_mappings')
120
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
121
+ self.field_mappings = value
122
+ end
123
+ end
124
+
125
+ if attributes.key?(:'modified_at')
126
+ self.modified_at = attributes[:'modified_at']
127
+ end
128
+
105
129
  if attributes.key?(:'remote_data')
106
130
  if (value = attributes[:'remote_data']).is_a?(Array)
107
131
  self.remote_data = value
108
132
  end
109
133
  end
110
-
111
- if attributes.key?(:'remote_was_deleted')
112
- self.remote_was_deleted = attributes[:'remote_was_deleted']
113
- end
114
134
  end
115
135
 
116
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -135,8 +155,10 @@ module MergeATSClient
135
155
  remote_id == o.remote_id &&
136
156
  name == o.name &&
137
157
  location == o.location &&
138
- remote_data == o.remote_data &&
139
- remote_was_deleted == o.remote_was_deleted
158
+ remote_was_deleted == o.remote_was_deleted &&
159
+ field_mappings == o.field_mappings &&
160
+ modified_at == o.modified_at &&
161
+ remote_data == o.remote_data
140
162
  end
141
163
 
142
164
  # @see the `==` method
@@ -148,7 +170,7 @@ module MergeATSClient
148
170
  # Calculates hash code according to all attributes.
149
171
  # @return [Integer] Hash code
150
172
  def hash
151
- [id, remote_id, name, location, remote_data, remote_was_deleted].hash
173
+ [id, remote_id, name, location, remote_was_deleted, field_mappings, modified_at, remote_data].hash
152
174
  end
153
175
 
154
176
  # Builds the object from hash
@@ -0,0 +1,229 @@
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 OperatorSchema
18
+ # The operator for which an operator schema is defined.
19
+ attr_accessor :operator
20
+
21
+ # Whether the operator can be repeated multiple times.
22
+ attr_accessor :is_unique
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'operator' => :'operator',
28
+ :'is_unique' => :'is_unique'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'operator' => :'String',
41
+ :'is_unique' => :'Boolean'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::OperatorSchema` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::OperatorSchema`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'operator')
67
+ self.operator = attributes[:'operator']
68
+ end
69
+
70
+ if attributes.key?(:'is_unique')
71
+ self.is_unique = attributes[:'is_unique']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ operator == o.operator &&
94
+ is_unique == o.is_unique
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [operator, is_unique].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.openapi_types.each_pair do |key, type|
122
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
123
+ self.send("#{key}=", nil)
124
+ elsif type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :Time
145
+ Time.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ # models (e.g. Pet) or oneOf
176
+ klass = MergeATSClient.const_get(type)
177
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -41,7 +41,7 @@ module MergeATSClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ OverallRecommendationEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47