merge_ats_client 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +198 -186
- data/docs/Activity.md +2 -2
- data/docs/Application.md +2 -2
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/Attachment.md +2 -2
- data/docs/Candidate.md +2 -2
- data/docs/CandidatesApi.md +156 -0
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/Department.md +2 -2
- data/docs/EEOC.md +2 -2
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/Job.md +2 -2
- data/docs/JobInterviewStage.md +2 -2
- data/docs/Offer.md +2 -2
- data/docs/Office.md +2 -2
- data/docs/PatchedCandidateEndpointRequest.md +20 -0
- data/docs/PatchedCandidateRequest.md +50 -0
- data/docs/RejectReason.md +2 -2
- data/docs/RemoteData.md +1 -1
- data/docs/RemoteUser.md +2 -2
- data/docs/ScheduledInterview.md +2 -2
- data/docs/Scorecard.md +2 -2
- data/docs/Tag.md +2 -2
- data/lib/merge_ats_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_ats_client/api/candidates_api.rb +150 -0
- data/lib/merge_ats_client/api/delete_account_api.rb +7 -7
- data/lib/merge_ats_client/models/activity.rb +10 -10
- data/lib/merge_ats_client/models/application.rb +10 -10
- data/lib/merge_ats_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_ats_client/models/attachment.rb +10 -10
- data/lib/merge_ats_client/models/candidate.rb +10 -10
- data/lib/merge_ats_client/models/department.rb +10 -10
- data/lib/merge_ats_client/models/eeoc.rb +10 -10
- data/lib/merge_ats_client/models/end_user_details_request.rb +1 -1
- data/lib/merge_ats_client/models/job.rb +10 -10
- data/lib/merge_ats_client/models/job_interview_stage.rb +10 -10
- data/lib/merge_ats_client/models/offer.rb +10 -10
- data/lib/merge_ats_client/models/office.rb +10 -10
- data/lib/merge_ats_client/models/patched_candidate_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/patched_candidate_request.rb +418 -0
- data/lib/merge_ats_client/models/reject_reason.rb +10 -10
- data/lib/merge_ats_client/models/remote_data.rb +3 -4
- data/lib/merge_ats_client/models/remote_user.rb +10 -10
- data/lib/merge_ats_client/models/scheduled_interview.rb +10 -10
- data/lib/merge_ats_client/models/scorecard.rb +10 -10
- data/lib/merge_ats_client/models/tag.rb +10 -10
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +4 -0
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/candidates_api_spec.rb +27 -0
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/models/activity_spec.rb +2 -2
- data/spec/models/application_spec.rb +2 -2
- data/spec/models/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/attachment_spec.rb +2 -2
- data/spec/models/candidate_spec.rb +2 -2
- data/spec/models/department_spec.rb +2 -2
- data/spec/models/eeoc_spec.rb +2 -2
- data/spec/models/job_interview_stage_spec.rb +2 -2
- data/spec/models/job_spec.rb +2 -2
- data/spec/models/offer_spec.rb +2 -2
- data/spec/models/office_spec.rb +2 -2
- data/spec/models/patched_candidate_endpoint_request_spec.rb +40 -0
- data/spec/models/patched_candidate_request_spec.rb +130 -0
- data/spec/models/reject_reason_spec.rb +2 -2
- data/spec/models/remote_user_spec.rb +2 -2
- data/spec/models/scheduled_interview_spec.rb +2 -2
- data/spec/models/scorecard_spec.rb +2 -2
- data/spec/models/tag_spec.rb +2 -2
- metadata +140 -124
data/docs/RejectReason.md
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
9
|
| **name** | **String** | The rejection reason’s name. | [optional] |
|
10
10
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
11
|
-
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
12
11
|
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
12
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
13
13
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
14
14
|
|
15
15
|
## Example
|
@@ -22,8 +22,8 @@ instance = MergeATSClient::RejectReason.new(
|
|
22
22
|
remote_id: 876556788,
|
23
23
|
name: Not passionate enough about APIs.,
|
24
24
|
remote_was_deleted: null,
|
25
|
-
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
26
25
|
modified_at: 2021-10-16T00:00Z,
|
26
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
27
27
|
remote_data: [{"path":"/rejection-reasons","data":["Varies by platform"]}]
|
28
28
|
)
|
29
29
|
```
|
data/docs/RemoteData.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **path** | **String** | | |
|
8
|
-
| **data** | [**
|
8
|
+
| **data** | [**AnyType**](.md) | | [optional][readonly] |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
data/docs/RemoteUser.md
CHANGED
@@ -13,8 +13,8 @@
|
|
13
13
|
| **remote_created_at** | **Time** | When the third party's user was created. | [optional] |
|
14
14
|
| **access_role** | [**AccessRoleEnum**](AccessRoleEnum.md) | The user's role. * `SUPER_ADMIN` - SUPER_ADMIN * `ADMIN` - ADMIN * `TEAM_MEMBER` - TEAM_MEMBER * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER * `INTERVIEWER` - INTERVIEWER | [optional] |
|
15
15
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
16
|
-
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
17
16
|
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
17
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
18
18
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
19
19
|
|
20
20
|
## Example
|
@@ -32,8 +32,8 @@ instance = MergeATSClient::RemoteUser.new(
|
|
32
32
|
remote_created_at: 2020-11-10T00:00Z,
|
33
33
|
access_role: SUPER_ADMIN,
|
34
34
|
remote_was_deleted: null,
|
35
|
-
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
36
35
|
modified_at: 2021-10-16T00:00Z,
|
36
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
37
37
|
remote_data: [{"path":"/users","data":["Varies by platform"]}]
|
38
38
|
)
|
39
39
|
```
|
data/docs/ScheduledInterview.md
CHANGED
@@ -17,8 +17,8 @@
|
|
17
17
|
| **remote_updated_at** | **Time** | When the third party's interview was updated. | [optional] |
|
18
18
|
| **status** | [**ScheduledInterviewStatusEnum**](ScheduledInterviewStatusEnum.md) | The interview's status. * `SCHEDULED` - SCHEDULED * `AWAITING_FEEDBACK` - AWAITING_FEEDBACK * `COMPLETE` - COMPLETE | [optional] |
|
19
19
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
20
|
-
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
21
20
|
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
21
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
22
22
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
23
23
|
|
24
24
|
## Example
|
@@ -40,8 +40,8 @@ instance = MergeATSClient::ScheduledInterview.new(
|
|
40
40
|
remote_updated_at: 2021-10-15T00:00Z,
|
41
41
|
status: SCHEDULED,
|
42
42
|
remote_was_deleted: null,
|
43
|
-
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
44
43
|
modified_at: 2021-10-16T00:00Z,
|
44
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
45
45
|
remote_data: [{"path":"/interviews","data":["Varies by platform"]}]
|
46
46
|
)
|
47
47
|
```
|
data/docs/Scorecard.md
CHANGED
@@ -13,8 +13,8 @@
|
|
13
13
|
| **submitted_at** | **Time** | When the scorecard was submitted. | [optional] |
|
14
14
|
| **overall_recommendation** | [**OverallRecommendationEnum**](OverallRecommendationEnum.md) | The inteviewer's recommendation. * `DEFINITELY_NO` - DEFINITELY_NO * `NO` - NO * `YES` - YES * `STRONG_YES` - STRONG_YES * `NO_DECISION` - NO_DECISION | [optional] |
|
15
15
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
16
|
-
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
17
16
|
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
17
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
18
18
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
19
19
|
|
20
20
|
## Example
|
@@ -32,8 +32,8 @@ instance = MergeATSClient::Scorecard.new(
|
|
32
32
|
submitted_at: 2021-10-15T00:00Z,
|
33
33
|
overall_recommendation: STRONG_YES,
|
34
34
|
remote_was_deleted: null,
|
35
|
-
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
36
35
|
modified_at: 2021-10-16T00:00Z,
|
36
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
37
37
|
remote_data: [{"path":"/ratings","data":["Varies by platform"]}]
|
38
38
|
)
|
39
39
|
```
|
data/docs/Tag.md
CHANGED
@@ -7,8 +7,8 @@
|
|
7
7
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
8
8
|
| **name** | **String** | The tag's name. | [optional] |
|
9
9
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional] |
|
10
|
-
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
11
10
|
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
11
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
12
12
|
| **remote_data** | **Array<Hash<String, AnyType>>** | | [optional] |
|
13
13
|
|
14
14
|
## Example
|
@@ -20,8 +20,8 @@ instance = MergeATSClient::Tag.new(
|
|
20
20
|
remote_id: 4567,
|
21
21
|
name: High-Priority,
|
22
22
|
remote_was_deleted: null,
|
23
|
-
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
24
23
|
modified_at: 2021-10-16T00:00Z,
|
24
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
25
25
|
remote_data: [{"path":"/tags","data":["Varies by platform"]}]
|
26
26
|
)
|
27
27
|
```
|
@@ -0,0 +1,160 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class AsyncPassthroughApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Asynchronously pull data from an endpoint not currently supported by Merge.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param data_passthrough_request [DataPassthroughRequest]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AsyncPassthroughReciept]
|
27
|
+
def async_passthrough_create(x_account_token, data_passthrough_request, opts = {})
|
28
|
+
data, _status_code, _headers = async_passthrough_create_with_http_info(x_account_token, data_passthrough_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Asynchronously pull data from an endpoint not currently supported by Merge.
|
33
|
+
# @param x_account_token [String] Token identifying the end user.
|
34
|
+
# @param data_passthrough_request [DataPassthroughRequest]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AsyncPassthroughReciept, Integer, Hash)>] AsyncPassthroughReciept data, response status code and response headers
|
37
|
+
def async_passthrough_create_with_http_info(x_account_token, data_passthrough_request, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: AsyncPassthroughApi.async_passthrough_create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'x_account_token' is set
|
42
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AsyncPassthroughApi.async_passthrough_create"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'data_passthrough_request' is set
|
46
|
+
if @api_client.config.client_side_validation && data_passthrough_request.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'data_passthrough_request' when calling AsyncPassthroughApi.async_passthrough_create"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/async-passthrough'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
61
|
+
header_params[:'X-Account-Token'] = x_account_token
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(data_passthrough_request)
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'AsyncPassthroughReciept'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"AsyncPassthroughApi.async_passthrough_create",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: AsyncPassthroughApi#async_passthrough_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# Retrieves data from earlier async-passthrough POST request
|
93
|
+
# @param x_account_token [String] Token identifying the end user.
|
94
|
+
# @param async_passthrough_receipt_id [String]
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [RemoteResponse]
|
97
|
+
def async_passthrough_retrieve(x_account_token, async_passthrough_receipt_id, opts = {})
|
98
|
+
data, _status_code, _headers = async_passthrough_retrieve_with_http_info(x_account_token, async_passthrough_receipt_id, opts)
|
99
|
+
data
|
100
|
+
end
|
101
|
+
|
102
|
+
# Retrieves data from earlier async-passthrough POST request
|
103
|
+
# @param x_account_token [String] Token identifying the end user.
|
104
|
+
# @param async_passthrough_receipt_id [String]
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(RemoteResponse, Integer, Hash)>] RemoteResponse data, response status code and response headers
|
107
|
+
def async_passthrough_retrieve_with_http_info(x_account_token, async_passthrough_receipt_id, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: AsyncPassthroughApi.async_passthrough_retrieve ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'x_account_token' is set
|
112
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AsyncPassthroughApi.async_passthrough_retrieve"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'async_passthrough_receipt_id' is set
|
116
|
+
if @api_client.config.client_side_validation && async_passthrough_receipt_id.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'async_passthrough_receipt_id' when calling AsyncPassthroughApi.async_passthrough_retrieve"
|
118
|
+
end
|
119
|
+
# resource path
|
120
|
+
local_var_path = '/async-passthrough/{async_passthrough_receipt_id}'.sub('{' + 'async_passthrough_receipt_id' + '}', CGI.escape(async_passthrough_receipt_id.to_s))
|
121
|
+
|
122
|
+
# query parameters
|
123
|
+
query_params = opts[:query_params] || {}
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = opts[:header_params] || {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
header_params[:'X-Account-Token'] = x_account_token
|
130
|
+
|
131
|
+
# form parameters
|
132
|
+
form_params = opts[:form_params] || {}
|
133
|
+
|
134
|
+
# http body (model)
|
135
|
+
post_body = opts[:debug_body]
|
136
|
+
|
137
|
+
# return_type
|
138
|
+
return_type = opts[:debug_return_type] || 'RemoteResponse'
|
139
|
+
|
140
|
+
# auth_names
|
141
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
142
|
+
|
143
|
+
new_options = opts.merge(
|
144
|
+
:operation => :"AsyncPassthroughApi.async_passthrough_retrieve",
|
145
|
+
:header_params => header_params,
|
146
|
+
:query_params => query_params,
|
147
|
+
:form_params => form_params,
|
148
|
+
:body => post_body,
|
149
|
+
:auth_names => auth_names,
|
150
|
+
:return_type => return_type
|
151
|
+
)
|
152
|
+
|
153
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
154
|
+
if @api_client.config.debugging
|
155
|
+
@api_client.config.logger.debug "API called: AsyncPassthroughApi#async_passthrough_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
156
|
+
end
|
157
|
+
return data, status_code, headers
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
@@ -277,6 +277,74 @@ module MergeATSClient
|
|
277
277
|
return data, status_code, headers
|
278
278
|
end
|
279
279
|
|
280
|
+
# Returns metadata for `Candidate` PATCHs.
|
281
|
+
# @param x_account_token [String] Token identifying the end user.
|
282
|
+
# @param id [String]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [MetaResponse]
|
285
|
+
def candidates_meta_patch_retrieve(x_account_token, id, opts = {})
|
286
|
+
data, _status_code, _headers = candidates_meta_patch_retrieve_with_http_info(x_account_token, id, opts)
|
287
|
+
data
|
288
|
+
end
|
289
|
+
|
290
|
+
# Returns metadata for `Candidate` PATCHs.
|
291
|
+
# @param x_account_token [String] Token identifying the end user.
|
292
|
+
# @param id [String]
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
|
295
|
+
def candidates_meta_patch_retrieve_with_http_info(x_account_token, id, opts = {})
|
296
|
+
if @api_client.config.debugging
|
297
|
+
@api_client.config.logger.debug 'Calling API: CandidatesApi.candidates_meta_patch_retrieve ...'
|
298
|
+
end
|
299
|
+
# verify the required parameter 'x_account_token' is set
|
300
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
301
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CandidatesApi.candidates_meta_patch_retrieve"
|
302
|
+
end
|
303
|
+
# verify the required parameter 'id' is set
|
304
|
+
if @api_client.config.client_side_validation && id.nil?
|
305
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CandidatesApi.candidates_meta_patch_retrieve"
|
306
|
+
end
|
307
|
+
# resource path
|
308
|
+
local_var_path = '/candidates/meta/patch/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
309
|
+
|
310
|
+
# query parameters
|
311
|
+
query_params = opts[:query_params] || {}
|
312
|
+
|
313
|
+
# header parameters
|
314
|
+
header_params = opts[:header_params] || {}
|
315
|
+
# HTTP header 'Accept' (if needed)
|
316
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
317
|
+
header_params[:'X-Account-Token'] = x_account_token
|
318
|
+
|
319
|
+
# form parameters
|
320
|
+
form_params = opts[:form_params] || {}
|
321
|
+
|
322
|
+
# http body (model)
|
323
|
+
post_body = opts[:debug_body]
|
324
|
+
|
325
|
+
# return_type
|
326
|
+
return_type = opts[:debug_return_type] || 'MetaResponse'
|
327
|
+
|
328
|
+
# auth_names
|
329
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
330
|
+
|
331
|
+
new_options = opts.merge(
|
332
|
+
:operation => :"CandidatesApi.candidates_meta_patch_retrieve",
|
333
|
+
:header_params => header_params,
|
334
|
+
:query_params => query_params,
|
335
|
+
:form_params => form_params,
|
336
|
+
:body => post_body,
|
337
|
+
:auth_names => auth_names,
|
338
|
+
:return_type => return_type
|
339
|
+
)
|
340
|
+
|
341
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
342
|
+
if @api_client.config.debugging
|
343
|
+
@api_client.config.logger.debug "API called: CandidatesApi#candidates_meta_patch_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
344
|
+
end
|
345
|
+
return data, status_code, headers
|
346
|
+
end
|
347
|
+
|
280
348
|
# Returns metadata for `Candidate` POSTs.
|
281
349
|
# @param x_account_token [String] Token identifying the end user.
|
282
350
|
# @param [Hash] opts the optional parameters
|
@@ -339,6 +407,88 @@ module MergeATSClient
|
|
339
407
|
return data, status_code, headers
|
340
408
|
end
|
341
409
|
|
410
|
+
# Updates a `Candidate` object with the given `id`.
|
411
|
+
# @param x_account_token [String] Token identifying the end user.
|
412
|
+
# @param id [String]
|
413
|
+
# @param patched_candidate_endpoint_request [PatchedCandidateEndpointRequest]
|
414
|
+
# @param [Hash] opts the optional parameters
|
415
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
416
|
+
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
417
|
+
# @return [CandidateResponse]
|
418
|
+
def candidates_partial_update(x_account_token, id, patched_candidate_endpoint_request, opts = {})
|
419
|
+
data, _status_code, _headers = candidates_partial_update_with_http_info(x_account_token, id, patched_candidate_endpoint_request, opts)
|
420
|
+
data
|
421
|
+
end
|
422
|
+
|
423
|
+
# Updates a `Candidate` object with the given `id`.
|
424
|
+
# @param x_account_token [String] Token identifying the end user.
|
425
|
+
# @param id [String]
|
426
|
+
# @param patched_candidate_endpoint_request [PatchedCandidateEndpointRequest]
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
429
|
+
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
430
|
+
# @return [Array<(CandidateResponse, Integer, Hash)>] CandidateResponse data, response status code and response headers
|
431
|
+
def candidates_partial_update_with_http_info(x_account_token, id, patched_candidate_endpoint_request, opts = {})
|
432
|
+
if @api_client.config.debugging
|
433
|
+
@api_client.config.logger.debug 'Calling API: CandidatesApi.candidates_partial_update ...'
|
434
|
+
end
|
435
|
+
# verify the required parameter 'x_account_token' is set
|
436
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
437
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling CandidatesApi.candidates_partial_update"
|
438
|
+
end
|
439
|
+
# verify the required parameter 'id' is set
|
440
|
+
if @api_client.config.client_side_validation && id.nil?
|
441
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CandidatesApi.candidates_partial_update"
|
442
|
+
end
|
443
|
+
# verify the required parameter 'patched_candidate_endpoint_request' is set
|
444
|
+
if @api_client.config.client_side_validation && patched_candidate_endpoint_request.nil?
|
445
|
+
fail ArgumentError, "Missing the required parameter 'patched_candidate_endpoint_request' when calling CandidatesApi.candidates_partial_update"
|
446
|
+
end
|
447
|
+
# resource path
|
448
|
+
local_var_path = '/candidates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
449
|
+
|
450
|
+
# query parameters
|
451
|
+
query_params = opts[:query_params] || {}
|
452
|
+
query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
|
453
|
+
query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
|
454
|
+
|
455
|
+
# header parameters
|
456
|
+
header_params = opts[:header_params] || {}
|
457
|
+
# HTTP header 'Accept' (if needed)
|
458
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
459
|
+
# HTTP header 'Content-Type'
|
460
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
461
|
+
header_params[:'X-Account-Token'] = x_account_token
|
462
|
+
|
463
|
+
# form parameters
|
464
|
+
form_params = opts[:form_params] || {}
|
465
|
+
|
466
|
+
# http body (model)
|
467
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patched_candidate_endpoint_request)
|
468
|
+
|
469
|
+
# return_type
|
470
|
+
return_type = opts[:debug_return_type] || 'CandidateResponse'
|
471
|
+
|
472
|
+
# auth_names
|
473
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
474
|
+
|
475
|
+
new_options = opts.merge(
|
476
|
+
:operation => :"CandidatesApi.candidates_partial_update",
|
477
|
+
:header_params => header_params,
|
478
|
+
:query_params => query_params,
|
479
|
+
:form_params => form_params,
|
480
|
+
:body => post_body,
|
481
|
+
:auth_names => auth_names,
|
482
|
+
:return_type => return_type
|
483
|
+
)
|
484
|
+
|
485
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
486
|
+
if @api_client.config.debugging
|
487
|
+
@api_client.config.logger.debug "API called: CandidatesApi#candidates_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
488
|
+
end
|
489
|
+
return data, status_code, headers
|
490
|
+
end
|
491
|
+
|
342
492
|
# Returns a `Candidate` object with the given `id`.
|
343
493
|
# @param x_account_token [String] Token identifying the end user.
|
344
494
|
# @param id [String]
|
@@ -23,8 +23,8 @@ module MergeATSClient
|
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [nil]
|
26
|
-
def
|
27
|
-
|
26
|
+
def delete_account_delete(x_account_token, opts = {})
|
27
|
+
delete_account_delete_with_http_info(x_account_token, opts)
|
28
28
|
nil
|
29
29
|
end
|
30
30
|
|
@@ -32,13 +32,13 @@ module MergeATSClient
|
|
32
32
|
# @param x_account_token [String] Token identifying the end user.
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
|
-
def
|
35
|
+
def delete_account_delete_with_http_info(x_account_token, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: DeleteAccountApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: DeleteAccountApi.delete_account_delete ...'
|
38
38
|
end
|
39
39
|
# verify the required parameter 'x_account_token' is set
|
40
40
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DeleteAccountApi.
|
41
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DeleteAccountApi.delete_account_delete"
|
42
42
|
end
|
43
43
|
# resource path
|
44
44
|
local_var_path = '/delete-account'
|
@@ -63,7 +63,7 @@ module MergeATSClient
|
|
63
63
|
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
64
64
|
|
65
65
|
new_options = opts.merge(
|
66
|
-
:operation => :"DeleteAccountApi.
|
66
|
+
:operation => :"DeleteAccountApi.delete_account_delete",
|
67
67
|
:header_params => header_params,
|
68
68
|
:query_params => query_params,
|
69
69
|
:form_params => form_params,
|
@@ -74,7 +74,7 @@ module MergeATSClient
|
|
74
74
|
|
75
75
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
76
76
|
if @api_client.config.debugging
|
77
|
-
@api_client.config.logger.debug "API called: DeleteAccountApi#
|
77
|
+
@api_client.config.logger.debug "API called: DeleteAccountApi#delete_account_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
78
|
end
|
79
79
|
return data, status_code, headers
|
80
80
|
end
|
@@ -45,11 +45,11 @@ module MergeATSClient
|
|
45
45
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
46
46
|
attr_accessor :remote_was_deleted
|
47
47
|
|
48
|
-
attr_accessor :field_mappings
|
49
|
-
|
50
48
|
# This is the datetime that this object was last updated by Merge
|
51
49
|
attr_accessor :modified_at
|
52
50
|
|
51
|
+
attr_accessor :field_mappings
|
52
|
+
|
53
53
|
attr_accessor :remote_data
|
54
54
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -65,8 +65,8 @@ module MergeATSClient
|
|
65
65
|
:'visibility' => :'visibility',
|
66
66
|
:'candidate' => :'candidate',
|
67
67
|
:'remote_was_deleted' => :'remote_was_deleted',
|
68
|
-
:'field_mappings' => :'field_mappings',
|
69
68
|
:'modified_at' => :'modified_at',
|
69
|
+
:'field_mappings' => :'field_mappings',
|
70
70
|
:'remote_data' => :'remote_data'
|
71
71
|
}
|
72
72
|
end
|
@@ -89,8 +89,8 @@ module MergeATSClient
|
|
89
89
|
:'visibility' => :'VisibilityEnum',
|
90
90
|
:'candidate' => :'String',
|
91
91
|
:'remote_was_deleted' => :'Boolean',
|
92
|
-
:'field_mappings' => :'Hash<String, Object>',
|
93
92
|
:'modified_at' => :'Time',
|
93
|
+
:'field_mappings' => :'Hash<String, Object>',
|
94
94
|
:'remote_data' => :'Array<RemoteData>'
|
95
95
|
}
|
96
96
|
end
|
@@ -166,16 +166,16 @@ module MergeATSClient
|
|
166
166
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
167
167
|
end
|
168
168
|
|
169
|
+
if attributes.key?(:'modified_at')
|
170
|
+
self.modified_at = attributes[:'modified_at']
|
171
|
+
end
|
172
|
+
|
169
173
|
if attributes.key?(:'field_mappings')
|
170
174
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
171
175
|
self.field_mappings = value
|
172
176
|
end
|
173
177
|
end
|
174
178
|
|
175
|
-
if attributes.key?(:'modified_at')
|
176
|
-
self.modified_at = attributes[:'modified_at']
|
177
|
-
end
|
178
|
-
|
179
179
|
if attributes.key?(:'remote_data')
|
180
180
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
181
181
|
self.remote_data = value
|
@@ -211,8 +211,8 @@ module MergeATSClient
|
|
211
211
|
visibility == o.visibility &&
|
212
212
|
candidate == o.candidate &&
|
213
213
|
remote_was_deleted == o.remote_was_deleted &&
|
214
|
-
field_mappings == o.field_mappings &&
|
215
214
|
modified_at == o.modified_at &&
|
215
|
+
field_mappings == o.field_mappings &&
|
216
216
|
remote_data == o.remote_data
|
217
217
|
end
|
218
218
|
|
@@ -225,7 +225,7 @@ module MergeATSClient
|
|
225
225
|
# Calculates hash code according to all attributes.
|
226
226
|
# @return [Integer] Hash code
|
227
227
|
def hash
|
228
|
-
[id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, candidate, remote_was_deleted,
|
228
|
+
[id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, candidate, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -47,11 +47,11 @@ module MergeATSClient
|
|
47
47
|
|
48
48
|
attr_accessor :remote_was_deleted
|
49
49
|
|
50
|
-
attr_accessor :field_mappings
|
51
|
-
|
52
50
|
# This is the datetime that this object was last updated by Merge
|
53
51
|
attr_accessor :modified_at
|
54
52
|
|
53
|
+
attr_accessor :field_mappings
|
54
|
+
|
55
55
|
attr_accessor :remote_data
|
56
56
|
|
57
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -68,8 +68,8 @@ module MergeATSClient
|
|
68
68
|
:'current_stage' => :'current_stage',
|
69
69
|
:'reject_reason' => :'reject_reason',
|
70
70
|
:'remote_was_deleted' => :'remote_was_deleted',
|
71
|
-
:'field_mappings' => :'field_mappings',
|
72
71
|
:'modified_at' => :'modified_at',
|
72
|
+
:'field_mappings' => :'field_mappings',
|
73
73
|
:'remote_data' => :'remote_data'
|
74
74
|
}
|
75
75
|
end
|
@@ -93,8 +93,8 @@ module MergeATSClient
|
|
93
93
|
:'current_stage' => :'String',
|
94
94
|
:'reject_reason' => :'String',
|
95
95
|
:'remote_was_deleted' => :'Boolean',
|
96
|
-
:'field_mappings' => :'Hash<String, Object>',
|
97
96
|
:'modified_at' => :'Time',
|
97
|
+
:'field_mappings' => :'Hash<String, Object>',
|
98
98
|
:'remote_data' => :'Array<RemoteData>'
|
99
99
|
}
|
100
100
|
end
|
@@ -175,16 +175,16 @@ module MergeATSClient
|
|
175
175
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
176
176
|
end
|
177
177
|
|
178
|
+
if attributes.key?(:'modified_at')
|
179
|
+
self.modified_at = attributes[:'modified_at']
|
180
|
+
end
|
181
|
+
|
178
182
|
if attributes.key?(:'field_mappings')
|
179
183
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
180
184
|
self.field_mappings = value
|
181
185
|
end
|
182
186
|
end
|
183
187
|
|
184
|
-
if attributes.key?(:'modified_at')
|
185
|
-
self.modified_at = attributes[:'modified_at']
|
186
|
-
end
|
187
|
-
|
188
188
|
if attributes.key?(:'remote_data')
|
189
189
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
190
190
|
self.remote_data = value
|
@@ -221,8 +221,8 @@ module MergeATSClient
|
|
221
221
|
current_stage == o.current_stage &&
|
222
222
|
reject_reason == o.reject_reason &&
|
223
223
|
remote_was_deleted == o.remote_was_deleted &&
|
224
|
-
field_mappings == o.field_mappings &&
|
225
224
|
modified_at == o.modified_at &&
|
225
|
+
field_mappings == o.field_mappings &&
|
226
226
|
remote_data == o.remote_data
|
227
227
|
end
|
228
228
|
|
@@ -235,7 +235,7 @@ module MergeATSClient
|
|
235
235
|
# Calculates hash code according to all attributes.
|
236
236
|
# @return [Integer] Hash code
|
237
237
|
def hash
|
238
|
-
[id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_was_deleted,
|
238
|
+
[id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
239
239
|
end
|
240
240
|
|
241
241
|
# Builds the object from hash
|