merge_ats_client 3.0.0 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -6
- data/docs/AccountIntegration.md +6 -2
- data/docs/ActivitiesApi.md +164 -8
- data/docs/Activity.md +12 -6
- data/docs/ActivityEndpointRequest.md +20 -0
- data/docs/ActivityRequest.md +32 -0
- data/docs/ActivityResponse.md +24 -0
- data/docs/Application.md +12 -10
- data/docs/ApplicationRequest.md +5 -9
- data/docs/ApplicationsApi.md +4 -4
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/Attachment.md +8 -4
- data/docs/AttachmentRequest.md +1 -3
- data/docs/AttachmentsApi.md +13 -9
- data/docs/Candidate.md +8 -6
- data/docs/CandidateRequest.md +1 -9
- data/docs/CandidatesApi.md +172 -13
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/ConditionSchema.md +1 -1
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/Department.md +7 -3
- data/docs/DepartmentsApi.md +4 -4
- data/docs/EEOC.md +12 -8
- data/docs/EeocsApi.md +13 -9
- data/docs/EmailAddress.md +4 -2
- data/docs/EmailAddressRequest.md +1 -1
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +4 -2
- data/docs/ForceResyncApi.md +1 -1
- data/docs/InterviewsApi.md +165 -9
- data/docs/Issue.md +10 -8
- data/docs/IssuesApi.md +6 -6
- data/docs/Job.md +8 -4
- data/docs/JobInterviewStage.md +10 -4
- data/docs/JobInterviewStagesApi.md +4 -4
- data/docs/JobsApi.md +16 -10
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/MetaResponse.md +2 -0
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/Offer.md +10 -6
- data/docs/OffersApi.md +13 -9
- data/docs/Office.md +7 -3
- data/docs/OfficesApi.md +4 -4
- data/docs/PaginatedConditionSchemaList.md +2 -2
- data/docs/PatchedCandidateEndpointRequest.md +20 -0
- data/docs/PatchedCandidateRequest.md +50 -0
- data/docs/PhoneNumber.md +4 -2
- data/docs/PhoneNumberRequest.md +1 -1
- data/docs/RejectReason.md +7 -3
- data/docs/RejectReasonsApi.md +4 -4
- data/docs/RemoteData.md +1 -1
- data/docs/RemoteUser.md +8 -4
- data/docs/ScheduledInterview.md +11 -7
- data/docs/ScheduledInterviewEndpointRequest.md +20 -0
- data/docs/ScheduledInterviewRequest.md +36 -0
- data/docs/ScheduledInterviewResponse.md +24 -0
- data/docs/Scorecard.md +11 -7
- data/docs/ScorecardsApi.md +13 -9
- data/docs/SelectiveSyncApi.md +2 -2
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +3 -1
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tag.md +7 -3
- data/docs/TagsApi.md +4 -4
- data/docs/Url.md +4 -2
- data/docs/UrlRequest.md +1 -1
- data/docs/UsersApi.md +13 -9
- data/lib/merge_ats_client/api/activities_api.rb +160 -8
- data/lib/merge_ats_client/api/applications_api.rb +4 -4
- data/lib/merge_ats_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_ats_client/api/attachments_api.rb +22 -8
- data/lib/merge_ats_client/api/candidates_api.rb +165 -11
- data/lib/merge_ats_client/api/delete_account_api.rb +7 -7
- data/lib/merge_ats_client/api/departments_api.rb +4 -4
- data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
- data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
- data/lib/merge_ats_client/api/interviews_api.rb +160 -8
- data/lib/merge_ats_client/api/issues_api.rb +6 -6
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
- data/lib/merge_ats_client/api/jobs_api.rb +27 -10
- data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_ats_client/api/offers_api.rb +22 -8
- data/lib/merge_ats_client/api/offices_api.rb +4 -4
- data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
- data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
- data/lib/merge_ats_client/api/selective_sync_api.rb +2 -2
- data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
- data/lib/merge_ats_client/api/tags_api.rb +4 -4
- data/lib/merge_ats_client/api/users_api.rb +22 -8
- data/lib/merge_ats_client/models/account_integration.rb +30 -8
- data/lib/merge_ats_client/models/activity.rb +50 -16
- data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/activity_request.rb +300 -0
- data/lib/merge_ats_client/models/activity_response.rb +266 -0
- data/lib/merge_ats_client/models/application.rb +40 -26
- data/lib/merge_ats_client/models/application_request.rb +7 -26
- data/lib/merge_ats_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_ats_client/models/attachment.rb +38 -16
- data/lib/merge_ats_client/models/attachment_request.rb +3 -14
- data/lib/merge_ats_client/models/candidate.rb +36 -27
- data/lib/merge_ats_client/models/candidate_request.rb +3 -49
- data/lib/merge_ats_client/models/categories_enum.rb +3 -1
- data/lib/merge_ats_client/models/category_enum.rb +3 -1
- data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_ats_client/models/condition_schema.rb +1 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_ats_client/models/department.rb +36 -14
- data/lib/merge_ats_client/models/eeoc.rb +42 -19
- data/lib/merge_ats_client/models/email_address.rb +16 -6
- data/lib/merge_ats_client/models/email_address_request.rb +1 -1
- data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +19 -6
- data/lib/merge_ats_client/models/issue.rb +16 -4
- data/lib/merge_ats_client/models/job.rb +38 -16
- data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
- data/lib/merge_ats_client/models/link_token.rb +0 -5
- data/lib/merge_ats_client/models/meta_response.rb +12 -1
- data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_ats_client/models/offer.rb +40 -16
- data/lib/merge_ats_client/models/office.rb +37 -15
- 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/phone_number.rb +16 -6
- data/lib/merge_ats_client/models/phone_number_request.rb +1 -1
- data/lib/merge_ats_client/models/reject_reason.rb +37 -15
- data/lib/merge_ats_client/models/remote_data.rb +3 -4
- data/lib/merge_ats_client/models/remote_user.rb +38 -16
- data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
- data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
- data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
- data/lib/merge_ats_client/models/scorecard.rb +41 -16
- data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_ats_client/models/sync_status.rb +13 -4
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -1
- data/lib/merge_ats_client/models/tag.rb +36 -14
- data/lib/merge_ats_client/models/url.rb +16 -6
- data/lib/merge_ats_client/models/url_request.rb +1 -1
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +13 -1
- data/spec/api/activities_api_spec.rb +31 -4
- data/spec/api/applications_api_spec.rb +2 -2
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/attachments_api_spec.rb +6 -4
- data/spec/api/candidates_api_spec.rb +32 -3
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/api/departments_api_spec.rb +2 -2
- data/spec/api/eeocs_api_spec.rb +6 -4
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/interviews_api_spec.rb +31 -4
- data/spec/api/issues_api_spec.rb +3 -3
- data/spec/api/job_interview_stages_api_spec.rb +2 -2
- data/spec/api/jobs_api_spec.rb +8 -5
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/offers_api_spec.rb +6 -4
- data/spec/api/offices_api_spec.rb +2 -2
- data/spec/api/reject_reasons_api_spec.rb +2 -2
- data/spec/api/scorecards_api_spec.rb +6 -4
- data/spec/api/selective_sync_api_spec.rb +1 -1
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +6 -4
- data/spec/models/account_integration_spec.rb +12 -0
- data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
- data/spec/models/activity_request_spec.rb +76 -0
- data/spec/models/activity_response_spec.rb +52 -0
- data/spec/models/activity_spec.rb +19 -1
- data/spec/models/application_request_spec.rb +0 -12
- data/spec/models/application_spec.rb +9 -3
- data/spec/models/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/attachment_request_spec.rb +0 -6
- data/spec/models/attachment_spec.rb +14 -2
- data/spec/models/candidate_request_spec.rb +0 -24
- data/spec/models/candidate_spec.rb +9 -3
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/department_spec.rb +14 -2
- data/spec/models/eeoc_spec.rb +14 -2
- data/spec/models/email_address_spec.rb +6 -0
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/job_interview_stage_spec.rb +19 -1
- data/spec/models/job_spec.rb +14 -2
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/offer_spec.rb +14 -2
- data/spec/models/office_spec.rb +14 -2
- data/spec/models/{remote_data_request_spec.rb → patched_candidate_endpoint_request_spec.rb} +8 -8
- data/spec/models/patched_candidate_request_spec.rb +130 -0
- data/spec/models/phone_number_spec.rb +6 -0
- data/spec/models/reject_reason_spec.rb +14 -2
- data/spec/models/remote_user_spec.rb +14 -2
- data/spec/models/scheduled_interview_endpoint_request_spec.rb +40 -0
- data/spec/models/scheduled_interview_request_spec.rb +88 -0
- data/spec/models/scheduled_interview_response_spec.rb +52 -0
- data/spec/models/scheduled_interview_spec.rb +14 -2
- data/spec/models/scorecard_spec.rb +14 -2
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tag_spec.rb +14 -2
- data/spec/models/url_spec.rb +6 -0
- metadata +167 -119
@@ -14,24 +14,32 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent
|
17
|
+
# # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent a particular recruiting stage for an `Application`. A given `Application` typically has the `JobInterviewStage` object represented in the current_stage field. ### Usage Example Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company.
|
18
18
|
class JobInterviewStage
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
-
#
|
24
|
+
# Standard stage names are offered by ATS systems but can be modified by users.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
27
|
# This field is populated only if the stage is specific to a particular job. If the stage is generic, this field will not be populated.
|
28
28
|
attr_accessor :job
|
29
29
|
|
30
|
-
|
30
|
+
# The stage’s order, with the lowest values ordered first. If the third-party does not return details on the order of stages, this field will not be populated.
|
31
|
+
attr_accessor :stage_order
|
31
32
|
|
32
33
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
33
34
|
attr_accessor :remote_was_deleted
|
34
35
|
|
36
|
+
# This is the datetime that this object was last updated by Merge
|
37
|
+
attr_accessor :modified_at
|
38
|
+
|
39
|
+
attr_accessor :field_mappings
|
40
|
+
|
41
|
+
attr_accessor :remote_data
|
42
|
+
|
35
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
44
|
def self.attribute_map
|
37
45
|
{
|
@@ -39,8 +47,11 @@ module MergeATSClient
|
|
39
47
|
:'remote_id' => :'remote_id',
|
40
48
|
:'name' => :'name',
|
41
49
|
:'job' => :'job',
|
42
|
-
:'
|
43
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
50
|
+
:'stage_order' => :'stage_order',
|
51
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
52
|
+
:'modified_at' => :'modified_at',
|
53
|
+
:'field_mappings' => :'field_mappings',
|
54
|
+
:'remote_data' => :'remote_data'
|
44
55
|
}
|
45
56
|
end
|
46
57
|
|
@@ -56,8 +67,11 @@ module MergeATSClient
|
|
56
67
|
:'remote_id' => :'String',
|
57
68
|
:'name' => :'String',
|
58
69
|
:'job' => :'String',
|
59
|
-
:'
|
60
|
-
:'remote_was_deleted' => :'Boolean'
|
70
|
+
:'stage_order' => :'Integer',
|
71
|
+
:'remote_was_deleted' => :'Boolean',
|
72
|
+
:'modified_at' => :'Time',
|
73
|
+
:'field_mappings' => :'Hash<String, Object>',
|
74
|
+
:'remote_data' => :'Array<RemoteData>'
|
61
75
|
}
|
62
76
|
end
|
63
77
|
|
@@ -67,7 +81,9 @@ module MergeATSClient
|
|
67
81
|
:'remote_id',
|
68
82
|
:'name',
|
69
83
|
:'job',
|
70
|
-
:'
|
84
|
+
:'stage_order',
|
85
|
+
:'field_mappings',
|
86
|
+
:'remote_data'
|
71
87
|
])
|
72
88
|
end
|
73
89
|
|
@@ -102,30 +118,68 @@ module MergeATSClient
|
|
102
118
|
self.job = attributes[:'job']
|
103
119
|
end
|
104
120
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
|
107
|
-
self.remote_data = value
|
108
|
-
end
|
121
|
+
if attributes.key?(:'stage_order')
|
122
|
+
self.stage_order = attributes[:'stage_order']
|
109
123
|
end
|
110
124
|
|
111
125
|
if attributes.key?(:'remote_was_deleted')
|
112
126
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
113
127
|
end
|
128
|
+
|
129
|
+
if attributes.key?(:'modified_at')
|
130
|
+
self.modified_at = attributes[:'modified_at']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'field_mappings')
|
134
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
135
|
+
self.field_mappings = value
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.key?(:'remote_data')
|
140
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
141
|
+
self.remote_data = value
|
142
|
+
end
|
143
|
+
end
|
114
144
|
end
|
115
145
|
|
116
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
117
147
|
# @return Array for valid properties with the reasons
|
118
148
|
def list_invalid_properties
|
119
149
|
invalid_properties = Array.new
|
150
|
+
if !@stage_order.nil? && @stage_order > 2147483647
|
151
|
+
invalid_properties.push('invalid value for "stage_order", must be smaller than or equal to 2147483647.')
|
152
|
+
end
|
153
|
+
|
154
|
+
if !@stage_order.nil? && @stage_order < -2147483648
|
155
|
+
invalid_properties.push('invalid value for "stage_order", must be greater than or equal to -2147483648.')
|
156
|
+
end
|
157
|
+
|
120
158
|
invalid_properties
|
121
159
|
end
|
122
160
|
|
123
161
|
# Check to see if the all the properties in the model are valid
|
124
162
|
# @return true if the model is valid
|
125
163
|
def valid?
|
164
|
+
return false if !@stage_order.nil? && @stage_order > 2147483647
|
165
|
+
return false if !@stage_order.nil? && @stage_order < -2147483648
|
126
166
|
true
|
127
167
|
end
|
128
168
|
|
169
|
+
# Custom attribute writer method with validation
|
170
|
+
# @param [Object] stage_order Value to be assigned
|
171
|
+
def stage_order=(stage_order)
|
172
|
+
if !stage_order.nil? && stage_order > 2147483647
|
173
|
+
fail ArgumentError, 'invalid value for "stage_order", must be smaller than or equal to 2147483647.'
|
174
|
+
end
|
175
|
+
|
176
|
+
if !stage_order.nil? && stage_order < -2147483648
|
177
|
+
fail ArgumentError, 'invalid value for "stage_order", must be greater than or equal to -2147483648.'
|
178
|
+
end
|
179
|
+
|
180
|
+
@stage_order = stage_order
|
181
|
+
end
|
182
|
+
|
129
183
|
# Checks equality by comparing each attribute.
|
130
184
|
# @param [Object] Object to be compared
|
131
185
|
def ==(o)
|
@@ -135,8 +189,11 @@ module MergeATSClient
|
|
135
189
|
remote_id == o.remote_id &&
|
136
190
|
name == o.name &&
|
137
191
|
job == o.job &&
|
138
|
-
|
139
|
-
remote_was_deleted == o.remote_was_deleted
|
192
|
+
stage_order == o.stage_order &&
|
193
|
+
remote_was_deleted == o.remote_was_deleted &&
|
194
|
+
modified_at == o.modified_at &&
|
195
|
+
field_mappings == o.field_mappings &&
|
196
|
+
remote_data == o.remote_data
|
140
197
|
end
|
141
198
|
|
142
199
|
# @see the `==` method
|
@@ -148,7 +205,7 @@ module MergeATSClient
|
|
148
205
|
# Calculates hash code according to all attributes.
|
149
206
|
# @return [Integer] Hash code
|
150
207
|
def hash
|
151
|
-
[id, remote_id, name, job,
|
208
|
+
[id, remote_id, name, job, stage_order, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
152
209
|
end
|
153
210
|
|
154
211
|
# Builds the object from hash
|
@@ -86,10 +86,6 @@ module MergeATSClient
|
|
86
86
|
invalid_properties.push('invalid value for "link_token", link_token cannot be nil.')
|
87
87
|
end
|
88
88
|
|
89
|
-
if @integration_name.nil?
|
90
|
-
invalid_properties.push('invalid value for "integration_name", integration_name cannot be nil.')
|
91
|
-
end
|
92
|
-
|
93
89
|
invalid_properties
|
94
90
|
end
|
95
91
|
|
@@ -97,7 +93,6 @@ module MergeATSClient
|
|
97
93
|
# @return true if the model is valid
|
98
94
|
def valid?
|
99
95
|
return false if @link_token.nil?
|
100
|
-
return false if @integration_name.nil?
|
101
96
|
true
|
102
97
|
end
|
103
98
|
|
@@ -17,6 +17,8 @@ module MergeATSClient
|
|
17
17
|
class MetaResponse
|
18
18
|
attr_accessor :request_schema
|
19
19
|
|
20
|
+
attr_accessor :remote_field_classes
|
21
|
+
|
20
22
|
attr_accessor :status
|
21
23
|
|
22
24
|
attr_accessor :has_conditional_params
|
@@ -27,6 +29,7 @@ module MergeATSClient
|
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
29
31
|
:'request_schema' => :'request_schema',
|
32
|
+
:'remote_field_classes' => :'remote_field_classes',
|
30
33
|
:'status' => :'status',
|
31
34
|
:'has_conditional_params' => :'has_conditional_params',
|
32
35
|
:'has_required_linked_account_params' => :'has_required_linked_account_params'
|
@@ -42,6 +45,7 @@ module MergeATSClient
|
|
42
45
|
def self.openapi_types
|
43
46
|
{
|
44
47
|
:'request_schema' => :'Hash<String, Object>',
|
48
|
+
:'remote_field_classes' => :'Hash<String, Object>',
|
45
49
|
:'status' => :'LinkedAccountStatus',
|
46
50
|
:'has_conditional_params' => :'Boolean',
|
47
51
|
:'has_required_linked_account_params' => :'Boolean'
|
@@ -75,6 +79,12 @@ module MergeATSClient
|
|
75
79
|
end
|
76
80
|
end
|
77
81
|
|
82
|
+
if attributes.key?(:'remote_field_classes')
|
83
|
+
if (value = attributes[:'remote_field_classes']).is_a?(Hash)
|
84
|
+
self.remote_field_classes = value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
78
88
|
if attributes.key?(:'status')
|
79
89
|
self.status = attributes[:'status']
|
80
90
|
end
|
@@ -122,6 +132,7 @@ module MergeATSClient
|
|
122
132
|
return true if self.equal?(o)
|
123
133
|
self.class == o.class &&
|
124
134
|
request_schema == o.request_schema &&
|
135
|
+
remote_field_classes == o.remote_field_classes &&
|
125
136
|
status == o.status &&
|
126
137
|
has_conditional_params == o.has_conditional_params &&
|
127
138
|
has_required_linked_account_params == o.has_required_linked_account_params
|
@@ -136,7 +147,7 @@ module MergeATSClient
|
|
136
147
|
# Calculates hash code according to all attributes.
|
137
148
|
# @return [Integer] Hash code
|
138
149
|
def hash
|
139
|
-
[request_schema, status, has_conditional_params, has_required_linked_account_params].hash
|
150
|
+
[request_schema, remote_field_classes, status, has_conditional_params, has_required_linked_account_params].hash
|
140
151
|
end
|
141
152
|
|
142
153
|
# Builds the object from hash
|
@@ -22,7 +22,7 @@ module MergeATSClient
|
|
22
22
|
# The data for the form field.
|
23
23
|
attr_accessor :data
|
24
24
|
|
25
|
-
# The encoding of the value of `data`. Defaults to `RAW` if not defined.
|
25
|
+
# The encoding of the value of `data`. Defaults to `RAW` if not defined. * `RAW` - RAW * `BASE64` - BASE64 * `GZIP_BASE64` - GZIP_BASE64
|
26
26
|
attr_accessor :encoding
|
27
27
|
|
28
28
|
# The file name of the form field, if the field is for a file.
|
@@ -14,15 +14,17 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Offer Object ### Description The `Offer` object is used to represent an offer for
|
17
|
+
# # The Offer Object ### Description The `Offer` object is used to represent an offer for a candidate's application specific to a job. ### Usage Example Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers.
|
18
18
|
class Offer
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
+
# The application who is receiving the offer.
|
24
25
|
attr_accessor :application
|
25
26
|
|
27
|
+
# The user who created the offer.
|
26
28
|
attr_accessor :creator
|
27
29
|
|
28
30
|
# When the third party's offer was created.
|
@@ -37,14 +39,19 @@ module MergeATSClient
|
|
37
39
|
# The employment start date on the offer.
|
38
40
|
attr_accessor :start_date
|
39
41
|
|
40
|
-
# The offer's status.
|
42
|
+
# The offer's status. * `DRAFT` - DRAFT * `APPROVAL-SENT` - APPROVAL-SENT * `APPROVED` - APPROVED * `SENT` - SENT * `SENT-MANUALLY` - SENT-MANUALLY * `OPENED` - OPENED * `DENIED` - DENIED * `SIGNED` - SIGNED * `DEPRECATED` - DEPRECATED
|
41
43
|
attr_accessor :status
|
42
44
|
|
43
|
-
attr_accessor :remote_data
|
44
|
-
|
45
45
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
46
46
|
attr_accessor :remote_was_deleted
|
47
47
|
|
48
|
+
# This is the datetime that this object was last updated by Merge
|
49
|
+
attr_accessor :modified_at
|
50
|
+
|
51
|
+
attr_accessor :field_mappings
|
52
|
+
|
53
|
+
attr_accessor :remote_data
|
54
|
+
|
48
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
56
|
def self.attribute_map
|
50
57
|
{
|
@@ -57,8 +64,10 @@ module MergeATSClient
|
|
57
64
|
:'sent_at' => :'sent_at',
|
58
65
|
:'start_date' => :'start_date',
|
59
66
|
:'status' => :'status',
|
60
|
-
:'
|
61
|
-
:'
|
67
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
68
|
+
:'modified_at' => :'modified_at',
|
69
|
+
:'field_mappings' => :'field_mappings',
|
70
|
+
:'remote_data' => :'remote_data'
|
62
71
|
}
|
63
72
|
end
|
64
73
|
|
@@ -79,8 +88,10 @@ module MergeATSClient
|
|
79
88
|
:'sent_at' => :'Time',
|
80
89
|
:'start_date' => :'Time',
|
81
90
|
:'status' => :'OfferStatusEnum',
|
82
|
-
:'
|
83
|
-
:'
|
91
|
+
:'remote_was_deleted' => :'Boolean',
|
92
|
+
:'modified_at' => :'Time',
|
93
|
+
:'field_mappings' => :'Hash<String, Object>',
|
94
|
+
:'remote_data' => :'Array<RemoteData>'
|
84
95
|
}
|
85
96
|
end
|
86
97
|
|
@@ -95,7 +106,8 @@ module MergeATSClient
|
|
95
106
|
:'sent_at',
|
96
107
|
:'start_date',
|
97
108
|
:'status',
|
98
|
-
:'
|
109
|
+
:'field_mappings',
|
110
|
+
:'remote_data'
|
99
111
|
])
|
100
112
|
end
|
101
113
|
|
@@ -150,15 +162,25 @@ module MergeATSClient
|
|
150
162
|
self.status = attributes[:'status']
|
151
163
|
end
|
152
164
|
|
165
|
+
if attributes.key?(:'remote_was_deleted')
|
166
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'modified_at')
|
170
|
+
self.modified_at = attributes[:'modified_at']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.key?(:'field_mappings')
|
174
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
175
|
+
self.field_mappings = value
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
153
179
|
if attributes.key?(:'remote_data')
|
154
180
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
155
181
|
self.remote_data = value
|
156
182
|
end
|
157
183
|
end
|
158
|
-
|
159
|
-
if attributes.key?(:'remote_was_deleted')
|
160
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
161
|
-
end
|
162
184
|
end
|
163
185
|
|
164
186
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -188,8 +210,10 @@ module MergeATSClient
|
|
188
210
|
sent_at == o.sent_at &&
|
189
211
|
start_date == o.start_date &&
|
190
212
|
status == o.status &&
|
191
|
-
|
192
|
-
|
213
|
+
remote_was_deleted == o.remote_was_deleted &&
|
214
|
+
modified_at == o.modified_at &&
|
215
|
+
field_mappings == o.field_mappings &&
|
216
|
+
remote_data == o.remote_data
|
193
217
|
end
|
194
218
|
|
195
219
|
# @see the `==` method
|
@@ -201,7 +225,7 @@ module MergeATSClient
|
|
201
225
|
# Calculates hash code according to all attributes.
|
202
226
|
# @return [Integer] Hash code
|
203
227
|
def hash
|
204
|
-
[id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status,
|
228
|
+
[id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
205
229
|
end
|
206
230
|
|
207
231
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Office Object ### Description The `Office` object is used to represent an office within a company. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
|
17
|
+
# # The Office Object ### Description The `Office` object is used to represent an office within a company. A given `Job` has the `Office` ID in its offices field. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
|
18
18
|
class Office
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -27,11 +27,16 @@ module MergeATSClient
|
|
27
27
|
# The office's location.
|
28
28
|
attr_accessor :location
|
29
29
|
|
30
|
-
attr_accessor :remote_data
|
31
|
-
|
32
30
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
33
31
|
attr_accessor :remote_was_deleted
|
34
32
|
|
33
|
+
# This is the datetime that this object was last updated by Merge
|
34
|
+
attr_accessor :modified_at
|
35
|
+
|
36
|
+
attr_accessor :field_mappings
|
37
|
+
|
38
|
+
attr_accessor :remote_data
|
39
|
+
|
35
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
41
|
def self.attribute_map
|
37
42
|
{
|
@@ -39,8 +44,10 @@ module MergeATSClient
|
|
39
44
|
:'remote_id' => :'remote_id',
|
40
45
|
:'name' => :'name',
|
41
46
|
:'location' => :'location',
|
42
|
-
:'
|
43
|
-
:'
|
47
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
48
|
+
:'modified_at' => :'modified_at',
|
49
|
+
:'field_mappings' => :'field_mappings',
|
50
|
+
:'remote_data' => :'remote_data'
|
44
51
|
}
|
45
52
|
end
|
46
53
|
|
@@ -56,8 +63,10 @@ module MergeATSClient
|
|
56
63
|
:'remote_id' => :'String',
|
57
64
|
:'name' => :'String',
|
58
65
|
:'location' => :'String',
|
59
|
-
:'
|
60
|
-
:'
|
66
|
+
:'remote_was_deleted' => :'Boolean',
|
67
|
+
:'modified_at' => :'Time',
|
68
|
+
:'field_mappings' => :'Hash<String, Object>',
|
69
|
+
:'remote_data' => :'Array<RemoteData>'
|
61
70
|
}
|
62
71
|
end
|
63
72
|
|
@@ -67,7 +76,8 @@ module MergeATSClient
|
|
67
76
|
:'remote_id',
|
68
77
|
:'name',
|
69
78
|
:'location',
|
70
|
-
:'
|
79
|
+
:'field_mappings',
|
80
|
+
:'remote_data'
|
71
81
|
])
|
72
82
|
end
|
73
83
|
|
@@ -102,15 +112,25 @@ module MergeATSClient
|
|
102
112
|
self.location = attributes[:'location']
|
103
113
|
end
|
104
114
|
|
115
|
+
if attributes.key?(:'remote_was_deleted')
|
116
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'modified_at')
|
120
|
+
self.modified_at = attributes[:'modified_at']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'field_mappings')
|
124
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
125
|
+
self.field_mappings = value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
105
129
|
if attributes.key?(:'remote_data')
|
106
130
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
107
131
|
self.remote_data = value
|
108
132
|
end
|
109
133
|
end
|
110
|
-
|
111
|
-
if attributes.key?(:'remote_was_deleted')
|
112
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
113
|
-
end
|
114
134
|
end
|
115
135
|
|
116
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -135,8 +155,10 @@ module MergeATSClient
|
|
135
155
|
remote_id == o.remote_id &&
|
136
156
|
name == o.name &&
|
137
157
|
location == o.location &&
|
138
|
-
|
139
|
-
|
158
|
+
remote_was_deleted == o.remote_was_deleted &&
|
159
|
+
modified_at == o.modified_at &&
|
160
|
+
field_mappings == o.field_mappings &&
|
161
|
+
remote_data == o.remote_data
|
140
162
|
end
|
141
163
|
|
142
164
|
# @see the `==` method
|
@@ -148,7 +170,7 @@ module MergeATSClient
|
|
148
170
|
# Calculates hash code according to all attributes.
|
149
171
|
# @return [Integer] Hash code
|
150
172
|
def hash
|
151
|
-
[id, remote_id, name, location,
|
173
|
+
[id, remote_id, name, location, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
152
174
|
end
|
153
175
|
|
154
176
|
# Builds the object from hash
|