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
@@ -30,11 +30,12 @@ module MergeATSClient
30
30
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
31
31
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
32
32
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
33
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
34
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
33
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
34
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
35
35
  # @option opts [Integer] :page_size Number of results to return per page.
36
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
36
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
37
37
  # @option opts [String] :remote_id The API provider's ID for the given object.
38
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
38
39
  # @return [PaginatedOfferList]
39
40
  def offers_list(x_account_token, opts = {})
40
41
  data, _status_code, _headers = offers_list_with_http_info(x_account_token, opts)
@@ -52,11 +53,12 @@ module MergeATSClient
52
53
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
53
54
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
54
55
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
55
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
56
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
56
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
57
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
57
58
  # @option opts [Integer] :page_size Number of results to return per page.
58
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
59
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
59
60
  # @option opts [String] :remote_id The API provider's ID for the given object.
61
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
60
62
  # @return [Array<(PaginatedOfferList, Integer, Hash)>] PaginatedOfferList data, response status code and response headers
61
63
  def offers_list_with_http_info(x_account_token, opts = {})
62
64
  if @api_client.config.debugging
@@ -74,6 +76,10 @@ module MergeATSClient
74
76
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
75
77
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
76
78
  end
79
+ allowable_values = ["status"]
80
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
81
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
82
+ end
77
83
  # resource path
78
84
  local_var_path = '/offers'
79
85
 
@@ -92,6 +98,7 @@ module MergeATSClient
92
98
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
93
99
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
94
100
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
101
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
95
102
 
96
103
  # header parameters
97
104
  header_params = opts[:header_params] || {}
@@ -134,7 +141,8 @@ module MergeATSClient
134
141
  # @param [Hash] opts the optional parameters
135
142
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
136
143
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
137
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
144
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
145
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
138
146
  # @return [Offer]
139
147
  def offers_retrieve(x_account_token, id, opts = {})
140
148
  data, _status_code, _headers = offers_retrieve_with_http_info(x_account_token, id, opts)
@@ -147,7 +155,8 @@ module MergeATSClient
147
155
  # @param [Hash] opts the optional parameters
148
156
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
149
157
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
150
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
158
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
159
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
151
160
  # @return [Array<(Offer, Integer, Hash)>] Offer data, response status code and response headers
152
161
  def offers_retrieve_with_http_info(x_account_token, id, opts = {})
153
162
  if @api_client.config.debugging
@@ -169,6 +178,10 @@ module MergeATSClient
169
178
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
170
179
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
171
180
  end
181
+ allowable_values = ["status"]
182
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
183
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
184
+ end
172
185
  # resource path
173
186
  local_var_path = '/offers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
174
187
 
@@ -177,6 +190,7 @@ module MergeATSClient
177
190
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
178
191
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
179
192
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
193
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
180
194
 
181
195
  # header parameters
182
196
  header_params = opts[:header_params] || {}
@@ -27,8 +27,8 @@ module MergeATSClient
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
28
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
29
29
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
30
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
31
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
32
32
  # @option opts [Integer] :page_size Number of results to return per page.
33
33
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
34
34
  # @return [PaginatedOfficeList]
@@ -45,8 +45,8 @@ module MergeATSClient
45
45
  # @option opts [String] :cursor The pagination cursor value.
46
46
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
47
47
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
48
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
49
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
48
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
49
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
50
50
  # @option opts [Integer] :page_size Number of results to return per page.
51
51
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
52
52
  # @return [Array<(PaginatedOfficeList, Integer, Hash)>] PaginatedOfficeList data, response status code and response headers
@@ -27,8 +27,8 @@ module MergeATSClient
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
28
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
29
29
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
30
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
31
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
32
32
  # @option opts [Integer] :page_size Number of results to return per page.
33
33
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
34
34
  # @return [PaginatedRejectReasonList]
@@ -45,8 +45,8 @@ module MergeATSClient
45
45
  # @option opts [String] :cursor The pagination cursor value.
46
46
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
47
47
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
48
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
49
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
48
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
49
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
50
50
  # @option opts [Integer] :page_size Number of results to return per page.
51
51
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
52
52
  # @return [Array<(PaginatedRejectReasonList, Integer, Hash)>] PaginatedRejectReasonList data, response status code and response headers
@@ -31,11 +31,12 @@ module MergeATSClient
31
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
32
32
  # @option opts [String] :interview_id If provided, will only return scorecards for this interview.
33
33
  # @option opts [String] :interviewer_id If provided, will only return scorecards for this interviewer.
34
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
35
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
34
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
35
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
36
36
  # @option opts [Integer] :page_size Number of results to return per page.
37
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
37
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
38
38
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
39
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
39
40
  # @return [PaginatedScorecardList]
40
41
  def scorecards_list(x_account_token, opts = {})
41
42
  data, _status_code, _headers = scorecards_list_with_http_info(x_account_token, opts)
@@ -54,11 +55,12 @@ module MergeATSClient
54
55
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
55
56
  # @option opts [String] :interview_id If provided, will only return scorecards for this interview.
56
57
  # @option opts [String] :interviewer_id If provided, will only return scorecards for this interviewer.
57
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
58
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
58
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
59
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
59
60
  # @option opts [Integer] :page_size Number of results to return per page.
60
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
61
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
61
62
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
63
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
62
64
  # @return [Array<(PaginatedScorecardList, Integer, Hash)>] PaginatedScorecardList data, response status code and response headers
63
65
  def scorecards_list_with_http_info(x_account_token, opts = {})
64
66
  if @api_client.config.debugging
@@ -76,6 +78,10 @@ module MergeATSClient
76
78
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
77
79
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
78
80
  end
81
+ allowable_values = ["overall_recommendation"]
82
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
83
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
84
+ end
79
85
  # resource path
80
86
  local_var_path = '/scorecards'
81
87
 
@@ -95,6 +101,7 @@ module MergeATSClient
95
101
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
96
102
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
97
103
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
104
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
98
105
 
99
106
  # header parameters
100
107
  header_params = opts[:header_params] || {}
@@ -137,7 +144,8 @@ module MergeATSClient
137
144
  # @param [Hash] opts the optional parameters
138
145
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
139
146
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
140
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
147
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
148
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
141
149
  # @return [Scorecard]
142
150
  def scorecards_retrieve(x_account_token, id, opts = {})
143
151
  data, _status_code, _headers = scorecards_retrieve_with_http_info(x_account_token, id, opts)
@@ -150,7 +158,8 @@ module MergeATSClient
150
158
  # @param [Hash] opts the optional parameters
151
159
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
152
160
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
153
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
161
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
162
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
154
163
  # @return [Array<(Scorecard, Integer, Hash)>] Scorecard data, response status code and response headers
155
164
  def scorecards_retrieve_with_http_info(x_account_token, id, opts = {})
156
165
  if @api_client.config.debugging
@@ -172,6 +181,10 @@ module MergeATSClient
172
181
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
173
182
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
174
183
  end
184
+ allowable_values = ["overall_recommendation"]
185
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
186
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
187
+ end
175
188
  # resource path
176
189
  local_var_path = '/scorecards/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
177
190
 
@@ -180,6 +193,7 @@ module MergeATSClient
180
193
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
181
194
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
182
195
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
196
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
183
197
 
184
198
  # header parameters
185
199
  header_params = opts[:header_params] || {}
@@ -155,7 +155,7 @@ module MergeATSClient
155
155
  # @param x_account_token [String] Token identifying the end user.
156
156
  # @param [Hash] opts the optional parameters
157
157
  # @option opts [String] :common_model
158
- # @option opts [Integer] :cursor The pagination cursor value.
158
+ # @option opts [String] :cursor The pagination cursor value.
159
159
  # @option opts [Integer] :page_size Number of results to return per page.
160
160
  # @return [PaginatedConditionSchemaList]
161
161
  def selective_sync_meta_list(x_account_token, opts = {})
@@ -167,7 +167,7 @@ module MergeATSClient
167
167
  # @param x_account_token [String] Token identifying the end user.
168
168
  # @param [Hash] opts the optional parameters
169
169
  # @option opts [String] :common_model
170
- # @option opts [Integer] :cursor The pagination cursor value.
170
+ # @option opts [String] :cursor The pagination cursor value.
171
171
  # @option opts [Integer] :page_size Number of results to return per page.
172
172
  # @return [Array<(PaginatedConditionSchemaList, Integer, Hash)>] PaginatedConditionSchemaList data, response status code and response headers
173
173
  def selective_sync_meta_list_with_http_info(x_account_token, opts = {})
@@ -19,7 +19,7 @@ module MergeATSClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
22
+ # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :cursor The pagination cursor value.
@@ -30,7 +30,7 @@ module MergeATSClient
30
30
  data
31
31
  end
32
32
 
33
- # Get syncing status. Possible values: &#x60;DISABLED&#x60;, &#x60;DONE&#x60;, &#x60;FAILED&#x60;, &#x60;PAUSED&#x60;, &#x60;SYNCING&#x60;
33
+ # Get syncing status. Possible values: &#x60;DISABLED&#x60;, &#x60;DONE&#x60;, &#x60;FAILED&#x60;, &#x60;PARTIALLY_SYNCED&#x60;, &#x60;PAUSED&#x60;, &#x60;SYNCING&#x60;
34
34
  # @param x_account_token [String] Token identifying the end user.
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @option opts [String] :cursor The pagination cursor value.
@@ -27,8 +27,8 @@ module MergeATSClient
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
28
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
29
29
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
30
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
31
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
32
32
  # @option opts [Integer] :page_size Number of results to return per page.
33
33
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
34
34
  # @return [PaginatedTagList]
@@ -45,8 +45,8 @@ module MergeATSClient
45
45
  # @option opts [String] :cursor The pagination cursor value.
46
46
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
47
47
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
48
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
49
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
48
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
49
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
50
50
  # @option opts [Integer] :page_size Number of results to return per page.
51
51
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
52
52
  # @return [Array<(PaginatedTagList, Integer, Hash)>] PaginatedTagList data, response status code and response headers
@@ -28,11 +28,12 @@ module MergeATSClient
28
28
  # @option opts [String] :email If provided, will only return remote users with the given email address
29
29
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
30
30
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
31
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
32
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
31
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
32
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
33
33
  # @option opts [Integer] :page_size Number of results to return per page.
34
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
34
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
35
35
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
36
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
36
37
  # @return [PaginatedRemoteUserList]
37
38
  def users_list(x_account_token, opts = {})
38
39
  data, _status_code, _headers = users_list_with_http_info(x_account_token, opts)
@@ -48,11 +49,12 @@ module MergeATSClient
48
49
  # @option opts [String] :email If provided, will only return remote users with the given email address
49
50
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
50
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
51
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
52
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
52
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
53
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
53
54
  # @option opts [Integer] :page_size Number of results to return per page.
54
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
55
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
55
56
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
57
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
56
58
  # @return [Array<(PaginatedRemoteUserList, Integer, Hash)>] PaginatedRemoteUserList data, response status code and response headers
57
59
  def users_list_with_http_info(x_account_token, opts = {})
58
60
  if @api_client.config.debugging
@@ -66,6 +68,10 @@ module MergeATSClient
66
68
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
67
69
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
68
70
  end
71
+ allowable_values = ["access_role"]
72
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
73
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
74
+ end
69
75
  # resource path
70
76
  local_var_path = '/users'
71
77
 
@@ -82,6 +88,7 @@ module MergeATSClient
82
88
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
83
89
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
84
90
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
91
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
85
92
 
86
93
  # header parameters
87
94
  header_params = opts[:header_params] || {}
@@ -123,7 +130,8 @@ module MergeATSClient
123
130
  # @param id [String]
124
131
  # @param [Hash] opts the optional parameters
125
132
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
126
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
133
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
134
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
127
135
  # @return [RemoteUser]
128
136
  def users_retrieve(x_account_token, id, opts = {})
129
137
  data, _status_code, _headers = users_retrieve_with_http_info(x_account_token, id, opts)
@@ -135,7 +143,8 @@ module MergeATSClient
135
143
  # @param id [String]
136
144
  # @param [Hash] opts the optional parameters
137
145
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
138
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
146
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
147
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
139
148
  # @return [Array<(RemoteUser, Integer, Hash)>] RemoteUser data, response status code and response headers
140
149
  def users_retrieve_with_http_info(x_account_token, id, opts = {})
141
150
  if @api_client.config.debugging
@@ -153,6 +162,10 @@ module MergeATSClient
153
162
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
154
163
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
155
164
  end
165
+ allowable_values = ["access_role"]
166
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
167
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
168
+ end
156
169
  # resource path
157
170
  local_var_path = '/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
158
171
 
@@ -160,6 +173,7 @@ module MergeATSClient
160
173
  query_params = opts[:query_params] || {}
161
174
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
162
175
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
176
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
163
177
 
164
178
  # header parameters
165
179
  header_params = opts[:header_params] || {}
@@ -18,7 +18,7 @@ module MergeATSClient
18
18
  # Company name.
19
19
  attr_accessor :name
20
20
 
21
- # Category or categories this integration belongs to. Multiple categories should be comma separated.<br/><br>Example: For [ats, hris], enter <i>ats,hris</i>
21
+ # Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].
22
22
  attr_accessor :categories
23
23
 
24
24
  # Company logo in rectangular shape. <b>Upload an image with a clear background.</b>
@@ -32,6 +32,12 @@ module MergeATSClient
32
32
 
33
33
  attr_accessor :slug
34
34
 
35
+ # If checked, this integration will not appear in the linking flow, and will appear elsewhere with a Beta tag.
36
+ attr_accessor :is_in_beta
37
+
38
+ # Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}
39
+ attr_accessor :api_endpoints_to_documentation_urls
40
+
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
@@ -40,7 +46,9 @@ module MergeATSClient
40
46
  :'image' => :'image',
41
47
  :'square_image' => :'square_image',
42
48
  :'color' => :'color',
43
- :'slug' => :'slug'
49
+ :'slug' => :'slug',
50
+ :'is_in_beta' => :'is_in_beta',
51
+ :'api_endpoints_to_documentation_urls' => :'api_endpoints_to_documentation_urls'
44
52
  }
45
53
  end
46
54
 
@@ -57,7 +65,9 @@ module MergeATSClient
57
65
  :'image' => :'String',
58
66
  :'square_image' => :'String',
59
67
  :'color' => :'String',
60
- :'slug' => :'String'
68
+ :'slug' => :'String',
69
+ :'is_in_beta' => :'Boolean',
70
+ :'api_endpoints_to_documentation_urls' => :'Hash<String, Object>'
61
71
  }
62
72
  end
63
73
 
@@ -109,6 +119,16 @@ module MergeATSClient
109
119
  if attributes.key?(:'slug')
110
120
  self.slug = attributes[:'slug']
111
121
  end
122
+
123
+ if attributes.key?(:'is_in_beta')
124
+ self.is_in_beta = attributes[:'is_in_beta']
125
+ end
126
+
127
+ if attributes.key?(:'api_endpoints_to_documentation_urls')
128
+ if (value = attributes[:'api_endpoints_to_documentation_urls']).is_a?(Hash)
129
+ self.api_endpoints_to_documentation_urls = value
130
+ end
131
+ end
112
132
  end
113
133
 
114
134
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -124,7 +144,7 @@ module MergeATSClient
124
144
  end
125
145
 
126
146
  pattern = Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
127
- if !@color.nil? && @color !~ pattern
147
+ if !@color.nil? && @color.to_s !~ pattern
128
148
  invalid_properties.push("invalid value for \"color\", must conform to the pattern #{pattern}.")
129
149
  end
130
150
 
@@ -136,7 +156,7 @@ module MergeATSClient
136
156
  def valid?
137
157
  return false if @name.nil?
138
158
  return false if !@color.nil? && @color.to_s.length > 18
139
- return false if !@color.nil? && @color !~ Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
159
+ return false if !@color.nil? && @color.to_s !~ Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
140
160
  true
141
161
  end
142
162
 
@@ -148,7 +168,7 @@ module MergeATSClient
148
168
  end
149
169
 
150
170
  pattern = Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
151
- if !color.nil? && color !~ pattern
171
+ if !color.nil? && color.to_s !~ pattern
152
172
  fail ArgumentError, "invalid value for \"color\", must conform to the pattern #{pattern}."
153
173
  end
154
174
 
@@ -165,7 +185,9 @@ module MergeATSClient
165
185
  image == o.image &&
166
186
  square_image == o.square_image &&
167
187
  color == o.color &&
168
- slug == o.slug
188
+ slug == o.slug &&
189
+ is_in_beta == o.is_in_beta &&
190
+ api_endpoints_to_documentation_urls == o.api_endpoints_to_documentation_urls
169
191
  end
170
192
 
171
193
  # @see the `==` method
@@ -177,7 +199,7 @@ module MergeATSClient
177
199
  # Calculates hash code according to all attributes.
178
200
  # @return [Integer] Hash code
179
201
  def hash
180
- [name, categories, image, square_image, color, slug].hash
202
+ [name, categories, image, square_image, color, slug, is_in_beta, api_endpoints_to_documentation_urls].hash
181
203
  end
182
204
 
183
205
  # Builds the object from hash
@@ -14,19 +14,20 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Activity Object ### Description The `Activity` object is used to represent an activity performed by a user. ### Usage Example Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities.
17
+ # # The Activity Object ### Description The `Activity` object is used to represent an activity for a candidate performed by a user. ### Usage Example Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities.
18
18
  class Activity
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 user that performed the action.
24
25
  attr_accessor :user
25
26
 
26
27
  # When the third party's activity was created.
27
28
  attr_accessor :remote_created_at
28
29
 
29
- # The activity's type.
30
+ # The activity's type. * `NOTE` - NOTE * `EMAIL` - EMAIL * `OTHER` - OTHER
30
31
  attr_accessor :activity_type
31
32
 
32
33
  # The activity's subject.
@@ -35,14 +36,22 @@ module MergeATSClient
35
36
  # The activity's body.
36
37
  attr_accessor :body
37
38
 
38
- # The activity's visibility.
39
+ # The activity's visibility. * `ADMIN_ONLY` - ADMIN_ONLY * `PUBLIC` - PUBLIC * `PRIVATE` - PRIVATE
39
40
  attr_accessor :visibility
40
41
 
41
- attr_accessor :remote_data
42
+ # The activity’s candidate.
43
+ attr_accessor :candidate
42
44
 
43
45
  # Indicates whether or not this object has been deleted by third party webhooks.
44
46
  attr_accessor :remote_was_deleted
45
47
 
48
+ # This is the datetime that this object was last updated by Merge
49
+ attr_accessor :modified_at
50
+
51
+ attr_accessor :field_mappings
52
+
53
+ attr_accessor :remote_data
54
+
46
55
  # Attribute mapping from ruby-style variable name to JSON key.
47
56
  def self.attribute_map
48
57
  {
@@ -54,8 +63,11 @@ module MergeATSClient
54
63
  :'subject' => :'subject',
55
64
  :'body' => :'body',
56
65
  :'visibility' => :'visibility',
57
- :'remote_data' => :'remote_data',
58
- :'remote_was_deleted' => :'remote_was_deleted'
66
+ :'candidate' => :'candidate',
67
+ :'remote_was_deleted' => :'remote_was_deleted',
68
+ :'modified_at' => :'modified_at',
69
+ :'field_mappings' => :'field_mappings',
70
+ :'remote_data' => :'remote_data'
59
71
  }
60
72
  end
61
73
 
@@ -75,8 +87,11 @@ module MergeATSClient
75
87
  :'subject' => :'String',
76
88
  :'body' => :'String',
77
89
  :'visibility' => :'VisibilityEnum',
78
- :'remote_data' => :'Array<RemoteData>',
79
- :'remote_was_deleted' => :'Boolean'
90
+ :'candidate' => :'String',
91
+ :'remote_was_deleted' => :'Boolean',
92
+ :'modified_at' => :'Time',
93
+ :'field_mappings' => :'Hash<String, Object>',
94
+ :'remote_data' => :'Array<RemoteData>'
80
95
  }
81
96
  end
82
97
 
@@ -90,7 +105,9 @@ module MergeATSClient
90
105
  :'subject',
91
106
  :'body',
92
107
  :'visibility',
93
- :'remote_data',
108
+ :'candidate',
109
+ :'field_mappings',
110
+ :'remote_data'
94
111
  ])
95
112
  end
96
113
 
@@ -141,15 +158,29 @@ module MergeATSClient
141
158
  self.visibility = attributes[:'visibility']
142
159
  end
143
160
 
144
- if attributes.key?(:'remote_data')
145
- if (value = attributes[:'remote_data']).is_a?(Array)
146
- self.remote_data = value
147
- end
161
+ if attributes.key?(:'candidate')
162
+ self.candidate = attributes[:'candidate']
148
163
  end
149
164
 
150
165
  if attributes.key?(:'remote_was_deleted')
151
166
  self.remote_was_deleted = attributes[:'remote_was_deleted']
152
167
  end
168
+
169
+ if attributes.key?(:'modified_at')
170
+ self.modified_at = attributes[:'modified_at']
171
+ end
172
+
173
+ if attributes.key?(:'field_mappings')
174
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
175
+ self.field_mappings = value
176
+ end
177
+ end
178
+
179
+ if attributes.key?(:'remote_data')
180
+ if (value = attributes[:'remote_data']).is_a?(Array)
181
+ self.remote_data = value
182
+ end
183
+ end
153
184
  end
154
185
 
155
186
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -178,8 +209,11 @@ module MergeATSClient
178
209
  subject == o.subject &&
179
210
  body == o.body &&
180
211
  visibility == o.visibility &&
181
- remote_data == o.remote_data &&
182
- remote_was_deleted == o.remote_was_deleted
212
+ candidate == o.candidate &&
213
+ remote_was_deleted == o.remote_was_deleted &&
214
+ modified_at == o.modified_at &&
215
+ field_mappings == o.field_mappings &&
216
+ remote_data == o.remote_data
183
217
  end
184
218
 
185
219
  # @see the `==` method
@@ -191,7 +225,7 @@ module MergeATSClient
191
225
  # Calculates hash code according to all attributes.
192
226
  # @return [Integer] Hash code
193
227
  def hash
194
- [id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, remote_data, remote_was_deleted].hash
228
+ [id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, candidate, remote_was_deleted, modified_at, field_mappings, remote_data].hash
195
229
  end
196
230
 
197
231
  # Builds the object from hash