merge_ats_client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/docs/AccountToken.md +3 -1
- data/docs/ApplicationsApi.md +0 -82
- data/docs/Attachment.md +2 -0
- data/docs/AttachmentRequest.md +26 -0
- data/docs/AttachmentTypeEnum.md +15 -0
- data/docs/AttachmentsApi.md +80 -0
- data/docs/AvailableActions.md +1 -1
- data/docs/Candidate.md +2 -2
- data/docs/CandidateRequest.md +5 -1
- data/docs/InterviewsApi.md +80 -0
- data/docs/JobsApi.md +3 -1
- data/docs/ModelOperation.md +3 -1
- data/docs/PaginatedSyncStatusList.md +22 -0
- data/docs/RemoteUserRequest.md +30 -0
- data/docs/ScheduledInterviewRequest.md +38 -0
- data/docs/ScorecardRequest.md +30 -0
- data/docs/ScorecardsApi.md +80 -0
- data/docs/SyncStatus.md +1 -1
- data/docs/SyncStatusApi.md +89 -11
- data/docs/SyncStatusStatusEnum.md +15 -0
- data/docs/UsersApi.md +81 -0
- data/lib/merge_ats_client/api/applications_api.rb +0 -82
- data/lib/merge_ats_client/api/attachments_api.rb +76 -0
- data/lib/merge_ats_client/api/interviews_api.rb +76 -0
- data/lib/merge_ats_client/api/jobs_api.rb +7 -0
- data/lib/merge_ats_client/api/scorecards_api.rb +76 -0
- data/lib/merge_ats_client/api/sync_status_api.rb +78 -10
- data/lib/merge_ats_client/api/users_api.rb +79 -0
- data/lib/merge_ats_client/api_client.rb +1 -1
- data/lib/merge_ats_client/models/account_token.rb +18 -4
- data/lib/merge_ats_client/models/activity.rb +1 -1
- data/lib/merge_ats_client/models/application.rb +1 -1
- data/lib/merge_ats_client/models/attachment.rb +13 -2
- data/lib/merge_ats_client/models/attachment_request.rb +279 -0
- data/lib/merge_ats_client/models/attachment_type_enum.rb +39 -0
- data/lib/merge_ats_client/models/candidate.rb +1 -1
- data/lib/merge_ats_client/models/candidate_request.rb +26 -4
- data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_ats_client/models/eeoc.rb +1 -1
- data/lib/merge_ats_client/models/end_user_details_request.rb +1 -5
- data/lib/merge_ats_client/models/job.rb +1 -1
- data/lib/merge_ats_client/models/job_interview_stage.rb +1 -1
- data/lib/merge_ats_client/models/model_operation.rb +20 -4
- data/lib/merge_ats_client/models/offer.rb +1 -1
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +240 -0
- data/lib/merge_ats_client/models/remote_user_request.rb +302 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +1 -1
- data/lib/merge_ats_client/models/scheduled_interview_request.rb +331 -0
- data/lib/merge_ats_client/models/scorecard.rb +1 -1
- data/lib/merge_ats_client/models/scorecard_request.rb +287 -0
- data/lib/merge_ats_client/models/sync_status.rb +1 -1
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +37 -0
- data/lib/merge_ats_client/version.rb +2 -2
- data/lib/merge_ats_client.rb +7 -3
- data/spec/api/delete_account_api_spec.rb +46 -0
- data/spec/api/generate_key_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +65 -0
- data/spec/models/attachment_request_spec.rb +58 -0
- data/spec/models/attachment_type_enum_spec.rb +28 -0
- data/spec/models/generate_remote_key_request_spec.rb +1 -1
- data/spec/models/issue_spec.rb +70 -0
- data/spec/models/issue_status_enum_spec.rb +28 -0
- data/spec/models/paginated_issue_list_spec.rb +46 -0
- data/spec/models/paginated_sync_status_list_spec.rb +46 -0
- data/spec/models/remote_data_request_spec.rb +40 -0
- data/spec/models/remote_user_request_spec.rb +70 -0
- data/spec/models/scheduled_interview_request_spec.rb +94 -0
- data/spec/models/scorecard_request_spec.rb +70 -0
- data/spec/models/sync_status_status_enum_spec.rb +28 -0
- data/test_ats.rb +13 -13
- data/test_signature.rb +2 -2
- metadata +44 -3
- data/merge_ats_client-1.0.0.gem +0 -0
@@ -0,0 +1,279 @@
|
|
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
|
+
# # The Attachment Object ### Description The `Attachment` object is used to represent a attachment for a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
|
18
|
+
class AttachmentRequest
|
19
|
+
# The third-party API ID of the matching object.
|
20
|
+
attr_accessor :remote_id
|
21
|
+
|
22
|
+
# The attachment's name.
|
23
|
+
attr_accessor :file_name
|
24
|
+
|
25
|
+
# The attachment's url.
|
26
|
+
attr_accessor :file_url
|
27
|
+
|
28
|
+
attr_accessor :candidate
|
29
|
+
|
30
|
+
# The attachment's type.
|
31
|
+
attr_accessor :attachment_type
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'remote_id' => :'remote_id',
|
37
|
+
:'file_name' => :'file_name',
|
38
|
+
:'file_url' => :'file_url',
|
39
|
+
:'candidate' => :'candidate',
|
40
|
+
:'attachment_type' => :'attachment_type'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Returns all the JSON keys this model knows about
|
45
|
+
def self.acceptable_attributes
|
46
|
+
attribute_map.values
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.openapi_types
|
51
|
+
{
|
52
|
+
:'remote_id' => :'String',
|
53
|
+
:'file_name' => :'String',
|
54
|
+
:'file_url' => :'String',
|
55
|
+
:'candidate' => :'String',
|
56
|
+
:'attachment_type' => :'AttachmentTypeEnum'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# List of attributes with nullable: true
|
61
|
+
def self.openapi_nullable
|
62
|
+
Set.new([
|
63
|
+
:'remote_id',
|
64
|
+
:'file_name',
|
65
|
+
:'file_url',
|
66
|
+
:'candidate',
|
67
|
+
:'attachment_type'
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AttachmentRequest` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AttachmentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'remote_id')
|
87
|
+
self.remote_id = attributes[:'remote_id']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'file_name')
|
91
|
+
self.file_name = attributes[:'file_name']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'file_url')
|
95
|
+
self.file_url = attributes[:'file_url']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'candidate')
|
99
|
+
self.candidate = attributes[:'candidate']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'attachment_type')
|
103
|
+
self.attachment_type = attributes[:'attachment_type']
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
108
|
+
# @return Array for valid properties with the reasons
|
109
|
+
def list_invalid_properties
|
110
|
+
invalid_properties = Array.new
|
111
|
+
if !@file_url.nil? && @file_url.to_s.length > 2000
|
112
|
+
invalid_properties.push('invalid value for "file_url", the character length must be smaller than or equal to 2000.')
|
113
|
+
end
|
114
|
+
|
115
|
+
invalid_properties
|
116
|
+
end
|
117
|
+
|
118
|
+
# Check to see if the all the properties in the model are valid
|
119
|
+
# @return true if the model is valid
|
120
|
+
def valid?
|
121
|
+
return false if !@file_url.nil? && @file_url.to_s.length > 2000
|
122
|
+
true
|
123
|
+
end
|
124
|
+
|
125
|
+
# Custom attribute writer method with validation
|
126
|
+
# @param [Object] file_url Value to be assigned
|
127
|
+
def file_url=(file_url)
|
128
|
+
if !file_url.nil? && file_url.to_s.length > 2000
|
129
|
+
fail ArgumentError, 'invalid value for "file_url", the character length must be smaller than or equal to 2000.'
|
130
|
+
end
|
131
|
+
|
132
|
+
@file_url = file_url
|
133
|
+
end
|
134
|
+
|
135
|
+
# Checks equality by comparing each attribute.
|
136
|
+
# @param [Object] Object to be compared
|
137
|
+
def ==(o)
|
138
|
+
return true if self.equal?(o)
|
139
|
+
self.class == o.class &&
|
140
|
+
remote_id == o.remote_id &&
|
141
|
+
file_name == o.file_name &&
|
142
|
+
file_url == o.file_url &&
|
143
|
+
candidate == o.candidate &&
|
144
|
+
attachment_type == o.attachment_type
|
145
|
+
end
|
146
|
+
|
147
|
+
# @see the `==` method
|
148
|
+
# @param [Object] Object to be compared
|
149
|
+
def eql?(o)
|
150
|
+
self == o
|
151
|
+
end
|
152
|
+
|
153
|
+
# Calculates hash code according to all attributes.
|
154
|
+
# @return [Integer] Hash code
|
155
|
+
def hash
|
156
|
+
[remote_id, file_name, file_url, candidate, attachment_type].hash
|
157
|
+
end
|
158
|
+
|
159
|
+
# Builds the object from hash
|
160
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
161
|
+
# @return [Object] Returns the model itself
|
162
|
+
def self.build_from_hash(attributes)
|
163
|
+
new.build_from_hash(attributes)
|
164
|
+
end
|
165
|
+
|
166
|
+
# Builds the object from hash
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
168
|
+
# @return [Object] Returns the model itself
|
169
|
+
def build_from_hash(attributes)
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
171
|
+
self.class.openapi_types.each_pair do |key, type|
|
172
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
173
|
+
self.send("#{key}=", nil)
|
174
|
+
elsif type =~ /\AArray<(.*)>/i
|
175
|
+
# check to ensure the input is an array given that the attribute
|
176
|
+
# is documented as an array but the input is not
|
177
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
178
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
179
|
+
end
|
180
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
181
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
self
|
186
|
+
end
|
187
|
+
|
188
|
+
# Deserializes the data based on type
|
189
|
+
# @param string type Data type
|
190
|
+
# @param string value Value to be deserialized
|
191
|
+
# @return [Object] Deserialized data
|
192
|
+
def _deserialize(type, value)
|
193
|
+
case type.to_sym
|
194
|
+
when :Time
|
195
|
+
Time.parse(value)
|
196
|
+
when :Date
|
197
|
+
Date.parse(value)
|
198
|
+
when :String
|
199
|
+
value.to_s
|
200
|
+
when :Integer
|
201
|
+
value.to_i
|
202
|
+
when :Float
|
203
|
+
value.to_f
|
204
|
+
when :Boolean
|
205
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
206
|
+
true
|
207
|
+
else
|
208
|
+
false
|
209
|
+
end
|
210
|
+
when :Object
|
211
|
+
# generic object (usually a Hash), return directly
|
212
|
+
value
|
213
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
214
|
+
inner_type = Regexp.last_match[:inner_type]
|
215
|
+
value.map { |v| _deserialize(inner_type, v) }
|
216
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
217
|
+
k_type = Regexp.last_match[:k_type]
|
218
|
+
v_type = Regexp.last_match[:v_type]
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each do |k, v|
|
221
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
else # model
|
225
|
+
# models (e.g. Pet) or oneOf
|
226
|
+
klass = MergeATSClient.const_get(type)
|
227
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# Returns the string representation of the object
|
232
|
+
# @return [String] String presentation of the object
|
233
|
+
def to_s
|
234
|
+
to_hash.to_s
|
235
|
+
end
|
236
|
+
|
237
|
+
# to_body is an alias to to_hash (backward compatibility)
|
238
|
+
# @return [Hash] Returns the object in the form of hash
|
239
|
+
def to_body
|
240
|
+
to_hash
|
241
|
+
end
|
242
|
+
|
243
|
+
# Returns the object in the form of hash
|
244
|
+
# @return [Hash] Returns the object in the form of hash
|
245
|
+
def to_hash
|
246
|
+
hash = {}
|
247
|
+
self.class.attribute_map.each_pair do |attr, param|
|
248
|
+
value = self.send(attr)
|
249
|
+
if value.nil?
|
250
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
251
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
252
|
+
end
|
253
|
+
|
254
|
+
hash[param] = _to_hash(value)
|
255
|
+
end
|
256
|
+
hash
|
257
|
+
end
|
258
|
+
|
259
|
+
# Outputs non-array value in the form of hash
|
260
|
+
# For object, use to_hash. Otherwise, just return the value
|
261
|
+
# @param [Object] value Any valid value
|
262
|
+
# @return [Hash] Returns the value in the form of hash
|
263
|
+
def _to_hash(value)
|
264
|
+
if value.is_a?(Array)
|
265
|
+
value.compact.map { |v| _to_hash(v) }
|
266
|
+
elsif value.is_a?(Hash)
|
267
|
+
{}.tap do |hash|
|
268
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
269
|
+
end
|
270
|
+
elsif value.respond_to? :to_hash
|
271
|
+
value.to_hash
|
272
|
+
else
|
273
|
+
value
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
end
|
278
|
+
|
279
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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 AttachmentTypeEnum
|
18
|
+
RESUME = "RESUME".freeze
|
19
|
+
COVER_LETTER = "COVER_LETTER".freeze
|
20
|
+
OFFER_LETTER = "OFFER_LETTER".freeze
|
21
|
+
OTHER = "OTHER".freeze
|
22
|
+
|
23
|
+
# Builds the enum from string
|
24
|
+
# @param [String] The enum value in the form of the string
|
25
|
+
# @return [String] The enum value
|
26
|
+
def self.build_from_hash(value)
|
27
|
+
new.build_from_hash(value)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def build_from_hash(value)
|
34
|
+
constantValues = AttachmentTypeEnum.constants.select { |c| AttachmentTypeEnum::const_get(c) == value }
|
35
|
+
raise "Invalid ENUM value #{value} for class #AttachmentTypeEnum" if constantValues.empty?
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -57,6 +57,10 @@ module MergeATSClient
|
|
57
57
|
|
58
58
|
attr_accessor :tags
|
59
59
|
|
60
|
+
attr_accessor :applications
|
61
|
+
|
62
|
+
attr_accessor :attachments
|
63
|
+
|
60
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
65
|
def self.attribute_map
|
62
66
|
{
|
@@ -74,7 +78,9 @@ module MergeATSClient
|
|
74
78
|
:'phone_numbers' => :'phone_numbers',
|
75
79
|
:'email_addresses' => :'email_addresses',
|
76
80
|
:'urls' => :'urls',
|
77
|
-
:'tags' => :'tags'
|
81
|
+
:'tags' => :'tags',
|
82
|
+
:'applications' => :'applications',
|
83
|
+
:'attachments' => :'attachments'
|
78
84
|
}
|
79
85
|
end
|
80
86
|
|
@@ -100,7 +106,9 @@ module MergeATSClient
|
|
100
106
|
:'phone_numbers' => :'Array<PhoneNumberRequest>',
|
101
107
|
:'email_addresses' => :'Array<EmailAddressRequest>',
|
102
108
|
:'urls' => :'Array<UrlRequest>',
|
103
|
-
:'tags' => :'Array<String>'
|
109
|
+
:'tags' => :'Array<String>',
|
110
|
+
:'applications' => :'Array<String>',
|
111
|
+
:'attachments' => :'Array<String>'
|
104
112
|
}
|
105
113
|
end
|
106
114
|
|
@@ -205,6 +213,18 @@ module MergeATSClient
|
|
205
213
|
self.tags = value
|
206
214
|
end
|
207
215
|
end
|
216
|
+
|
217
|
+
if attributes.key?(:'applications')
|
218
|
+
if (value = attributes[:'applications']).is_a?(Array)
|
219
|
+
self.applications = value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes.key?(:'attachments')
|
224
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
225
|
+
self.attachments = value
|
226
|
+
end
|
227
|
+
end
|
208
228
|
end
|
209
229
|
|
210
230
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -239,7 +259,9 @@ module MergeATSClient
|
|
239
259
|
phone_numbers == o.phone_numbers &&
|
240
260
|
email_addresses == o.email_addresses &&
|
241
261
|
urls == o.urls &&
|
242
|
-
tags == o.tags
|
262
|
+
tags == o.tags &&
|
263
|
+
applications == o.applications &&
|
264
|
+
attachments == o.attachments
|
243
265
|
end
|
244
266
|
|
245
267
|
# @see the `==` method
|
@@ -251,7 +273,7 @@ module MergeATSClient
|
|
251
273
|
# Calculates hash code according to all attributes.
|
252
274
|
# @return [Integer] Hash code
|
253
275
|
def hash
|
254
|
-
[remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags].hash
|
276
|
+
[remote_id, first_name, last_name, company, title, remote_created_at, remote_updated_at, last_interaction_at, is_private, can_email, locations, phone_numbers, email_addresses, urls, tags, applications, attachments].hash
|
255
277
|
end
|
256
278
|
|
257
279
|
# Builds the object from hash
|
@@ -77,6 +77,7 @@ module MergeATSClient
|
|
77
77
|
# List of attributes with nullable: true
|
78
78
|
def self.openapi_nullable
|
79
79
|
Set.new([
|
80
|
+
:'integration'
|
80
81
|
])
|
81
82
|
end
|
82
83
|
|
@@ -134,10 +135,6 @@ module MergeATSClient
|
|
134
135
|
invalid_properties.push('invalid value for "end_user_origin_id", end_user_origin_id cannot be nil.')
|
135
136
|
end
|
136
137
|
|
137
|
-
if @categories.nil?
|
138
|
-
invalid_properties.push('invalid value for "categories", categories cannot be nil.')
|
139
|
-
end
|
140
|
-
|
141
138
|
invalid_properties
|
142
139
|
end
|
143
140
|
|
@@ -147,7 +144,6 @@ module MergeATSClient
|
|
147
144
|
return false if @end_user_email_address.nil?
|
148
145
|
return false if @end_user_organization_name.nil?
|
149
146
|
return false if @end_user_origin_id.nil?
|
150
|
-
return false if @categories.nil?
|
151
147
|
true
|
152
148
|
end
|
153
149
|
|
@@ -22,12 +22,15 @@ module MergeATSClient
|
|
22
22
|
|
23
23
|
attr_accessor :required_post_parameters
|
24
24
|
|
25
|
+
attr_accessor :supported_fields
|
26
|
+
|
25
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
28
|
def self.attribute_map
|
27
29
|
{
|
28
30
|
:'model_name' => :'model_name',
|
29
31
|
:'available_operations' => :'available_operations',
|
30
|
-
:'required_post_parameters' => :'required_post_parameters'
|
32
|
+
:'required_post_parameters' => :'required_post_parameters',
|
33
|
+
:'supported_fields' => :'supported_fields'
|
31
34
|
}
|
32
35
|
end
|
33
36
|
|
@@ -41,7 +44,8 @@ module MergeATSClient
|
|
41
44
|
{
|
42
45
|
:'model_name' => :'String',
|
43
46
|
:'available_operations' => :'Array<String>',
|
44
|
-
:'required_post_parameters' => :'Array<String>'
|
47
|
+
:'required_post_parameters' => :'Array<String>',
|
48
|
+
:'supported_fields' => :'Array<String>'
|
45
49
|
}
|
46
50
|
end
|
47
51
|
|
@@ -81,6 +85,12 @@ module MergeATSClient
|
|
81
85
|
self.required_post_parameters = value
|
82
86
|
end
|
83
87
|
end
|
88
|
+
|
89
|
+
if attributes.key?(:'supported_fields')
|
90
|
+
if (value = attributes[:'supported_fields']).is_a?(Array)
|
91
|
+
self.supported_fields = value
|
92
|
+
end
|
93
|
+
end
|
84
94
|
end
|
85
95
|
|
86
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -99,6 +109,10 @@ module MergeATSClient
|
|
99
109
|
invalid_properties.push('invalid value for "required_post_parameters", required_post_parameters cannot be nil.')
|
100
110
|
end
|
101
111
|
|
112
|
+
if @supported_fields.nil?
|
113
|
+
invalid_properties.push('invalid value for "supported_fields", supported_fields cannot be nil.')
|
114
|
+
end
|
115
|
+
|
102
116
|
invalid_properties
|
103
117
|
end
|
104
118
|
|
@@ -108,6 +122,7 @@ module MergeATSClient
|
|
108
122
|
return false if @model_name.nil?
|
109
123
|
return false if @available_operations.nil?
|
110
124
|
return false if @required_post_parameters.nil?
|
125
|
+
return false if @supported_fields.nil?
|
111
126
|
true
|
112
127
|
end
|
113
128
|
|
@@ -118,7 +133,8 @@ module MergeATSClient
|
|
118
133
|
self.class == o.class &&
|
119
134
|
model_name == o.model_name &&
|
120
135
|
available_operations == o.available_operations &&
|
121
|
-
required_post_parameters == o.required_post_parameters
|
136
|
+
required_post_parameters == o.required_post_parameters &&
|
137
|
+
supported_fields == o.supported_fields
|
122
138
|
end
|
123
139
|
|
124
140
|
# @see the `==` method
|
@@ -130,7 +146,7 @@ module MergeATSClient
|
|
130
146
|
# Calculates hash code according to all attributes.
|
131
147
|
# @return [Integer] Hash code
|
132
148
|
def hash
|
133
|
-
[model_name, available_operations, required_post_parameters].hash
|
149
|
+
[model_name, available_operations, required_post_parameters, supported_fields].hash
|
134
150
|
end
|
135
151
|
|
136
152
|
# Builds the object from hash
|