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
@@ -29,12 +29,14 @@ module MergeATSClient
29
29
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
30
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
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
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
33
- # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
33
+ # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
34
+ # @option opts [String] :offices If provided, will only return jobs for this office; multiple offices can be separated by commas.
34
35
  # @option opts [Integer] :page_size Number of results to return per page.
35
- # @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.
36
37
  # @option opts [String] :remote_id The API provider's ID for the given object.
37
- # @option opts [String] :status If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING')
38
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
39
+ # @option opts [String] :status If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') * `OPEN` - OPEN * `CLOSED` - CLOSED * `DRAFT` - DRAFT * `ARCHIVED` - ARCHIVED * `PENDING` - PENDING
38
40
  # @return [PaginatedJobList]
39
41
  def jobs_list(x_account_token, opts = {})
40
42
  data, _status_code, _headers = jobs_list_with_http_info(x_account_token, opts)
@@ -51,12 +53,14 @@ module MergeATSClient
51
53
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
52
54
  # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
53
55
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
54
- # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
55
- # @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.
58
+ # @option opts [String] :offices If provided, will only return jobs for this office; multiple offices can be separated by commas.
56
59
  # @option opts [Integer] :page_size Number of results to return per page.
57
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
60
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
58
61
  # @option opts [String] :remote_id The API provider's ID for the given object.
59
- # @option opts [String] :status If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING')
62
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
63
+ # @option opts [String] :status If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING') * `OPEN` - OPEN * `CLOSED` - CLOSED * `DRAFT` - DRAFT * `ARCHIVED` - ARCHIVED * `PENDING` - PENDING
60
64
  # @return [Array<(PaginatedJobList, Integer, Hash)>] PaginatedJobList data, response status code and response headers
61
65
  def jobs_list_with_http_info(x_account_token, opts = {})
62
66
  if @api_client.config.debugging
@@ -74,6 +78,10 @@ module MergeATSClient
74
78
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
75
79
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
76
80
  end
81
+ allowable_values = ["status"]
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
77
85
  allowable_values = ["ARCHIVED", "CLOSED", "DRAFT", "OPEN", "PENDING"]
78
86
  if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
79
87
  fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
@@ -92,9 +100,11 @@ module MergeATSClient
92
100
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
93
101
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
94
102
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
103
+ query_params[:'offices'] = opts[:'offices'] if !opts[:'offices'].nil?
95
104
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
96
105
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
97
106
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
107
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
98
108
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
99
109
 
100
110
  # header parameters
@@ -138,7 +148,8 @@ module MergeATSClient
138
148
  # @param [Hash] opts the optional parameters
139
149
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
140
150
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
141
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
151
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
152
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
142
153
  # @return [Job]
143
154
  def jobs_retrieve(x_account_token, id, opts = {})
144
155
  data, _status_code, _headers = jobs_retrieve_with_http_info(x_account_token, id, opts)
@@ -151,7 +162,8 @@ module MergeATSClient
151
162
  # @param [Hash] opts the optional parameters
152
163
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
153
164
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
154
- # @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
165
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
166
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
155
167
  # @return [Array<(Job, Integer, Hash)>] Job data, response status code and response headers
156
168
  def jobs_retrieve_with_http_info(x_account_token, id, opts = {})
157
169
  if @api_client.config.debugging
@@ -173,6 +185,10 @@ module MergeATSClient
173
185
  if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
174
186
  fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
175
187
  end
188
+ allowable_values = ["status"]
189
+ if @api_client.config.client_side_validation && opts[:'show_enum_origins'] && !allowable_values.include?(opts[:'show_enum_origins'])
190
+ fail ArgumentError, "invalid value for \"show_enum_origins\", must be one of #{allowable_values}"
191
+ end
176
192
  # resource path
177
193
  local_var_path = '/jobs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
178
194
 
@@ -181,6 +197,7 @@ module MergeATSClient
181
197
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
182
198
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
183
199
  query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
200
+ query_params[:'show_enum_origins'] = opts[:'show_enum_origins'] if !opts[:'show_enum_origins'].nil?
184
201
 
185
202
  # header parameters
186
203
  header_params = opts[:header_params] || {}
@@ -21,7 +21,7 @@ module MergeATSClient
21
21
  end
22
22
  # List linked accounts for your organization.
23
23
  # @param [Hash] opts the optional parameters
24
- # @option opts [String] :category
24
+ # @option opts [String] :category Options: (&#39;hris&#39;, &#39;ats&#39;, &#39;accounting&#39;, &#39;ticketing&#39;, &#39;crm&#39;, &#39;mktg&#39;, &#39;filestorage&#39;) * &#x60;hris&#x60; - hris * &#x60;ats&#x60; - ats * &#x60;accounting&#x60; - accounting * &#x60;ticketing&#x60; - ticketing * &#x60;crm&#x60; - crm * &#x60;mktg&#x60; - mktg * &#x60;filestorage&#x60; - filestorage
25
25
  # @option opts [String] :cursor The pagination cursor value.
26
26
  # @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
27
27
  # @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
@@ -42,7 +42,7 @@ module MergeATSClient
42
42
 
43
43
  # List linked accounts for your organization.
44
44
  # @param [Hash] opts the optional parameters
45
- # @option opts [String] :category
45
+ # @option opts [String] :category Options: (&#39;hris&#39;, &#39;ats&#39;, &#39;accounting&#39;, &#39;ticketing&#39;, &#39;crm&#39;, &#39;mktg&#39;, &#39;filestorage&#39;) * &#x60;hris&#x60; - hris * &#x60;ats&#x60; - ats * &#x60;accounting&#x60; - accounting * &#x60;ticketing&#x60; - ticketing * &#x60;crm&#x60; - crm * &#x60;mktg&#x60; - mktg * &#x60;filestorage&#x60; - filestorage
46
46
  # @option opts [String] :cursor The pagination cursor value.
47
47
  # @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
48
48
  # @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
@@ -60,7 +60,7 @@ module MergeATSClient
60
60
  if @api_client.config.debugging
61
61
  @api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
62
62
  end
63
- allowable_values = ["accounting", "ats", "crm", "hris", "ticketing"]
63
+ allowable_values = ["accounting", "ats", "crm", "filestorage", "hris", "mktg", "ticketing"]
64
64
  if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
65
65
  fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
66
66
  end
@@ -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&#39;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&#39;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