merge_ats_client 2.0.1 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +16 -0
- data/README.md +186 -167
- 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/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 +16 -13
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +1 -1
- 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 +6 -2
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- 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/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- 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/OperatorSchema.md +20 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PhoneNumber.md +4 -2
- data/docs/PhoneNumberRequest.md +6 -2
- data/docs/RejectReason.md +7 -3
- data/docs/RejectReasonsApi.md +4 -4
- 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 +233 -0
- 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 +6 -2
- 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/attachments_api.rb +22 -8
- data/lib/merge_ats_client/api/candidates_api.rb +15 -11
- 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 +225 -0
- 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/access_role_enum.rb +1 -1
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +1 -1
- 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/activity_type_enum.rb +1 -1
- 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/attachment.rb +38 -16
- data/lib/merge_ats_client/models/attachment_request.rb +3 -14
- data/lib/merge_ats_client/models/attachment_type_enum.rb +1 -1
- 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 +4 -2
- data/lib/merge_ats_client/models/category_enum.rb +4 -2
- data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_ats_client/models/condition_schema.rb +298 -0
- data/lib/merge_ats_client/models/condition_type_enum.rb +50 -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/disability_status_enum.rb +1 -1
- 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 +30 -6
- data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_ats_client/models/encoding_enum.rb +1 -1
- data/lib/merge_ats_client/models/end_user_details_request.rb +20 -7
- data/lib/merge_ats_client/models/gender_enum.rb +1 -1
- 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/job_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/link_token.rb +0 -5
- data/lib/merge_ats_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_ats_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_ats_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_ats_client/models/meta_response.rb +12 -1
- data/lib/merge_ats_client/models/method_enum.rb +1 -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/offer_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/office.rb +37 -15
- data/lib/merge_ats_client/models/operator_schema.rb +229 -0
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
- data/lib/merge_ats_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_ats_client/models/phone_number.rb +16 -6
- data/lib/merge_ats_client/models/phone_number_request.rb +30 -6
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/race_enum.rb +1 -1
- data/lib/merge_ats_client/models/reason_enum.rb +1 -1
- data/lib/merge_ats_client/models/reject_reason.rb +37 -15
- data/lib/merge_ats_client/models/remote_user.rb +38 -16
- data/lib/merge_ats_client/models/request_format_enum.rb +1 -1
- data/lib/merge_ats_client/models/response_type_enum.rb +1 -1
- 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/scheduled_interview_status_enum.rb +1 -1
- 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 +3 -2
- data/lib/merge_ats_client/models/tag.rb +36 -14
- data/lib/merge_ats_client/models/url.rb +17 -7
- data/lib/merge_ats_client/models/url_request.rb +31 -7
- data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
- data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
- data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +19 -1
- data/spec/api/activities_api_spec.rb +31 -4
- data/spec/api/applications_api_spec.rb +2 -2
- data/spec/api/attachments_api_spec.rb +6 -4
- data/spec/api/candidates_api_spec.rb +5 -3
- 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 +72 -0
- 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/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/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/department_spec.rb +14 -2
- data/spec/models/eeoc_spec.rb +14 -2
- data/spec/models/email_address_request_spec.rb +12 -0
- 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/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- 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 → operator_schema_spec.rb} +8 -8
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/phone_number_request_spec.rb +12 -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_request_spec.rb +12 -0
- data/spec/models/url_spec.rb +6 -0
- metadata +182 -109
@@ -0,0 +1,240 @@
|
|
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 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeATSClient
|
17
|
+
class PaginatedConditionSchemaList
|
18
|
+
attr_accessor :_next
|
19
|
+
|
20
|
+
attr_accessor :previous
|
21
|
+
|
22
|
+
attr_accessor :results
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'_next' => :'next',
|
28
|
+
:'previous' => :'previous',
|
29
|
+
:'results' => :'results'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'_next' => :'String',
|
42
|
+
:'previous' => :'String',
|
43
|
+
:'results' => :'Array<ConditionSchema>'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
:'_next',
|
51
|
+
:'previous',
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
if (!attributes.is_a?(Hash))
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::PaginatedConditionSchemaList` initialize method"
|
60
|
+
end
|
61
|
+
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::PaginatedConditionSchemaList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
|
+
end
|
67
|
+
h[k.to_sym] = v
|
68
|
+
}
|
69
|
+
|
70
|
+
if attributes.key?(:'_next')
|
71
|
+
self._next = attributes[:'_next']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'previous')
|
75
|
+
self.previous = attributes[:'previous']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'results')
|
79
|
+
if (value = attributes[:'results']).is_a?(Array)
|
80
|
+
self.results = value
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
invalid_properties
|
90
|
+
end
|
91
|
+
|
92
|
+
# Check to see if the all the properties in the model are valid
|
93
|
+
# @return true if the model is valid
|
94
|
+
def valid?
|
95
|
+
true
|
96
|
+
end
|
97
|
+
|
98
|
+
# Checks equality by comparing each attribute.
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def ==(o)
|
101
|
+
return true if self.equal?(o)
|
102
|
+
self.class == o.class &&
|
103
|
+
_next == o._next &&
|
104
|
+
previous == o.previous &&
|
105
|
+
results == o.results
|
106
|
+
end
|
107
|
+
|
108
|
+
# @see the `==` method
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def eql?(o)
|
111
|
+
self == o
|
112
|
+
end
|
113
|
+
|
114
|
+
# Calculates hash code according to all attributes.
|
115
|
+
# @return [Integer] Hash code
|
116
|
+
def hash
|
117
|
+
[_next, previous, results].hash
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def self.build_from_hash(attributes)
|
124
|
+
new.build_from_hash(attributes)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the object from hash
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
# @return [Object] Returns the model itself
|
130
|
+
def build_from_hash(attributes)
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
132
|
+
self.class.openapi_types.each_pair do |key, type|
|
133
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
|
+
self.send("#{key}=", nil)
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
136
|
+
# check to ensure the input is an array given that the attribute
|
137
|
+
# is documented as an array but the input is not
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
140
|
+
end
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
self
|
147
|
+
end
|
148
|
+
|
149
|
+
# Deserializes the data based on type
|
150
|
+
# @param string type Data type
|
151
|
+
# @param string value Value to be deserialized
|
152
|
+
# @return [Object] Deserialized data
|
153
|
+
def _deserialize(type, value)
|
154
|
+
case type.to_sym
|
155
|
+
when :Time
|
156
|
+
Time.parse(value)
|
157
|
+
when :Date
|
158
|
+
Date.parse(value)
|
159
|
+
when :String
|
160
|
+
value
|
161
|
+
when :Integer
|
162
|
+
value.to_i
|
163
|
+
when :Float
|
164
|
+
value.to_f
|
165
|
+
when :Boolean
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
+
true
|
168
|
+
else
|
169
|
+
false
|
170
|
+
end
|
171
|
+
when :Object
|
172
|
+
# generic object (usually a Hash), return directly
|
173
|
+
value
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each do |k, v|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
else # model
|
186
|
+
# models (e.g. Pet) or oneOf
|
187
|
+
klass = MergeATSClient.const_get(type)
|
188
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the string representation of the object
|
193
|
+
# @return [String] String presentation of the object
|
194
|
+
def to_s
|
195
|
+
to_hash.to_s
|
196
|
+
end
|
197
|
+
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
200
|
+
def to_body
|
201
|
+
to_hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the object in the form of hash
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_hash
|
207
|
+
hash = {}
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
209
|
+
value = self.send(attr)
|
210
|
+
if value.nil?
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
213
|
+
end
|
214
|
+
|
215
|
+
hash[param] = _to_hash(value)
|
216
|
+
end
|
217
|
+
hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Outputs non-array value in the form of hash
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
222
|
+
# @param [Object] value Any valid value
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
224
|
+
def _to_hash(value)
|
225
|
+
if value.is_a?(Array)
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
227
|
+
elsif value.is_a?(Hash)
|
228
|
+
{}.tap do |hash|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
230
|
+
end
|
231
|
+
elsif value.respond_to? :to_hash
|
232
|
+
value.to_hash
|
233
|
+
else
|
234
|
+
value
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
@@ -19,14 +19,18 @@ module MergeATSClient
|
|
19
19
|
# The phone number.
|
20
20
|
attr_accessor :value
|
21
21
|
|
22
|
-
# The type of phone number.
|
22
|
+
# The type of phone number. * `HOME` - HOME * `WORK` - WORK * `MOBILE` - MOBILE * `SKYPE` - SKYPE * `OTHER` - OTHER
|
23
23
|
attr_accessor :phone_number_type
|
24
24
|
|
25
|
+
# This is the datetime that this object was last updated by Merge
|
26
|
+
attr_accessor :modified_at
|
27
|
+
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'value' => :'value',
|
29
|
-
:'phone_number_type' => :'phone_number_type'
|
32
|
+
:'phone_number_type' => :'phone_number_type',
|
33
|
+
:'modified_at' => :'modified_at'
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -39,7 +43,8 @@ module MergeATSClient
|
|
39
43
|
def self.openapi_types
|
40
44
|
{
|
41
45
|
:'value' => :'String',
|
42
|
-
:'phone_number_type' => :'PhoneNumberTypeEnum'
|
46
|
+
:'phone_number_type' => :'PhoneNumberTypeEnum',
|
47
|
+
:'modified_at' => :'Time'
|
43
48
|
}
|
44
49
|
end
|
45
50
|
|
@@ -47,7 +52,7 @@ module MergeATSClient
|
|
47
52
|
def self.openapi_nullable
|
48
53
|
Set.new([
|
49
54
|
:'value',
|
50
|
-
:'phone_number_type'
|
55
|
+
:'phone_number_type',
|
51
56
|
])
|
52
57
|
end
|
53
58
|
|
@@ -73,6 +78,10 @@ module MergeATSClient
|
|
73
78
|
if attributes.key?(:'phone_number_type')
|
74
79
|
self.phone_number_type = attributes[:'phone_number_type']
|
75
80
|
end
|
81
|
+
|
82
|
+
if attributes.key?(:'modified_at')
|
83
|
+
self.modified_at = attributes[:'modified_at']
|
84
|
+
end
|
76
85
|
end
|
77
86
|
|
78
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,7 +103,8 @@ module MergeATSClient
|
|
94
103
|
return true if self.equal?(o)
|
95
104
|
self.class == o.class &&
|
96
105
|
value == o.value &&
|
97
|
-
phone_number_type == o.phone_number_type
|
106
|
+
phone_number_type == o.phone_number_type &&
|
107
|
+
modified_at == o.modified_at
|
98
108
|
end
|
99
109
|
|
100
110
|
# @see the `==` method
|
@@ -106,7 +116,7 @@ module MergeATSClient
|
|
106
116
|
# Calculates hash code according to all attributes.
|
107
117
|
# @return [Integer] Hash code
|
108
118
|
def hash
|
109
|
-
[value, phone_number_type].hash
|
119
|
+
[value, phone_number_type, modified_at].hash
|
110
120
|
end
|
111
121
|
|
112
122
|
# Builds the object from hash
|
@@ -19,14 +19,20 @@ module MergeATSClient
|
|
19
19
|
# The phone number.
|
20
20
|
attr_accessor :value
|
21
21
|
|
22
|
-
# The type of phone number.
|
22
|
+
# The type of phone number. * `HOME` - HOME * `WORK` - WORK * `MOBILE` - MOBILE * `SKYPE` - SKYPE * `OTHER` - OTHER
|
23
23
|
attr_accessor :phone_number_type
|
24
24
|
|
25
|
+
attr_accessor :integration_params
|
26
|
+
|
27
|
+
attr_accessor :linked_account_params
|
28
|
+
|
25
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
30
|
def self.attribute_map
|
27
31
|
{
|
28
32
|
:'value' => :'value',
|
29
|
-
:'phone_number_type' => :'phone_number_type'
|
33
|
+
:'phone_number_type' => :'phone_number_type',
|
34
|
+
:'integration_params' => :'integration_params',
|
35
|
+
:'linked_account_params' => :'linked_account_params'
|
30
36
|
}
|
31
37
|
end
|
32
38
|
|
@@ -39,7 +45,9 @@ module MergeATSClient
|
|
39
45
|
def self.openapi_types
|
40
46
|
{
|
41
47
|
:'value' => :'String',
|
42
|
-
:'phone_number_type' => :'PhoneNumberTypeEnum'
|
48
|
+
:'phone_number_type' => :'PhoneNumberTypeEnum',
|
49
|
+
:'integration_params' => :'Hash<String, Object>',
|
50
|
+
:'linked_account_params' => :'Hash<String, Object>'
|
43
51
|
}
|
44
52
|
end
|
45
53
|
|
@@ -47,7 +55,9 @@ module MergeATSClient
|
|
47
55
|
def self.openapi_nullable
|
48
56
|
Set.new([
|
49
57
|
:'value',
|
50
|
-
:'phone_number_type'
|
58
|
+
:'phone_number_type',
|
59
|
+
:'integration_params',
|
60
|
+
:'linked_account_params'
|
51
61
|
])
|
52
62
|
end
|
53
63
|
|
@@ -73,6 +83,18 @@ module MergeATSClient
|
|
73
83
|
if attributes.key?(:'phone_number_type')
|
74
84
|
self.phone_number_type = attributes[:'phone_number_type']
|
75
85
|
end
|
86
|
+
|
87
|
+
if attributes.key?(:'integration_params')
|
88
|
+
if (value = attributes[:'integration_params']).is_a?(Hash)
|
89
|
+
self.integration_params = value
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'linked_account_params')
|
94
|
+
if (value = attributes[:'linked_account_params']).is_a?(Hash)
|
95
|
+
self.linked_account_params = value
|
96
|
+
end
|
97
|
+
end
|
76
98
|
end
|
77
99
|
|
78
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,7 +116,9 @@ module MergeATSClient
|
|
94
116
|
return true if self.equal?(o)
|
95
117
|
self.class == o.class &&
|
96
118
|
value == o.value &&
|
97
|
-
phone_number_type == o.phone_number_type
|
119
|
+
phone_number_type == o.phone_number_type &&
|
120
|
+
integration_params == o.integration_params &&
|
121
|
+
linked_account_params == o.linked_account_params
|
98
122
|
end
|
99
123
|
|
100
124
|
# @see the `==` method
|
@@ -106,7 +130,7 @@ module MergeATSClient
|
|
106
130
|
# Calculates hash code according to all attributes.
|
107
131
|
# @return [Integer] Hash code
|
108
132
|
def hash
|
109
|
-
[value, phone_number_type].hash
|
133
|
+
[value, phone_number_type, integration_params, linked_account_params].hash
|
110
134
|
end
|
111
135
|
|
112
136
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The RejectReason Object ### Description The `RejectReason` object is used to represent a reason for rejecting an application. ### Usage Example Fetch from the `LIST RejectReasons` endpoint and filter by `ID` to show all reasons.
|
17
|
+
# # The RejectReason Object ### Description The `RejectReason` object is used to represent a reason for rejecting an application. These can typically be configured within an ATS system. ### Usage Example Fetch from the `LIST RejectReasons` endpoint and filter by `ID` to show all reasons.
|
18
18
|
class RejectReason
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -24,19 +24,26 @@ module MergeATSClient
|
|
24
24
|
# The rejection reason’s name.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
-
attr_accessor :remote_data
|
28
|
-
|
29
27
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
30
28
|
attr_accessor :remote_was_deleted
|
31
29
|
|
30
|
+
attr_accessor :field_mappings
|
31
|
+
|
32
|
+
# This is the datetime that this object was last updated by Merge
|
33
|
+
attr_accessor :modified_at
|
34
|
+
|
35
|
+
attr_accessor :remote_data
|
36
|
+
|
32
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
38
|
def self.attribute_map
|
34
39
|
{
|
35
40
|
:'id' => :'id',
|
36
41
|
:'remote_id' => :'remote_id',
|
37
42
|
:'name' => :'name',
|
38
|
-
:'
|
39
|
-
:'
|
43
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
44
|
+
:'field_mappings' => :'field_mappings',
|
45
|
+
:'modified_at' => :'modified_at',
|
46
|
+
:'remote_data' => :'remote_data'
|
40
47
|
}
|
41
48
|
end
|
42
49
|
|
@@ -51,8 +58,10 @@ module MergeATSClient
|
|
51
58
|
:'id' => :'String',
|
52
59
|
:'remote_id' => :'String',
|
53
60
|
:'name' => :'String',
|
54
|
-
:'
|
55
|
-
:'
|
61
|
+
:'remote_was_deleted' => :'Boolean',
|
62
|
+
:'field_mappings' => :'Hash<String, Object>',
|
63
|
+
:'modified_at' => :'Time',
|
64
|
+
:'remote_data' => :'Array<RemoteData>'
|
56
65
|
}
|
57
66
|
end
|
58
67
|
|
@@ -61,7 +70,8 @@ module MergeATSClient
|
|
61
70
|
Set.new([
|
62
71
|
:'remote_id',
|
63
72
|
:'name',
|
64
|
-
:'
|
73
|
+
:'field_mappings',
|
74
|
+
:'remote_data'
|
65
75
|
])
|
66
76
|
end
|
67
77
|
|
@@ -92,15 +102,25 @@ module MergeATSClient
|
|
92
102
|
self.name = attributes[:'name']
|
93
103
|
end
|
94
104
|
|
105
|
+
if attributes.key?(:'remote_was_deleted')
|
106
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'field_mappings')
|
110
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
111
|
+
self.field_mappings = value
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'modified_at')
|
116
|
+
self.modified_at = attributes[:'modified_at']
|
117
|
+
end
|
118
|
+
|
95
119
|
if attributes.key?(:'remote_data')
|
96
120
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
97
121
|
self.remote_data = value
|
98
122
|
end
|
99
123
|
end
|
100
|
-
|
101
|
-
if attributes.key?(:'remote_was_deleted')
|
102
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
103
|
-
end
|
104
124
|
end
|
105
125
|
|
106
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -124,8 +144,10 @@ module MergeATSClient
|
|
124
144
|
id == o.id &&
|
125
145
|
remote_id == o.remote_id &&
|
126
146
|
name == o.name &&
|
127
|
-
|
128
|
-
|
147
|
+
remote_was_deleted == o.remote_was_deleted &&
|
148
|
+
field_mappings == o.field_mappings &&
|
149
|
+
modified_at == o.modified_at &&
|
150
|
+
remote_data == o.remote_data
|
129
151
|
end
|
130
152
|
|
131
153
|
# @see the `==` method
|
@@ -137,7 +159,7 @@ module MergeATSClient
|
|
137
159
|
# Calculates hash code according to all attributes.
|
138
160
|
# @return [Integer] Hash code
|
139
161
|
def hash
|
140
|
-
[id, remote_id, name,
|
162
|
+
[id, remote_id, name, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
141
163
|
end
|
142
164
|
|
143
165
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The RemoteUser Object ### Description The `RemoteUser` object is used to represent a
|
17
|
+
# # The RemoteUser Object ### Description The `RemoteUser` object is used to represent a user with a login to the ATS system. ### Usage Example Fetch from the `LIST RemoteUsers` endpoint to show all users for a third party.
|
18
18
|
class RemoteUser
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -36,14 +36,19 @@ module MergeATSClient
|
|
36
36
|
# When the third party's user was created.
|
37
37
|
attr_accessor :remote_created_at
|
38
38
|
|
39
|
-
# The user's role.
|
39
|
+
# The user's role. * `SUPER_ADMIN` - SUPER_ADMIN * `ADMIN` - ADMIN * `TEAM_MEMBER` - TEAM_MEMBER * `LIMITED_TEAM_MEMBER` - LIMITED_TEAM_MEMBER * `INTERVIEWER` - INTERVIEWER
|
40
40
|
attr_accessor :access_role
|
41
41
|
|
42
|
-
attr_accessor :remote_data
|
43
|
-
|
44
42
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
45
43
|
attr_accessor :remote_was_deleted
|
46
44
|
|
45
|
+
attr_accessor :field_mappings
|
46
|
+
|
47
|
+
# This is the datetime that this object was last updated by Merge
|
48
|
+
attr_accessor :modified_at
|
49
|
+
|
50
|
+
attr_accessor :remote_data
|
51
|
+
|
47
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
53
|
def self.attribute_map
|
49
54
|
{
|
@@ -55,8 +60,10 @@ module MergeATSClient
|
|
55
60
|
:'disabled' => :'disabled',
|
56
61
|
:'remote_created_at' => :'remote_created_at',
|
57
62
|
:'access_role' => :'access_role',
|
58
|
-
:'
|
59
|
-
:'
|
63
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
64
|
+
:'field_mappings' => :'field_mappings',
|
65
|
+
:'modified_at' => :'modified_at',
|
66
|
+
:'remote_data' => :'remote_data'
|
60
67
|
}
|
61
68
|
end
|
62
69
|
|
@@ -76,8 +83,10 @@ module MergeATSClient
|
|
76
83
|
:'disabled' => :'Boolean',
|
77
84
|
:'remote_created_at' => :'Time',
|
78
85
|
:'access_role' => :'AccessRoleEnum',
|
79
|
-
:'
|
80
|
-
:'
|
86
|
+
:'remote_was_deleted' => :'Boolean',
|
87
|
+
:'field_mappings' => :'Hash<String, Object>',
|
88
|
+
:'modified_at' => :'Time',
|
89
|
+
:'remote_data' => :'Array<RemoteData>'
|
81
90
|
}
|
82
91
|
end
|
83
92
|
|
@@ -91,7 +100,8 @@ module MergeATSClient
|
|
91
100
|
:'disabled',
|
92
101
|
:'remote_created_at',
|
93
102
|
:'access_role',
|
94
|
-
:'
|
103
|
+
:'field_mappings',
|
104
|
+
:'remote_data'
|
95
105
|
])
|
96
106
|
end
|
97
107
|
|
@@ -142,15 +152,25 @@ module MergeATSClient
|
|
142
152
|
self.access_role = attributes[:'access_role']
|
143
153
|
end
|
144
154
|
|
155
|
+
if attributes.key?(:'remote_was_deleted')
|
156
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'field_mappings')
|
160
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
161
|
+
self.field_mappings = value
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'modified_at')
|
166
|
+
self.modified_at = attributes[:'modified_at']
|
167
|
+
end
|
168
|
+
|
145
169
|
if attributes.key?(:'remote_data')
|
146
170
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
147
171
|
self.remote_data = value
|
148
172
|
end
|
149
173
|
end
|
150
|
-
|
151
|
-
if attributes.key?(:'remote_was_deleted')
|
152
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
153
|
-
end
|
154
174
|
end
|
155
175
|
|
156
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,8 +214,10 @@ module MergeATSClient
|
|
194
214
|
disabled == o.disabled &&
|
195
215
|
remote_created_at == o.remote_created_at &&
|
196
216
|
access_role == o.access_role &&
|
197
|
-
|
198
|
-
|
217
|
+
remote_was_deleted == o.remote_was_deleted &&
|
218
|
+
field_mappings == o.field_mappings &&
|
219
|
+
modified_at == o.modified_at &&
|
220
|
+
remote_data == o.remote_data
|
199
221
|
end
|
200
222
|
|
201
223
|
# @see the `==` method
|
@@ -207,7 +229,7 @@ module MergeATSClient
|
|
207
229
|
# Calculates hash code according to all attributes.
|
208
230
|
# @return [Integer] Hash code
|
209
231
|
def hash
|
210
|
-
[id, remote_id, first_name, last_name, email, disabled, remote_created_at, access_role,
|
232
|
+
[id, remote_id, first_name, last_name, email, disabled, remote_created_at, access_role, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
211
233
|
end
|
212
234
|
|
213
235
|
# Builds the object from hash
|