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.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -6
  3. data/docs/AccountIntegration.md +6 -2
  4. data/docs/ActivitiesApi.md +164 -8
  5. data/docs/Activity.md +12 -6
  6. data/docs/ActivityEndpointRequest.md +20 -0
  7. data/docs/ActivityRequest.md +32 -0
  8. data/docs/ActivityResponse.md +24 -0
  9. data/docs/Application.md +12 -10
  10. data/docs/ApplicationRequest.md +5 -9
  11. data/docs/ApplicationsApi.md +4 -4
  12. data/docs/AsyncPassthroughApi.md +155 -0
  13. data/docs/AsyncPassthroughReciept.md +18 -0
  14. data/docs/Attachment.md +8 -4
  15. data/docs/AttachmentRequest.md +1 -3
  16. data/docs/AttachmentsApi.md +13 -9
  17. data/docs/Candidate.md +8 -6
  18. data/docs/CandidateRequest.md +1 -9
  19. data/docs/CandidatesApi.md +172 -13
  20. data/docs/CommonModelScopesBodyRequest.md +22 -0
  21. data/docs/ConditionSchema.md +1 -1
  22. data/docs/DataPassthroughRequest.md +1 -1
  23. data/docs/DeleteAccountApi.md +9 -9
  24. data/docs/Department.md +7 -3
  25. data/docs/DepartmentsApi.md +4 -4
  26. data/docs/EEOC.md +12 -8
  27. data/docs/EeocsApi.md +13 -9
  28. data/docs/EmailAddress.md +4 -2
  29. data/docs/EmailAddressRequest.md +1 -1
  30. data/docs/EnabledActionsEnum.md +15 -0
  31. data/docs/EndUserDetailsRequest.md +4 -2
  32. data/docs/ForceResyncApi.md +1 -1
  33. data/docs/InterviewsApi.md +165 -9
  34. data/docs/Issue.md +10 -8
  35. data/docs/IssuesApi.md +6 -6
  36. data/docs/Job.md +8 -4
  37. data/docs/JobInterviewStage.md +10 -4
  38. data/docs/JobInterviewStagesApi.md +4 -4
  39. data/docs/JobsApi.md +16 -10
  40. data/docs/LinkToken.md +1 -1
  41. data/docs/LinkedAccountsApi.md +2 -2
  42. data/docs/MetaResponse.md +2 -0
  43. data/docs/MultipartFormFieldRequest.md +1 -1
  44. data/docs/Offer.md +10 -6
  45. data/docs/OffersApi.md +13 -9
  46. data/docs/Office.md +7 -3
  47. data/docs/OfficesApi.md +4 -4
  48. data/docs/PaginatedConditionSchemaList.md +2 -2
  49. data/docs/PatchedCandidateEndpointRequest.md +20 -0
  50. data/docs/PatchedCandidateRequest.md +50 -0
  51. data/docs/PhoneNumber.md +4 -2
  52. data/docs/PhoneNumberRequest.md +1 -1
  53. data/docs/RejectReason.md +7 -3
  54. data/docs/RejectReasonsApi.md +4 -4
  55. data/docs/RemoteData.md +1 -1
  56. data/docs/RemoteUser.md +8 -4
  57. data/docs/ScheduledInterview.md +11 -7
  58. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  59. data/docs/ScheduledInterviewRequest.md +36 -0
  60. data/docs/ScheduledInterviewResponse.md +24 -0
  61. data/docs/Scorecard.md +11 -7
  62. data/docs/ScorecardsApi.md +13 -9
  63. data/docs/SelectiveSyncApi.md +2 -2
  64. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  65. data/docs/SyncStatus.md +3 -1
  66. data/docs/SyncStatusApi.md +1 -1
  67. data/docs/Tag.md +7 -3
  68. data/docs/TagsApi.md +4 -4
  69. data/docs/Url.md +4 -2
  70. data/docs/UrlRequest.md +1 -1
  71. data/docs/UsersApi.md +13 -9
  72. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  73. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  74. data/lib/merge_ats_client/api/async_passthrough_api.rb +160 -0
  75. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  76. data/lib/merge_ats_client/api/candidates_api.rb +165 -11
  77. data/lib/merge_ats_client/api/delete_account_api.rb +7 -7
  78. data/lib/merge_ats_client/api/departments_api.rb +4 -4
  79. data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
  80. data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
  81. data/lib/merge_ats_client/api/interviews_api.rb +160 -8
  82. data/lib/merge_ats_client/api/issues_api.rb +6 -6
  83. data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
  84. data/lib/merge_ats_client/api/jobs_api.rb +27 -10
  85. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
  86. data/lib/merge_ats_client/api/offers_api.rb +22 -8
  87. data/lib/merge_ats_client/api/offices_api.rb +4 -4
  88. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
  89. data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
  90. data/lib/merge_ats_client/api/selective_sync_api.rb +2 -2
  91. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  92. data/lib/merge_ats_client/api/tags_api.rb +4 -4
  93. data/lib/merge_ats_client/api/users_api.rb +22 -8
  94. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  95. data/lib/merge_ats_client/models/activity.rb +50 -16
  96. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  97. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  98. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  99. data/lib/merge_ats_client/models/application.rb +40 -26
  100. data/lib/merge_ats_client/models/application_request.rb +7 -26
  101. data/lib/merge_ats_client/models/async_passthrough_reciept.rb +223 -0
  102. data/lib/merge_ats_client/models/attachment.rb +38 -16
  103. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  104. data/lib/merge_ats_client/models/candidate.rb +36 -27
  105. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  106. data/lib/merge_ats_client/models/categories_enum.rb +3 -1
  107. data/lib/merge_ats_client/models/category_enum.rb +3 -1
  108. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  109. data/lib/merge_ats_client/models/condition_schema.rb +1 -0
  110. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  111. data/lib/merge_ats_client/models/department.rb +36 -14
  112. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  113. data/lib/merge_ats_client/models/email_address.rb +16 -6
  114. data/lib/merge_ats_client/models/email_address_request.rb +1 -1
  115. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  116. data/lib/merge_ats_client/models/end_user_details_request.rb +19 -6
  117. data/lib/merge_ats_client/models/issue.rb +16 -4
  118. data/lib/merge_ats_client/models/job.rb +38 -16
  119. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  120. data/lib/merge_ats_client/models/link_token.rb +0 -5
  121. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  122. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  123. data/lib/merge_ats_client/models/offer.rb +40 -16
  124. data/lib/merge_ats_client/models/office.rb +37 -15
  125. data/lib/merge_ats_client/models/patched_candidate_endpoint_request.rb +237 -0
  126. data/lib/merge_ats_client/models/patched_candidate_request.rb +418 -0
  127. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  128. data/lib/merge_ats_client/models/phone_number_request.rb +1 -1
  129. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  130. data/lib/merge_ats_client/models/remote_data.rb +3 -4
  131. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  132. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  133. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  134. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  135. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  136. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  137. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  138. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  139. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -1
  140. data/lib/merge_ats_client/models/tag.rb +36 -14
  141. data/lib/merge_ats_client/models/url.rb +16 -6
  142. data/lib/merge_ats_client/models/url_request.rb +1 -1
  143. data/lib/merge_ats_client/version.rb +1 -1
  144. data/lib/merge_ats_client.rb +13 -1
  145. data/spec/api/activities_api_spec.rb +31 -4
  146. data/spec/api/applications_api_spec.rb +2 -2
  147. data/spec/api/async_passthrough_api_spec.rb +59 -0
  148. data/spec/api/attachments_api_spec.rb +6 -4
  149. data/spec/api/candidates_api_spec.rb +32 -3
  150. data/spec/api/delete_account_api_spec.rb +2 -2
  151. data/spec/api/departments_api_spec.rb +2 -2
  152. data/spec/api/eeocs_api_spec.rb +6 -4
  153. data/spec/api/force_resync_api_spec.rb +1 -1
  154. data/spec/api/interviews_api_spec.rb +31 -4
  155. data/spec/api/issues_api_spec.rb +3 -3
  156. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  157. data/spec/api/jobs_api_spec.rb +8 -5
  158. data/spec/api/linked_accounts_api_spec.rb +1 -1
  159. data/spec/api/offers_api_spec.rb +6 -4
  160. data/spec/api/offices_api_spec.rb +2 -2
  161. data/spec/api/reject_reasons_api_spec.rb +2 -2
  162. data/spec/api/scorecards_api_spec.rb +6 -4
  163. data/spec/api/selective_sync_api_spec.rb +1 -1
  164. data/spec/api/sync_status_api_spec.rb +1 -1
  165. data/spec/api/tags_api_spec.rb +2 -2
  166. data/spec/api/users_api_spec.rb +6 -4
  167. data/spec/models/account_integration_spec.rb +12 -0
  168. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  169. data/spec/models/activity_request_spec.rb +76 -0
  170. data/spec/models/activity_response_spec.rb +52 -0
  171. data/spec/models/activity_spec.rb +19 -1
  172. data/spec/models/application_request_spec.rb +0 -12
  173. data/spec/models/application_spec.rb +9 -3
  174. data/spec/models/async_passthrough_reciept_spec.rb +34 -0
  175. data/spec/models/attachment_request_spec.rb +0 -6
  176. data/spec/models/attachment_spec.rb +14 -2
  177. data/spec/models/candidate_request_spec.rb +0 -24
  178. data/spec/models/candidate_spec.rb +9 -3
  179. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  180. data/spec/models/department_spec.rb +14 -2
  181. data/spec/models/eeoc_spec.rb +14 -2
  182. data/spec/models/email_address_spec.rb +6 -0
  183. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  184. data/spec/models/end_user_details_request_spec.rb +6 -0
  185. data/spec/models/issue_spec.rb +6 -0
  186. data/spec/models/job_interview_stage_spec.rb +19 -1
  187. data/spec/models/job_spec.rb +14 -2
  188. data/spec/models/meta_response_spec.rb +6 -0
  189. data/spec/models/offer_spec.rb +14 -2
  190. data/spec/models/office_spec.rb +14 -2
  191. data/spec/models/{remote_data_request_spec.rb → patched_candidate_endpoint_request_spec.rb} +8 -8
  192. data/spec/models/patched_candidate_request_spec.rb +130 -0
  193. data/spec/models/phone_number_spec.rb +6 -0
  194. data/spec/models/reject_reason_spec.rb +14 -2
  195. data/spec/models/remote_user_spec.rb +14 -2
  196. data/spec/models/scheduled_interview_endpoint_request_spec.rb +40 -0
  197. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  198. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  199. data/spec/models/scheduled_interview_spec.rb +14 -2
  200. data/spec/models/scorecard_spec.rb +14 -2
  201. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  202. data/spec/models/sync_status_spec.rb +6 -0
  203. data/spec/models/tag_spec.rb +14 -2
  204. data/spec/models/url_spec.rb +6 -0
  205. metadata +167 -119
@@ -0,0 +1,223 @@
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 AsyncPassthroughReciept
18
+ attr_accessor :async_passthrough_receipt_id
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'async_passthrough_receipt_id' => :'async_passthrough_receipt_id'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'async_passthrough_receipt_id' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AsyncPassthroughReciept` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AsyncPassthroughReciept`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'async_passthrough_receipt_id')
61
+ self.async_passthrough_receipt_id = attributes[:'async_passthrough_receipt_id']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ if @async_passthrough_receipt_id.nil?
70
+ invalid_properties.push('invalid value for "async_passthrough_receipt_id", async_passthrough_receipt_id cannot be nil.')
71
+ end
72
+
73
+ invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return false if @async_passthrough_receipt_id.nil?
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ async_passthrough_receipt_id == o.async_passthrough_receipt_id
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Integer] Hash code
99
+ def hash
100
+ [async_passthrough_receipt_id].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def self.build_from_hash(attributes)
107
+ new.build_from_hash(attributes)
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.openapi_types.each_pair do |key, type|
116
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
117
+ self.send("#{key}=", nil)
118
+ elsif type =~ /\AArray<(.*)>/i
119
+ # check to ensure the input is an array given that the attribute
120
+ # is documented as an array but the input is not
121
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
122
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
123
+ end
124
+ elsif !attributes[self.class.attribute_map[key]].nil?
125
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
126
+ end
127
+ end
128
+
129
+ self
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def _deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = MergeATSClient.const_get(type)
171
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
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.
17
+ # # The Attachment Object ### Description The `Attachment` object is used to represent a file attached to a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
18
18
  class Attachment
19
19
  attr_accessor :id
20
20
 
@@ -29,13 +29,18 @@ module MergeATSClient
29
29
 
30
30
  attr_accessor :candidate
31
31
 
32
- # The attachment's type.
32
+ # The attachment's type. * `RESUME` - RESUME * `COVER_LETTER` - COVER_LETTER * `OFFER_LETTER` - OFFER_LETTER * `OTHER` - OTHER
33
33
  attr_accessor :attachment_type
34
34
 
35
- attr_accessor :remote_data
36
-
37
35
  attr_accessor :remote_was_deleted
38
36
 
37
+ # This is the datetime that this object was last updated by Merge
38
+ attr_accessor :modified_at
39
+
40
+ attr_accessor :field_mappings
41
+
42
+ attr_accessor :remote_data
43
+
39
44
  # Attribute mapping from ruby-style variable name to JSON key.
40
45
  def self.attribute_map
41
46
  {
@@ -45,8 +50,10 @@ module MergeATSClient
45
50
  :'file_url' => :'file_url',
46
51
  :'candidate' => :'candidate',
47
52
  :'attachment_type' => :'attachment_type',
48
- :'remote_data' => :'remote_data',
49
- :'remote_was_deleted' => :'remote_was_deleted'
53
+ :'remote_was_deleted' => :'remote_was_deleted',
54
+ :'modified_at' => :'modified_at',
55
+ :'field_mappings' => :'field_mappings',
56
+ :'remote_data' => :'remote_data'
50
57
  }
51
58
  end
52
59
 
@@ -64,8 +71,10 @@ module MergeATSClient
64
71
  :'file_url' => :'String',
65
72
  :'candidate' => :'String',
66
73
  :'attachment_type' => :'AttachmentTypeEnum',
67
- :'remote_data' => :'Array<RemoteData>',
68
- :'remote_was_deleted' => :'Boolean'
74
+ :'remote_was_deleted' => :'Boolean',
75
+ :'modified_at' => :'Time',
76
+ :'field_mappings' => :'Hash<String, Object>',
77
+ :'remote_data' => :'Array<RemoteData>'
69
78
  }
70
79
  end
71
80
 
@@ -77,7 +86,8 @@ module MergeATSClient
77
86
  :'file_url',
78
87
  :'candidate',
79
88
  :'attachment_type',
80
- :'remote_data',
89
+ :'field_mappings',
90
+ :'remote_data'
81
91
  ])
82
92
  end
83
93
 
@@ -120,15 +130,25 @@ module MergeATSClient
120
130
  self.attachment_type = attributes[:'attachment_type']
121
131
  end
122
132
 
133
+ if attributes.key?(:'remote_was_deleted')
134
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
135
+ end
136
+
137
+ if attributes.key?(:'modified_at')
138
+ self.modified_at = attributes[:'modified_at']
139
+ end
140
+
141
+ if attributes.key?(:'field_mappings')
142
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
143
+ self.field_mappings = value
144
+ end
145
+ end
146
+
123
147
  if attributes.key?(:'remote_data')
124
148
  if (value = attributes[:'remote_data']).is_a?(Array)
125
149
  self.remote_data = value
126
150
  end
127
151
  end
128
-
129
- if attributes.key?(:'remote_was_deleted')
130
- self.remote_was_deleted = attributes[:'remote_was_deleted']
131
- end
132
152
  end
133
153
 
134
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,8 +190,10 @@ module MergeATSClient
170
190
  file_url == o.file_url &&
171
191
  candidate == o.candidate &&
172
192
  attachment_type == o.attachment_type &&
173
- remote_data == o.remote_data &&
174
- remote_was_deleted == o.remote_was_deleted
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
175
197
  end
176
198
 
177
199
  # @see the `==` method
@@ -183,7 +205,7 @@ module MergeATSClient
183
205
  # Calculates hash code according to all attributes.
184
206
  # @return [Integer] Hash code
185
207
  def hash
186
- [id, remote_id, file_name, file_url, candidate, attachment_type, remote_data, remote_was_deleted].hash
208
+ [id, remote_id, file_name, file_url, candidate, attachment_type, remote_was_deleted, modified_at, field_mappings, remote_data].hash
187
209
  end
188
210
 
189
211
  # Builds the object from hash
@@ -14,11 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
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.
17
+ # # The Attachment Object ### Description The `Attachment` object is used to represent a file attached to a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
18
18
  class AttachmentRequest
19
- # The third-party API ID of the matching object.
20
- attr_accessor :remote_id
21
-
22
19
  # The attachment's name.
23
20
  attr_accessor :file_name
24
21
 
@@ -27,7 +24,7 @@ module MergeATSClient
27
24
 
28
25
  attr_accessor :candidate
29
26
 
30
- # The attachment's type.
27
+ # The attachment's type. * `RESUME` - RESUME * `COVER_LETTER` - COVER_LETTER * `OFFER_LETTER` - OFFER_LETTER * `OTHER` - OTHER
31
28
  attr_accessor :attachment_type
32
29
 
33
30
  attr_accessor :integration_params
@@ -37,7 +34,6 @@ module MergeATSClient
37
34
  # Attribute mapping from ruby-style variable name to JSON key.
38
35
  def self.attribute_map
39
36
  {
40
- :'remote_id' => :'remote_id',
41
37
  :'file_name' => :'file_name',
42
38
  :'file_url' => :'file_url',
43
39
  :'candidate' => :'candidate',
@@ -55,7 +51,6 @@ module MergeATSClient
55
51
  # Attribute type mapping.
56
52
  def self.openapi_types
57
53
  {
58
- :'remote_id' => :'String',
59
54
  :'file_name' => :'String',
60
55
  :'file_url' => :'String',
61
56
  :'candidate' => :'String',
@@ -68,7 +63,6 @@ module MergeATSClient
68
63
  # List of attributes with nullable: true
69
64
  def self.openapi_nullable
70
65
  Set.new([
71
- :'remote_id',
72
66
  :'file_name',
73
67
  :'file_url',
74
68
  :'candidate',
@@ -93,10 +87,6 @@ module MergeATSClient
93
87
  h[k.to_sym] = v
94
88
  }
95
89
 
96
- if attributes.key?(:'remote_id')
97
- self.remote_id = attributes[:'remote_id']
98
- end
99
-
100
90
  if attributes.key?(:'file_name')
101
91
  self.file_name = attributes[:'file_name']
102
92
  end
@@ -159,7 +149,6 @@ module MergeATSClient
159
149
  def ==(o)
160
150
  return true if self.equal?(o)
161
151
  self.class == o.class &&
162
- remote_id == o.remote_id &&
163
152
  file_name == o.file_name &&
164
153
  file_url == o.file_url &&
165
154
  candidate == o.candidate &&
@@ -177,7 +166,7 @@ module MergeATSClient
177
166
  # Calculates hash code according to all attributes.
178
167
  # @return [Integer] Hash code
179
168
  def hash
180
- [remote_id, file_name, file_url, candidate, attachment_type, integration_params, linked_account_params].hash
169
+ [file_name, file_url, candidate, attachment_type, integration_params, linked_account_params].hash
181
170
  end
182
171
 
183
172
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Candidate Object ### Description The `Candidate` object is used to represent a Candidate for various positions. ### Usage Example Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates.
17
+ # # The Candidate Object ### Description The `Candidate` object is used to represent profile information about a given Candidate. Because it is specific to a Candidate, this information stays constant across applications. ### Usage Example Fetch from the `LIST Candidates` endpoint and filter by `ID` to show all candidates.
18
18
  class Candidate
19
19
  attr_accessor :id
20
20
 
@@ -39,7 +39,7 @@ module MergeATSClient
39
39
  # When the third party's candidate was updated.
40
40
  attr_accessor :remote_updated_at
41
41
 
42
- # When the most recent candidate interaction occurred.
42
+ # When the most recent interaction with the candidate occurred.
43
43
  attr_accessor :last_interaction_at
44
44
 
45
45
  # Whether or not the candidate is private.
@@ -66,12 +66,14 @@ module MergeATSClient
66
66
  # Array of `Attachment` object IDs.
67
67
  attr_accessor :attachments
68
68
 
69
- attr_accessor :remote_data
69
+ attr_accessor :remote_was_deleted
70
70
 
71
- # Custom fields configured for a given model.
72
- attr_accessor :custom_fields
71
+ # This is the datetime that this object was last updated by Merge
72
+ attr_accessor :modified_at
73
73
 
74
- attr_accessor :remote_was_deleted
74
+ attr_accessor :field_mappings
75
+
76
+ attr_accessor :remote_data
75
77
 
76
78
  # Attribute mapping from ruby-style variable name to JSON key.
77
79
  def self.attribute_map
@@ -94,9 +96,10 @@ module MergeATSClient
94
96
  :'tags' => :'tags',
95
97
  :'applications' => :'applications',
96
98
  :'attachments' => :'attachments',
97
- :'remote_data' => :'remote_data',
98
- :'custom_fields' => :'custom_fields',
99
- :'remote_was_deleted' => :'remote_was_deleted'
99
+ :'remote_was_deleted' => :'remote_was_deleted',
100
+ :'modified_at' => :'modified_at',
101
+ :'field_mappings' => :'field_mappings',
102
+ :'remote_data' => :'remote_data'
100
103
  }
101
104
  end
102
105
 
@@ -126,9 +129,10 @@ module MergeATSClient
126
129
  :'tags' => :'Array<String>',
127
130
  :'applications' => :'Array<String>',
128
131
  :'attachments' => :'Array<String>',
129
- :'remote_data' => :'Array<RemoteData>',
130
- :'custom_fields' => :'Hash<String, Object>',
131
- :'remote_was_deleted' => :'Boolean'
132
+ :'remote_was_deleted' => :'Boolean',
133
+ :'modified_at' => :'Time',
134
+ :'field_mappings' => :'Hash<String, Object>',
135
+ :'remote_data' => :'Array<RemoteData>'
132
136
  }
133
137
  end
134
138
 
@@ -146,8 +150,8 @@ module MergeATSClient
146
150
  :'is_private',
147
151
  :'can_email',
148
152
  :'locations',
149
- :'remote_data',
150
- :'custom_fields',
153
+ :'field_mappings',
154
+ :'remote_data'
151
155
  ])
152
156
  end
153
157
 
@@ -252,20 +256,24 @@ module MergeATSClient
252
256
  end
253
257
  end
254
258
 
255
- if attributes.key?(:'remote_data')
256
- if (value = attributes[:'remote_data']).is_a?(Array)
257
- self.remote_data = value
258
- end
259
+ if attributes.key?(:'remote_was_deleted')
260
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
261
+ end
262
+
263
+ if attributes.key?(:'modified_at')
264
+ self.modified_at = attributes[:'modified_at']
259
265
  end
260
266
 
261
- if attributes.key?(:'custom_fields')
262
- if (value = attributes[:'custom_fields']).is_a?(Hash)
263
- self.custom_fields = value
267
+ if attributes.key?(:'field_mappings')
268
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
269
+ self.field_mappings = value
264
270
  end
265
271
  end
266
272
 
267
- if attributes.key?(:'remote_was_deleted')
268
- self.remote_was_deleted = attributes[:'remote_was_deleted']
273
+ if attributes.key?(:'remote_data')
274
+ if (value = attributes[:'remote_data']).is_a?(Array)
275
+ self.remote_data = value
276
+ end
269
277
  end
270
278
  end
271
279
 
@@ -305,9 +313,10 @@ module MergeATSClient
305
313
  tags == o.tags &&
306
314
  applications == o.applications &&
307
315
  attachments == o.attachments &&
308
- remote_data == o.remote_data &&
309
- custom_fields == o.custom_fields &&
310
- remote_was_deleted == o.remote_was_deleted
316
+ remote_was_deleted == o.remote_was_deleted &&
317
+ modified_at == o.modified_at &&
318
+ field_mappings == o.field_mappings &&
319
+ remote_data == o.remote_data
311
320
  end
312
321
 
313
322
  # @see the `==` method
@@ -319,7 +328,7 @@ module MergeATSClient
319
328
  # Calculates hash code according to all attributes.
320
329
  # @return [Integer] Hash code
321
330
  def hash
322
- [id, 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, remote_data, custom_fields, remote_was_deleted].hash
331
+ [id, 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, remote_was_deleted, modified_at, field_mappings, remote_data].hash
323
332
  end
324
333
 
325
334
  # Builds the object from hash