merge_ats_client 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/docs/AccountDetails.md +3 -1
- data/docs/AccountDetailsAndActions.md +2 -0
- data/docs/ActivitiesApi.md +7 -3
- data/docs/Activity.md +1 -1
- data/docs/ApplicationsApi.md +84 -2
- data/docs/AttachmentsApi.md +7 -3
- data/docs/CandidatesApi.md +2 -2
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/Department.md +1 -1
- data/docs/DepartmentsApi.md +2 -2
- data/docs/EEOC.md +1 -1
- data/docs/EeocsApi.md +7 -3
- data/docs/EndUserDetailsRequest.md +9 -7
- data/docs/InterviewsApi.md +7 -3
- data/docs/Job.md +4 -2
- data/docs/JobInterviewStage.md +2 -2
- data/docs/JobInterviewStagesApi.md +2 -2
- data/docs/JobsApi.md +7 -3
- data/docs/LinkToken.md +3 -1
- data/docs/LinkedAccountsApi.md +2 -0
- data/docs/Offer.md +1 -1
- data/docs/OffersApi.md +7 -3
- data/docs/Office.md +1 -1
- data/docs/OfficesApi.md +2 -2
- data/docs/RejectReason.md +1 -1
- data/docs/RejectReasonsApi.md +2 -2
- data/docs/RemoteResponse.md +5 -1
- data/docs/RemoteUser.md +1 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/ScheduledInterview.md +1 -1
- data/docs/Scorecard.md +1 -1
- data/docs/ScorecardsApi.md +7 -3
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tag.md +1 -1
- data/docs/TagsApi.md +2 -2
- data/docs/UpdateApplicationStageRequest.md +20 -0
- data/docs/UsersApi.md +7 -3
- data/lib/merge_ats_client/api/activities_api.rb +16 -2
- data/lib/merge_ats_client/api/applications_api.rb +80 -2
- data/lib/merge_ats_client/api/attachments_api.rb +16 -2
- data/lib/merge_ats_client/api/candidates_api.rb +2 -2
- data/lib/merge_ats_client/api/departments_api.rb +2 -2
- data/lib/merge_ats_client/api/eeocs_api.rb +16 -2
- data/lib/merge_ats_client/api/interviews_api.rb +16 -2
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +2 -2
- data/lib/merge_ats_client/api/jobs_api.rb +16 -2
- data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -0
- data/lib/merge_ats_client/api/offers_api.rb +16 -2
- data/lib/merge_ats_client/api/offices_api.rb +2 -2
- data/lib/merge_ats_client/api/reject_reasons_api.rb +2 -2
- data/lib/merge_ats_client/api/scorecards_api.rb +16 -2
- data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
- data/lib/merge_ats_client/api/tags_api.rb +2 -2
- data/lib/merge_ats_client/api/users_api.rb +16 -2
- data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_details.rb +15 -4
- data/lib/merge_ats_client/models/account_details_and_actions.rb +12 -1
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/activity.rb +1 -1
- data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/application.rb +1 -1
- data/lib/merge_ats_client/models/application_request.rb +3 -3
- data/lib/merge_ats_client/models/attachment_request.rb +2 -2
- data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/candidate.rb +1 -1
- data/lib/merge_ats_client/models/candidate_request.rb +3 -3
- data/lib/merge_ats_client/models/categories_enum.rb +17 -7
- data/lib/merge_ats_client/models/category_enum.rb +17 -7
- data/lib/merge_ats_client/models/data_passthrough_request.rb +15 -6
- data/lib/merge_ats_client/models/department.rb +1 -1
- data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/eeoc.rb +1 -1
- data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/encoding_enum.rb +18 -7
- data/lib/merge_ats_client/models/end_user_details_request.rb +28 -11
- data/lib/merge_ats_client/models/gender_enum.rb +17 -7
- data/lib/merge_ats_client/models/issue.rb +1 -1
- data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/job.rb +14 -3
- data/lib/merge_ats_client/models/job_interview_stage.rb +3 -2
- data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/link_token.rb +13 -4
- data/lib/merge_ats_client/models/meta_response.rb +1 -1
- data/lib/merge_ats_client/models/method_enum.rb +17 -7
- data/lib/merge_ats_client/models/offer.rb +1 -1
- data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/office.rb +1 -1
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/race_enum.rb +17 -7
- data/lib/merge_ats_client/models/reason_enum.rb +17 -7
- data/lib/merge_ats_client/models/reject_reason.rb +1 -1
- data/lib/merge_ats_client/models/remote_response.rb +23 -9
- data/lib/merge_ats_client/models/remote_user.rb +1 -1
- data/lib/merge_ats_client/models/request_format_enum.rb +17 -7
- data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +2 -2
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/scorecard.rb +2 -2
- data/lib/merge_ats_client/models/sync_status.rb +0 -10
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +18 -7
- data/lib/merge_ats_client/models/tag.rb +2 -2
- data/lib/merge_ats_client/models/{remote_data_request.rb → update_application_stage_request.rb} +26 -35
- data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
- data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +2 -1
- data/spec/api/activities_api_spec.rb +3 -1
- data/spec/api/applications_api_spec.rb +16 -1
- data/spec/api/attachments_api_spec.rb +3 -1
- data/spec/api/candidates_api_spec.rb +1 -1
- data/spec/api/departments_api_spec.rb +1 -1
- data/spec/api/eeocs_api_spec.rb +3 -1
- data/spec/api/interviews_api_spec.rb +3 -1
- data/spec/api/job_interview_stages_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +3 -1
- data/spec/api/linked_accounts_api_spec.rb +1 -0
- data/spec/api/offers_api_spec.rb +3 -1
- data/spec/api/offices_api_spec.rb +1 -1
- data/spec/api/reject_reasons_api_spec.rb +1 -1
- data/spec/api/scorecards_api_spec.rb +3 -1
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +3 -1
- data/spec/models/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +6 -0
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/job_spec.rb +6 -0
- data/spec/models/link_token_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +12 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/update_application_stage_request_spec.rb +40 -0
- metadata +115 -108
@@ -25,7 +25,7 @@ module MergeATSClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
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
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
31
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -43,7 +43,7 @@ module MergeATSClient
|
|
43
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
44
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
45
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
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
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
49
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -27,13 +27,14 @@ module MergeATSClient
|
|
27
27
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
28
28
|
# @option opts [String] :cursor The pagination cursor value.
|
29
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
30
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
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
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
34
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
35
35
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
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
38
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
38
39
|
# @return [PaginatedScorecardList]
|
39
40
|
def scorecards_list(x_account_token, opts = {})
|
@@ -49,13 +50,14 @@ module MergeATSClient
|
|
49
50
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
50
51
|
# @option opts [String] :cursor The pagination cursor value.
|
51
52
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
52
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
53
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
53
54
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
54
55
|
# @option opts [String] :interview_id If provided, will only return scorecards for this interview.
|
55
56
|
# @option opts [String] :interviewer_id If provided, will only return scorecards for this interviewer.
|
56
57
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
57
58
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
58
59
|
# @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.
|
59
61
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
60
62
|
# @return [Array<(PaginatedScorecardList, Integer, Hash)>] PaginatedScorecardList data, response status code and response headers
|
61
63
|
def scorecards_list_with_http_info(x_account_token, opts = {})
|
@@ -70,6 +72,10 @@ module MergeATSClient
|
|
70
72
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
71
73
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
72
74
|
end
|
75
|
+
allowable_values = ["overall_recommendation"]
|
76
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
77
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
78
|
+
end
|
73
79
|
# resource path
|
74
80
|
local_var_path = '/scorecards'
|
75
81
|
|
@@ -87,6 +93,7 @@ module MergeATSClient
|
|
87
93
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
88
94
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
89
95
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
96
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
90
97
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
91
98
|
|
92
99
|
# header parameters
|
@@ -130,6 +137,7 @@ module MergeATSClient
|
|
130
137
|
# @param [Hash] opts the optional parameters
|
131
138
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
132
139
|
# @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.
|
133
141
|
# @return [Scorecard]
|
134
142
|
def scorecards_retrieve(x_account_token, id, opts = {})
|
135
143
|
data, _status_code, _headers = scorecards_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -142,6 +150,7 @@ module MergeATSClient
|
|
142
150
|
# @param [Hash] opts the optional parameters
|
143
151
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
144
152
|
# @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.
|
145
154
|
# @return [Array<(Scorecard, Integer, Hash)>] Scorecard data, response status code and response headers
|
146
155
|
def scorecards_retrieve_with_http_info(x_account_token, id, opts = {})
|
147
156
|
if @api_client.config.debugging
|
@@ -159,6 +168,10 @@ module MergeATSClient
|
|
159
168
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
160
169
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
161
170
|
end
|
171
|
+
allowable_values = ["overall_recommendation"]
|
172
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
173
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
174
|
+
end
|
162
175
|
# resource path
|
163
176
|
local_var_path = '/scorecards/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
164
177
|
|
@@ -166,6 +179,7 @@ module MergeATSClient
|
|
166
179
|
query_params = opts[:query_params] || {}
|
167
180
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
168
181
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
182
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
169
183
|
|
170
184
|
# header parameters
|
171
185
|
header_params = opts[:header_params] || {}
|
@@ -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`, `SYNCING`
|
22
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `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: `DISABLED`, `DONE`, `FAILED`, `SYNCING`
|
33
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
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.
|
@@ -25,7 +25,7 @@ module MergeATSClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
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
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
31
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -43,7 +43,7 @@ module MergeATSClient
|
|
43
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
44
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
45
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
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
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
49
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -26,11 +26,12 @@ module MergeATSClient
|
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [String] :email If provided, will only return remote users with the given email address
|
29
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
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
31
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
32
32
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
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
35
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
35
36
|
# @return [PaginatedRemoteUserList]
|
36
37
|
def users_list(x_account_token, opts = {})
|
@@ -45,11 +46,12 @@ module MergeATSClient
|
|
45
46
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
46
47
|
# @option opts [String] :cursor The pagination cursor value.
|
47
48
|
# @option opts [String] :email If provided, will only return remote users with the given email address
|
48
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
49
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
49
50
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
50
51
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
51
52
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
52
53
|
# @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.
|
53
55
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
54
56
|
# @return [Array<(PaginatedRemoteUserList, Integer, Hash)>] PaginatedRemoteUserList data, response status code and response headers
|
55
57
|
def users_list_with_http_info(x_account_token, opts = {})
|
@@ -60,6 +62,10 @@ module MergeATSClient
|
|
60
62
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
61
63
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling UsersApi.users_list"
|
62
64
|
end
|
65
|
+
allowable_values = ["access_role"]
|
66
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
67
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
68
|
+
end
|
63
69
|
# resource path
|
64
70
|
local_var_path = '/users'
|
65
71
|
|
@@ -74,6 +80,7 @@ module MergeATSClient
|
|
74
80
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
75
81
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
76
82
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
83
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
77
84
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
78
85
|
|
79
86
|
# header parameters
|
@@ -116,6 +123,7 @@ module MergeATSClient
|
|
116
123
|
# @param id [String]
|
117
124
|
# @param [Hash] opts the optional parameters
|
118
125
|
# @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.
|
119
127
|
# @return [RemoteUser]
|
120
128
|
def users_retrieve(x_account_token, id, opts = {})
|
121
129
|
data, _status_code, _headers = users_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -127,6 +135,7 @@ module MergeATSClient
|
|
127
135
|
# @param id [String]
|
128
136
|
# @param [Hash] opts the optional parameters
|
129
137
|
# @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.
|
130
139
|
# @return [Array<(RemoteUser, Integer, Hash)>] RemoteUser data, response status code and response headers
|
131
140
|
def users_retrieve_with_http_info(x_account_token, id, opts = {})
|
132
141
|
if @api_client.config.debugging
|
@@ -140,12 +149,17 @@ module MergeATSClient
|
|
140
149
|
if @api_client.config.client_side_validation && id.nil?
|
141
150
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_retrieve"
|
142
151
|
end
|
152
|
+
allowable_values = ["access_role"]
|
153
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
154
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
155
|
+
end
|
143
156
|
# resource path
|
144
157
|
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
145
158
|
|
146
159
|
# query parameters
|
147
160
|
query_params = opts[:query_params] || {}
|
148
161
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
162
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
149
163
|
|
150
164
|
# header parameters
|
151
165
|
header_params = opts[:header_params] || {}
|
@@ -21,18 +21,28 @@ module MergeATSClient
|
|
21
21
|
LIMITED_TEAM_MEMBER = "LIMITED_TEAM_MEMBER".freeze
|
22
22
|
INTERVIEWER = "INTERVIEWER".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["SUPER_ADMIN", "ADMIN", "TEAM_MEMBER", "LIMITED_TEAM_MEMBER", "INTERVIEWER", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|
@@ -33,6 +33,9 @@ module MergeATSClient
|
|
33
33
|
|
34
34
|
attr_accessor :webhook_listener_url
|
35
35
|
|
36
|
+
# Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
|
37
|
+
attr_accessor :is_duplicate
|
38
|
+
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
40
|
def self.attribute_map
|
38
41
|
{
|
@@ -44,7 +47,8 @@ module MergeATSClient
|
|
44
47
|
:'end_user_organization_name' => :'end_user_organization_name',
|
45
48
|
:'end_user_email_address' => :'end_user_email_address',
|
46
49
|
:'status' => :'status',
|
47
|
-
:'webhook_listener_url' => :'webhook_listener_url'
|
50
|
+
:'webhook_listener_url' => :'webhook_listener_url',
|
51
|
+
:'is_duplicate' => :'is_duplicate'
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
@@ -64,7 +68,8 @@ module MergeATSClient
|
|
64
68
|
:'end_user_organization_name' => :'String',
|
65
69
|
:'end_user_email_address' => :'String',
|
66
70
|
:'status' => :'String',
|
67
|
-
:'webhook_listener_url' => :'String'
|
71
|
+
:'webhook_listener_url' => :'String',
|
72
|
+
:'is_duplicate' => :'Boolean'
|
68
73
|
}
|
69
74
|
end
|
70
75
|
|
@@ -72,6 +77,7 @@ module MergeATSClient
|
|
72
77
|
def self.openapi_nullable
|
73
78
|
Set.new([
|
74
79
|
:'category',
|
80
|
+
:'is_duplicate'
|
75
81
|
])
|
76
82
|
end
|
77
83
|
|
@@ -125,6 +131,10 @@ module MergeATSClient
|
|
125
131
|
if attributes.key?(:'webhook_listener_url')
|
126
132
|
self.webhook_listener_url = attributes[:'webhook_listener_url']
|
127
133
|
end
|
134
|
+
|
135
|
+
if attributes.key?(:'is_duplicate')
|
136
|
+
self.is_duplicate = attributes[:'is_duplicate']
|
137
|
+
end
|
128
138
|
end
|
129
139
|
|
130
140
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -153,7 +163,8 @@ module MergeATSClient
|
|
153
163
|
end_user_organization_name == o.end_user_organization_name &&
|
154
164
|
end_user_email_address == o.end_user_email_address &&
|
155
165
|
status == o.status &&
|
156
|
-
webhook_listener_url == o.webhook_listener_url
|
166
|
+
webhook_listener_url == o.webhook_listener_url &&
|
167
|
+
is_duplicate == o.is_duplicate
|
157
168
|
end
|
158
169
|
|
159
170
|
# @see the `==` method
|
@@ -165,7 +176,7 @@ module MergeATSClient
|
|
165
176
|
# Calculates hash code according to all attributes.
|
166
177
|
# @return [Integer] Hash code
|
167
178
|
def hash
|
168
|
-
[id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url].hash
|
179
|
+
[id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url, is_duplicate].hash
|
169
180
|
end
|
170
181
|
|
171
182
|
# Builds the object from hash
|
@@ -32,6 +32,9 @@ module MergeATSClient
|
|
32
32
|
|
33
33
|
attr_accessor :webhook_listener_url
|
34
34
|
|
35
|
+
# Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
|
36
|
+
attr_accessor :is_duplicate
|
37
|
+
|
35
38
|
attr_accessor :integration
|
36
39
|
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,6 +48,7 @@ module MergeATSClient
|
|
45
48
|
:'end_user_organization_name' => :'end_user_organization_name',
|
46
49
|
:'end_user_email_address' => :'end_user_email_address',
|
47
50
|
:'webhook_listener_url' => :'webhook_listener_url',
|
51
|
+
:'is_duplicate' => :'is_duplicate',
|
48
52
|
:'integration' => :'integration'
|
49
53
|
}
|
50
54
|
end
|
@@ -65,6 +69,7 @@ module MergeATSClient
|
|
65
69
|
:'end_user_organization_name' => :'String',
|
66
70
|
:'end_user_email_address' => :'String',
|
67
71
|
:'webhook_listener_url' => :'String',
|
72
|
+
:'is_duplicate' => :'Boolean',
|
68
73
|
:'integration' => :'AccountDetailsAndActionsIntegration'
|
69
74
|
}
|
70
75
|
end
|
@@ -72,6 +77,7 @@ module MergeATSClient
|
|
72
77
|
# List of attributes with nullable: true
|
73
78
|
def self.openapi_nullable
|
74
79
|
Set.new([
|
80
|
+
:'is_duplicate',
|
75
81
|
])
|
76
82
|
end
|
77
83
|
|
@@ -122,6 +128,10 @@ module MergeATSClient
|
|
122
128
|
self.webhook_listener_url = attributes[:'webhook_listener_url']
|
123
129
|
end
|
124
130
|
|
131
|
+
if attributes.key?(:'is_duplicate')
|
132
|
+
self.is_duplicate = attributes[:'is_duplicate']
|
133
|
+
end
|
134
|
+
|
125
135
|
if attributes.key?(:'integration')
|
126
136
|
self.integration = attributes[:'integration']
|
127
137
|
end
|
@@ -178,6 +188,7 @@ module MergeATSClient
|
|
178
188
|
end_user_organization_name == o.end_user_organization_name &&
|
179
189
|
end_user_email_address == o.end_user_email_address &&
|
180
190
|
webhook_listener_url == o.webhook_listener_url &&
|
191
|
+
is_duplicate == o.is_duplicate &&
|
181
192
|
integration == o.integration
|
182
193
|
end
|
183
194
|
|
@@ -190,7 +201,7 @@ module MergeATSClient
|
|
190
201
|
# Calculates hash code according to all attributes.
|
191
202
|
# @return [Integer] Hash code
|
192
203
|
def hash
|
193
|
-
[id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, integration].hash
|
204
|
+
[id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, is_duplicate, integration].hash
|
194
205
|
end
|
195
206
|
|
196
207
|
# Builds the object from hash
|
@@ -19,18 +19,28 @@ module MergeATSClient
|
|
19
19
|
INCOMPLETE = "INCOMPLETE".freeze
|
20
20
|
RELINK_NEEDED = "RELINK_NEEDED".freeze
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
new.build_from_hash(value)
|
27
|
-
end
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
28
26
|
|
29
27
|
# Builds the enum from string
|
30
28
|
# @param [String] The enum value in the form of the string
|
31
29
|
# @return [String] The enum value
|
32
30
|
def build_from_hash(value)
|
33
|
-
value
|
31
|
+
@raw_value = value
|
32
|
+
if ["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", ].include? value
|
33
|
+
@value = value
|
34
|
+
else
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
36
|
+
end
|
37
|
+
|
38
|
+
self
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.build_from_hash(value)
|
42
|
+
IssueStatusEnum.new.build_from_hash(value)
|
34
43
|
end
|
35
44
|
end
|
45
|
+
|
36
46
|
end
|
@@ -40,7 +40,7 @@ module MergeATSClient
|
|
40
40
|
|
41
41
|
attr_accessor :remote_data
|
42
42
|
|
43
|
-
# Indicates whether or not this object has been deleted
|
43
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
44
44
|
attr_accessor :remote_was_deleted
|
45
45
|
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -19,18 +19,28 @@ module MergeATSClient
|
|
19
19
|
EMAIL = "EMAIL".freeze
|
20
20
|
OTHER = "OTHER".freeze
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
new.build_from_hash(value)
|
27
|
-
end
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
28
26
|
|
29
27
|
# Builds the enum from string
|
30
28
|
# @param [String] The enum value in the form of the string
|
31
29
|
# @return [String] The enum value
|
32
30
|
def build_from_hash(value)
|
33
|
-
value
|
31
|
+
@raw_value = value
|
32
|
+
if ["NOTE", "EMAIL", "OTHER", ].include? value
|
33
|
+
@value = value
|
34
|
+
else
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
36
|
+
end
|
37
|
+
|
38
|
+
self
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.build_from_hash(value)
|
42
|
+
IssueStatusEnum.new.build_from_hash(value)
|
34
43
|
end
|
35
44
|
end
|
45
|
+
|
36
46
|
end
|
@@ -85,7 +85,7 @@ module MergeATSClient
|
|
85
85
|
:'current_stage' => :'String',
|
86
86
|
:'reject_reason' => :'String',
|
87
87
|
:'remote_data' => :'Array<RemoteData>',
|
88
|
-
:'custom_fields' => :'Hash<String,
|
88
|
+
:'custom_fields' => :'Hash<String, Object>',
|
89
89
|
:'remote_was_deleted' => :'Boolean'
|
90
90
|
}
|
91
91
|
end
|
@@ -83,10 +83,10 @@ module MergeATSClient
|
|
83
83
|
:'credited_to' => :'String',
|
84
84
|
:'current_stage' => :'String',
|
85
85
|
:'reject_reason' => :'String',
|
86
|
-
:'custom_fields' => :'Hash<String,
|
86
|
+
:'custom_fields' => :'Hash<String, Object>',
|
87
87
|
:'remote_template_id' => :'String',
|
88
|
-
:'integration_params' => :'Hash<String,
|
89
|
-
:'linked_account_params' => :'Hash<String,
|
88
|
+
:'integration_params' => :'Hash<String, Object>',
|
89
|
+
:'linked_account_params' => :'Hash<String, Object>'
|
90
90
|
}
|
91
91
|
end
|
92
92
|
|
@@ -60,8 +60,8 @@ module MergeATSClient
|
|
60
60
|
:'file_url' => :'String',
|
61
61
|
:'candidate' => :'String',
|
62
62
|
:'attachment_type' => :'AttachmentTypeEnum',
|
63
|
-
:'integration_params' => :'Hash<String,
|
64
|
-
:'linked_account_params' => :'Hash<String,
|
63
|
+
:'integration_params' => :'Hash<String, Object>',
|
64
|
+
:'linked_account_params' => :'Hash<String, Object>'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -20,18 +20,28 @@ module MergeATSClient
|
|
20
20
|
OFFER_LETTER = "OFFER_LETTER".freeze
|
21
21
|
OTHER = "OTHER".freeze
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
new.build_from_hash(value)
|
28
|
-
end
|
23
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
24
|
+
|
25
|
+
attr_accessor :value
|
26
|
+
attr_accessor :raw_value
|
29
27
|
|
30
28
|
# Builds the enum from string
|
31
29
|
# @param [String] The enum value in the form of the string
|
32
30
|
# @return [String] The enum value
|
33
31
|
def build_from_hash(value)
|
34
|
-
value
|
32
|
+
@raw_value = value
|
33
|
+
if ["RESUME", "COVER_LETTER", "OFFER_LETTER", "OTHER", ].include? value
|
34
|
+
@value = value
|
35
|
+
else
|
36
|
+
@value = MERGE_NONSTANDARD_VALUE
|
37
|
+
end
|
38
|
+
|
39
|
+
self
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.build_from_hash(value)
|
43
|
+
IssueStatusEnum.new.build_from_hash(value)
|
35
44
|
end
|
36
45
|
end
|
46
|
+
|
37
47
|
end
|
@@ -127,7 +127,7 @@ module MergeATSClient
|
|
127
127
|
:'applications' => :'Array<String>',
|
128
128
|
:'attachments' => :'Array<String>',
|
129
129
|
:'remote_data' => :'Array<RemoteData>',
|
130
|
-
:'custom_fields' => :'Hash<String,
|
130
|
+
:'custom_fields' => :'Hash<String, Object>',
|
131
131
|
:'remote_was_deleted' => :'Boolean'
|
132
132
|
}
|
133
133
|
end
|
@@ -125,10 +125,10 @@ module MergeATSClient
|
|
125
125
|
:'tags' => :'Array<String>',
|
126
126
|
:'applications' => :'Array<String>',
|
127
127
|
:'attachments' => :'Array<String>',
|
128
|
-
:'custom_fields' => :'Hash<String,
|
128
|
+
:'custom_fields' => :'Hash<String, Object>',
|
129
129
|
:'remote_template_id' => :'String',
|
130
|
-
:'integration_params' => :'Hash<String,
|
131
|
-
:'linked_account_params' => :'Hash<String,
|
130
|
+
:'integration_params' => :'Hash<String, Object>',
|
131
|
+
:'linked_account_params' => :'Hash<String, Object>'
|
132
132
|
}
|
133
133
|
end
|
134
134
|
|
@@ -21,18 +21,28 @@ module MergeATSClient
|
|
21
21
|
TICKETING = "ticketing".freeze
|
22
22
|
CRM = "crm".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["hris", "ats", "accounting", "ticketing", "crm", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|
@@ -21,18 +21,28 @@ module MergeATSClient
|
|
21
21
|
TICKETING = "ticketing".freeze
|
22
22
|
CRM = "crm".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["hris", "ats", "accounting", "ticketing", "crm", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|