merge_ats_client 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -6
  3. data/docs/AccountDetails.md +3 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/ActivitiesApi.md +7 -3
  6. data/docs/Activity.md +1 -1
  7. data/docs/ApplicationsApi.md +84 -2
  8. data/docs/AttachmentsApi.md +7 -3
  9. data/docs/CandidatesApi.md +2 -2
  10. data/docs/DataPassthroughRequest.md +3 -1
  11. data/docs/Department.md +1 -1
  12. data/docs/DepartmentsApi.md +2 -2
  13. data/docs/EEOC.md +1 -1
  14. data/docs/EeocsApi.md +7 -3
  15. data/docs/EndUserDetailsRequest.md +9 -7
  16. data/docs/InterviewsApi.md +7 -3
  17. data/docs/Job.md +4 -2
  18. data/docs/JobInterviewStage.md +2 -2
  19. data/docs/JobInterviewStagesApi.md +2 -2
  20. data/docs/JobsApi.md +7 -3
  21. data/docs/LinkToken.md +3 -1
  22. data/docs/LinkedAccountsApi.md +2 -0
  23. data/docs/Offer.md +1 -1
  24. data/docs/OffersApi.md +7 -3
  25. data/docs/Office.md +1 -1
  26. data/docs/OfficesApi.md +2 -2
  27. data/docs/RejectReason.md +1 -1
  28. data/docs/RejectReasonsApi.md +2 -2
  29. data/docs/RemoteResponse.md +5 -1
  30. data/docs/RemoteUser.md +1 -1
  31. data/docs/ResponseTypeEnum.md +15 -0
  32. data/docs/ScheduledInterview.md +1 -1
  33. data/docs/Scorecard.md +1 -1
  34. data/docs/ScorecardsApi.md +7 -3
  35. data/docs/SyncStatus.md +2 -2
  36. data/docs/SyncStatusApi.md +1 -1
  37. data/docs/Tag.md +1 -1
  38. data/docs/TagsApi.md +2 -2
  39. data/docs/UpdateApplicationStageRequest.md +20 -0
  40. data/docs/UsersApi.md +7 -3
  41. data/lib/merge_ats_client/api/activities_api.rb +16 -2
  42. data/lib/merge_ats_client/api/applications_api.rb +80 -2
  43. data/lib/merge_ats_client/api/attachments_api.rb +16 -2
  44. data/lib/merge_ats_client/api/candidates_api.rb +2 -2
  45. data/lib/merge_ats_client/api/departments_api.rb +2 -2
  46. data/lib/merge_ats_client/api/eeocs_api.rb +16 -2
  47. data/lib/merge_ats_client/api/interviews_api.rb +16 -2
  48. data/lib/merge_ats_client/api/job_interview_stages_api.rb +2 -2
  49. data/lib/merge_ats_client/api/jobs_api.rb +16 -2
  50. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -0
  51. data/lib/merge_ats_client/api/offers_api.rb +16 -2
  52. data/lib/merge_ats_client/api/offices_api.rb +2 -2
  53. data/lib/merge_ats_client/api/reject_reasons_api.rb +2 -2
  54. data/lib/merge_ats_client/api/scorecards_api.rb +16 -2
  55. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  56. data/lib/merge_ats_client/api/tags_api.rb +2 -2
  57. data/lib/merge_ats_client/api/users_api.rb +16 -2
  58. data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
  59. data/lib/merge_ats_client/models/account_details.rb +15 -4
  60. data/lib/merge_ats_client/models/account_details_and_actions.rb +12 -1
  61. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
  62. data/lib/merge_ats_client/models/activity.rb +1 -1
  63. data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
  64. data/lib/merge_ats_client/models/application.rb +1 -1
  65. data/lib/merge_ats_client/models/application_request.rb +3 -3
  66. data/lib/merge_ats_client/models/attachment_request.rb +2 -2
  67. data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -7
  68. data/lib/merge_ats_client/models/candidate.rb +1 -1
  69. data/lib/merge_ats_client/models/candidate_request.rb +3 -3
  70. data/lib/merge_ats_client/models/categories_enum.rb +17 -7
  71. data/lib/merge_ats_client/models/category_enum.rb +17 -7
  72. data/lib/merge_ats_client/models/data_passthrough_request.rb +15 -6
  73. data/lib/merge_ats_client/models/department.rb +1 -1
  74. data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
  75. data/lib/merge_ats_client/models/eeoc.rb +1 -1
  76. data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
  77. data/lib/merge_ats_client/models/encoding_enum.rb +18 -7
  78. data/lib/merge_ats_client/models/end_user_details_request.rb +28 -11
  79. data/lib/merge_ats_client/models/gender_enum.rb +17 -7
  80. data/lib/merge_ats_client/models/issue.rb +1 -1
  81. data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
  82. data/lib/merge_ats_client/models/job.rb +14 -3
  83. data/lib/merge_ats_client/models/job_interview_stage.rb +3 -2
  84. data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
  85. data/lib/merge_ats_client/models/link_token.rb +13 -4
  86. data/lib/merge_ats_client/models/meta_response.rb +1 -1
  87. data/lib/merge_ats_client/models/method_enum.rb +17 -7
  88. data/lib/merge_ats_client/models/offer.rb +1 -1
  89. data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
  90. data/lib/merge_ats_client/models/office.rb +1 -1
  91. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
  92. data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
  93. data/lib/merge_ats_client/models/race_enum.rb +17 -7
  94. data/lib/merge_ats_client/models/reason_enum.rb +17 -7
  95. data/lib/merge_ats_client/models/reject_reason.rb +1 -1
  96. data/lib/merge_ats_client/models/remote_response.rb +23 -9
  97. data/lib/merge_ats_client/models/remote_user.rb +1 -1
  98. data/lib/merge_ats_client/models/request_format_enum.rb +17 -7
  99. data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
  100. data/lib/merge_ats_client/models/scheduled_interview.rb +2 -2
  101. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
  102. data/lib/merge_ats_client/models/scorecard.rb +2 -2
  103. data/lib/merge_ats_client/models/sync_status.rb +0 -10
  104. data/lib/merge_ats_client/models/sync_status_status_enum.rb +18 -7
  105. data/lib/merge_ats_client/models/tag.rb +2 -2
  106. data/lib/merge_ats_client/models/{remote_data_request.rb → update_application_stage_request.rb} +26 -35
  107. data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
  108. data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
  109. data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
  110. data/lib/merge_ats_client/version.rb +1 -1
  111. data/lib/merge_ats_client.rb +2 -1
  112. data/spec/api/activities_api_spec.rb +3 -1
  113. data/spec/api/applications_api_spec.rb +16 -1
  114. data/spec/api/attachments_api_spec.rb +3 -1
  115. data/spec/api/candidates_api_spec.rb +1 -1
  116. data/spec/api/departments_api_spec.rb +1 -1
  117. data/spec/api/eeocs_api_spec.rb +3 -1
  118. data/spec/api/interviews_api_spec.rb +3 -1
  119. data/spec/api/job_interview_stages_api_spec.rb +1 -1
  120. data/spec/api/jobs_api_spec.rb +3 -1
  121. data/spec/api/linked_accounts_api_spec.rb +1 -0
  122. data/spec/api/offers_api_spec.rb +3 -1
  123. data/spec/api/offices_api_spec.rb +1 -1
  124. data/spec/api/reject_reasons_api_spec.rb +1 -1
  125. data/spec/api/scorecards_api_spec.rb +3 -1
  126. data/spec/api/sync_status_api_spec.rb +1 -1
  127. data/spec/api/tags_api_spec.rb +1 -1
  128. data/spec/api/users_api_spec.rb +3 -1
  129. data/spec/models/account_details_and_actions_spec.rb +6 -0
  130. data/spec/models/account_details_spec.rb +6 -0
  131. data/spec/models/data_passthrough_request_spec.rb +6 -0
  132. data/spec/models/end_user_details_request_spec.rb +6 -0
  133. data/spec/models/job_spec.rb +6 -0
  134. data/spec/models/link_token_spec.rb +6 -0
  135. data/spec/models/remote_response_spec.rb +12 -0
  136. data/spec/models/response_type_enum_spec.rb +28 -0
  137. data/spec/models/update_application_stage_request_spec.rb +40 -0
  138. metadata +115 -108
@@ -32,6 +32,8 @@ module MergeATSClient
32
32
 
33
33
  attr_accessor :request_format
34
34
 
35
+ attr_accessor :normalize_response
36
+
35
37
  # Attribute mapping from ruby-style variable name to JSON key.
36
38
  def self.attribute_map
37
39
  {
@@ -41,7 +43,8 @@ module MergeATSClient
41
43
  :'data' => :'data',
42
44
  :'multipart_form_data' => :'multipart_form_data',
43
45
  :'headers' => :'headers',
44
- :'request_format' => :'request_format'
46
+ :'request_format' => :'request_format',
47
+ :'normalize_response' => :'normalize_response'
45
48
  }
46
49
  end
47
50
 
@@ -58,8 +61,9 @@ module MergeATSClient
58
61
  :'base_url_override' => :'String',
59
62
  :'data' => :'String',
60
63
  :'multipart_form_data' => :'Array<MultipartFormFieldRequest>',
61
- :'headers' => :'Hash<String, AnyType>',
62
- :'request_format' => :'RequestFormatEnum'
64
+ :'headers' => :'Hash<String, Object>',
65
+ :'request_format' => :'RequestFormatEnum',
66
+ :'normalize_response' => :'Boolean'
63
67
  }
64
68
  end
65
69
 
@@ -70,7 +74,7 @@ module MergeATSClient
70
74
  :'data',
71
75
  :'multipart_form_data',
72
76
  :'headers',
73
- :'request_format'
77
+ :'request_format',
74
78
  ])
75
79
  end
76
80
 
@@ -120,6 +124,10 @@ module MergeATSClient
120
124
  if attributes.key?(:'request_format')
121
125
  self.request_format = attributes[:'request_format']
122
126
  end
127
+
128
+ if attributes.key?(:'normalize_response')
129
+ self.normalize_response = attributes[:'normalize_response']
130
+ end
123
131
  end
124
132
 
125
133
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -205,7 +213,8 @@ module MergeATSClient
205
213
  data == o.data &&
206
214
  multipart_form_data == o.multipart_form_data &&
207
215
  headers == o.headers &&
208
- request_format == o.request_format
216
+ request_format == o.request_format &&
217
+ normalize_response == o.normalize_response
209
218
  end
210
219
 
211
220
  # @see the `==` method
@@ -217,7 +226,7 @@ module MergeATSClient
217
226
  # Calculates hash code according to all attributes.
218
227
  # @return [Integer] Hash code
219
228
  def hash
220
- [method, path, base_url_override, data, multipart_form_data, headers, request_format].hash
229
+ [method, path, base_url_override, data, multipart_form_data, headers, request_format, normalize_response].hash
221
230
  end
222
231
 
223
232
  # Builds the object from hash
@@ -26,7 +26,7 @@ module MergeATSClient
26
26
 
27
27
  attr_accessor :remote_data
28
28
 
29
- # Indicates whether or not this object has been deleted on the third-party.
29
+ # Indicates whether or not this object has been deleted by third party webhooks.
30
30
  attr_accessor :remote_was_deleted
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  NO_I_DONT_HAVE_A_DISABILITY = "NO_I_DONT_HAVE_A_DISABILITY".freeze
20
20
  I_DONT_WISH_TO_ANSWER = "I_DONT_WISH_TO_ANSWER".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY", "NO_I_DONT_HAVE_A_DISABILITY", "I_DONT_WISH_TO_ANSWER", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ IssueStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -40,7 +40,7 @@ module MergeATSClient
40
40
 
41
41
  attr_accessor :remote_data
42
42
 
43
- # Indicates whether or not this object has been deleted on the third-party.
43
+ # Indicates whether or not this object has been deleted by third party webhooks.
44
44
  attr_accessor :remote_was_deleted
45
45
 
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  WORK = "WORK".freeze
20
20
  OTHER = "OTHER".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["PERSONAL", "WORK", "OTHER", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ IssueStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -17,19 +17,30 @@ module MergeATSClient
17
17
  class EncodingEnum
18
18
  RAW = "RAW".freeze
19
19
  BASE64 = "BASE64".freeze
20
+ GZIP_BASE64 = "GZIP_BASE64".freeze
20
21
 
21
- # Builds the enum from string
22
- # @param [String] The enum value in the form of the string
23
- # @return [String] The enum value
24
- def self.build_from_hash(value)
25
- new.build_from_hash(value)
26
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
27
26
 
28
27
  # Builds the enum from string
29
28
  # @param [String] The enum value in the form of the string
30
29
  # @return [String] The enum value
31
30
  def build_from_hash(value)
32
- value
31
+ @raw_value = value
32
+ if ["RAW", "BASE64", "GZIP_BASE64", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ IssueStatusEnum.new.build_from_hash(value)
33
43
  end
34
44
  end
45
+
35
46
  end
@@ -15,20 +15,27 @@ require 'time'
15
15
 
16
16
  module MergeATSClient
17
17
  class EndUserDetailsRequest
18
+ # Your end user's email address.
18
19
  attr_accessor :end_user_email_address
19
20
 
21
+ # Your end user's organization.
20
22
  attr_accessor :end_user_organization_name
21
23
 
24
+ # Unique ID for your end user.
22
25
  attr_accessor :end_user_origin_id
23
26
 
27
+ # The integration categories to show in Merge Link.
24
28
  attr_accessor :categories
25
29
 
26
- # The slug of a specific pre-selected integration for this linking flow token, for examples of slugs see https://www.merge.dev/docs/basics/integration-metadata
30
+ # The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://www.merge.dev/docs/basics/integration-metadata/.
27
31
  attr_accessor :integration
28
32
 
29
- # An integer number of minutes between [30, 720] for how long this token is valid. Defaults to 30
33
+ # An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
30
34
  attr_accessor :link_expiry_mins
31
35
 
36
+ # Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/product/integrations,-fast.-say-hello-to-magic-link/.
37
+ attr_accessor :should_create_magic_link_url
38
+
32
39
  # Attribute mapping from ruby-style variable name to JSON key.
33
40
  def self.attribute_map
34
41
  {
@@ -37,7 +44,8 @@ module MergeATSClient
37
44
  :'end_user_origin_id' => :'end_user_origin_id',
38
45
  :'categories' => :'categories',
39
46
  :'integration' => :'integration',
40
- :'link_expiry_mins' => :'link_expiry_mins'
47
+ :'link_expiry_mins' => :'link_expiry_mins',
48
+ :'should_create_magic_link_url' => :'should_create_magic_link_url'
41
49
  }
42
50
  end
43
51
 
@@ -54,7 +62,8 @@ module MergeATSClient
54
62
  :'end_user_origin_id' => :'String',
55
63
  :'categories' => :'Array<CategoriesEnum>',
56
64
  :'integration' => :'String',
57
- :'link_expiry_mins' => :'Integer'
65
+ :'link_expiry_mins' => :'Integer',
66
+ :'should_create_magic_link_url' => :'Boolean'
58
67
  }
59
68
  end
60
69
 
@@ -62,6 +71,7 @@ module MergeATSClient
62
71
  def self.openapi_nullable
63
72
  Set.new([
64
73
  :'integration',
74
+ :'should_create_magic_link_url'
65
75
  ])
66
76
  end
67
77
 
@@ -107,6 +117,12 @@ module MergeATSClient
107
117
  else
108
118
  self.link_expiry_mins = 30
109
119
  end
120
+
121
+ if attributes.key?(:'should_create_magic_link_url')
122
+ self.should_create_magic_link_url = attributes[:'should_create_magic_link_url']
123
+ else
124
+ self.should_create_magic_link_url = false
125
+ end
110
126
  end
111
127
 
112
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -157,8 +173,8 @@ module MergeATSClient
157
173
  invalid_properties.push('invalid value for "integration", the character length must be great than or equal to 1.')
158
174
  end
159
175
 
160
- if !@link_expiry_mins.nil? && @link_expiry_mins > 720
161
- invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to 720.')
176
+ if !@link_expiry_mins.nil? && @link_expiry_mins > 10080
177
+ invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to 10080.')
162
178
  end
163
179
 
164
180
  if !@link_expiry_mins.nil? && @link_expiry_mins < 30
@@ -182,7 +198,7 @@ module MergeATSClient
182
198
  return false if @end_user_origin_id.to_s.length < 1
183
199
  return false if @categories.nil?
184
200
  return false if !@integration.nil? && @integration.to_s.length < 1
185
- return false if !@link_expiry_mins.nil? && @link_expiry_mins > 720
201
+ return false if !@link_expiry_mins.nil? && @link_expiry_mins > 10080
186
202
  return false if !@link_expiry_mins.nil? && @link_expiry_mins < 30
187
203
  true
188
204
  end
@@ -254,8 +270,8 @@ module MergeATSClient
254
270
  # Custom attribute writer method with validation
255
271
  # @param [Object] link_expiry_mins Value to be assigned
256
272
  def link_expiry_mins=(link_expiry_mins)
257
- if !link_expiry_mins.nil? && link_expiry_mins > 720
258
- fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to 720.'
273
+ if !link_expiry_mins.nil? && link_expiry_mins > 10080
274
+ fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to 10080.'
259
275
  end
260
276
 
261
277
  if !link_expiry_mins.nil? && link_expiry_mins < 30
@@ -275,7 +291,8 @@ module MergeATSClient
275
291
  end_user_origin_id == o.end_user_origin_id &&
276
292
  categories == o.categories &&
277
293
  integration == o.integration &&
278
- link_expiry_mins == o.link_expiry_mins
294
+ link_expiry_mins == o.link_expiry_mins &&
295
+ should_create_magic_link_url == o.should_create_magic_link_url
279
296
  end
280
297
 
281
298
  # @see the `==` method
@@ -287,7 +304,7 @@ module MergeATSClient
287
304
  # Calculates hash code according to all attributes.
288
305
  # @return [Integer] Hash code
289
306
  def hash
290
- [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins].hash
307
+ [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url].hash
291
308
  end
292
309
 
293
310
  # Builds the object from hash
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  OTHER = "OTHER".freeze
22
22
  DECLINE_TO_SELF_IDENTIFY = "DECLINE_TO_SELF_IDENTIFY".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["MALE", "FEMALE", "NON-BINARY", "OTHER", "DECLINE_TO_SELF_IDENTIFY", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -53,7 +53,7 @@ module MergeATSClient
53
53
  :'id' => :'String',
54
54
  :'status' => :'IssueStatusEnum',
55
55
  :'error_description' => :'String',
56
- :'end_user' => :'Hash<String, AnyType>',
56
+ :'end_user' => :'Hash<String, Object>',
57
57
  :'first_incident_time' => :'Time',
58
58
  :'last_incident_time' => :'Time',
59
59
  :'is_muted' => :'Boolean'
@@ -18,18 +18,28 @@ module MergeATSClient
18
18
  ONGOING = "ONGOING".freeze
19
19
  RESOLVED = "RESOLVED".freeze
20
20
 
21
- # Builds the enum from string
22
- # @param [String] The enum value in the form of the string
23
- # @return [String] The enum value
24
- def self.build_from_hash(value)
25
- new.build_from_hash(value)
26
- end
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
27
25
 
28
26
  # Builds the enum from string
29
27
  # @param [String] The enum value in the form of the string
30
28
  # @return [String] The enum value
31
29
  def build_from_hash(value)
32
- value
30
+ @raw_value = value
31
+ if ["ONGOING", "RESOLVED", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ IssueStatusEnum.new.build_from_hash(value)
33
42
  end
34
43
  end
44
+
35
45
  end
@@ -33,6 +33,8 @@ module MergeATSClient
33
33
  # The job's status.
34
34
  attr_accessor :status
35
35
 
36
+ attr_accessor :job_posting_urls
37
+
36
38
  # When the third party's job was created.
37
39
  attr_accessor :remote_created_at
38
40
 
@@ -51,12 +53,12 @@ module MergeATSClient
51
53
  # IDs of `RemoteUser` objects that serve as hiring managers for this `Job`.
52
54
  attr_accessor :hiring_managers
53
55
 
54
- # IDs of RemoteUser objects that serve as recruiters for this Job.
56
+ # IDs of `RemoteUser` objects that serve as recruiters for this `Job`.
55
57
  attr_accessor :recruiters
56
58
 
57
59
  attr_accessor :remote_data
58
60
 
59
- # Indicates whether or not this object has been deleted on the third-party.
61
+ # Indicates whether or not this object has been deleted by third party webhooks.
60
62
  attr_accessor :remote_was_deleted
61
63
 
62
64
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -68,6 +70,7 @@ module MergeATSClient
68
70
  :'description' => :'description',
69
71
  :'code' => :'code',
70
72
  :'status' => :'status',
73
+ :'job_posting_urls' => :'job_posting_urls',
71
74
  :'remote_created_at' => :'remote_created_at',
72
75
  :'remote_updated_at' => :'remote_updated_at',
73
76
  :'confidential' => :'confidential',
@@ -94,6 +97,7 @@ module MergeATSClient
94
97
  :'description' => :'String',
95
98
  :'code' => :'String',
96
99
  :'status' => :'JobStatusEnum',
100
+ :'job_posting_urls' => :'Array<Url>',
97
101
  :'remote_created_at' => :'Time',
98
102
  :'remote_updated_at' => :'Time',
99
103
  :'confidential' => :'Boolean',
@@ -160,6 +164,12 @@ module MergeATSClient
160
164
  self.status = attributes[:'status']
161
165
  end
162
166
 
167
+ if attributes.key?(:'job_posting_urls')
168
+ if (value = attributes[:'job_posting_urls']).is_a?(Array)
169
+ self.job_posting_urls = value
170
+ end
171
+ end
172
+
163
173
  if attributes.key?(:'remote_created_at')
164
174
  self.remote_created_at = attributes[:'remote_created_at']
165
175
  end
@@ -231,6 +241,7 @@ module MergeATSClient
231
241
  description == o.description &&
232
242
  code == o.code &&
233
243
  status == o.status &&
244
+ job_posting_urls == o.job_posting_urls &&
234
245
  remote_created_at == o.remote_created_at &&
235
246
  remote_updated_at == o.remote_updated_at &&
236
247
  confidential == o.confidential &&
@@ -251,7 +262,7 @@ module MergeATSClient
251
262
  # Calculates hash code according to all attributes.
252
263
  # @return [Integer] Hash code
253
264
  def hash
254
- [id, remote_id, name, description, code, status, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_data, remote_was_deleted].hash
265
+ [id, remote_id, name, description, code, status, job_posting_urls, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_data, remote_was_deleted].hash
255
266
  end
256
267
 
257
268
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent the stage of an interview ### Usage Example Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company.
17
+ # # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent the stage that a job application is in. ### 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
 
@@ -24,11 +24,12 @@ module MergeATSClient
24
24
  # The stage's name.
25
25
  attr_accessor :name
26
26
 
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.
27
28
  attr_accessor :job
28
29
 
29
30
  attr_accessor :remote_data
30
31
 
31
- # Indicates whether or not this object has been deleted on the third-party.
32
+ # Indicates whether or not this object has been deleted by third party webhooks.
32
33
  attr_accessor :remote_was_deleted
33
34
 
34
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  ARCHIVED = "ARCHIVED".freeze
22
22
  PENDING = "PENDING".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["OPEN", "CLOSED", "DRAFT", "ARCHIVED", "PENDING", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -19,11 +19,14 @@ module MergeATSClient
19
19
 
20
20
  attr_accessor :integration_name
21
21
 
22
+ attr_accessor :magic_link_url
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'link_token' => :'link_token',
26
- :'integration_name' => :'integration_name'
28
+ :'integration_name' => :'integration_name',
29
+ :'magic_link_url' => :'magic_link_url'
27
30
  }
28
31
  end
29
32
 
@@ -36,7 +39,8 @@ module MergeATSClient
36
39
  def self.openapi_types
37
40
  {
38
41
  :'link_token' => :'String',
39
- :'integration_name' => :'String'
42
+ :'integration_name' => :'String',
43
+ :'magic_link_url' => :'String'
40
44
  }
41
45
  end
42
46
 
@@ -68,6 +72,10 @@ module MergeATSClient
68
72
  if attributes.key?(:'integration_name')
69
73
  self.integration_name = attributes[:'integration_name']
70
74
  end
75
+
76
+ if attributes.key?(:'magic_link_url')
77
+ self.magic_link_url = attributes[:'magic_link_url']
78
+ end
71
79
  end
72
80
 
73
81
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +107,8 @@ module MergeATSClient
99
107
  return true if self.equal?(o)
100
108
  self.class == o.class &&
101
109
  link_token == o.link_token &&
102
- integration_name == o.integration_name
110
+ integration_name == o.integration_name &&
111
+ magic_link_url == o.magic_link_url
103
112
  end
104
113
 
105
114
  # @see the `==` method
@@ -111,7 +120,7 @@ module MergeATSClient
111
120
  # Calculates hash code according to all attributes.
112
121
  # @return [Integer] Hash code
113
122
  def hash
114
- [link_token, integration_name].hash
123
+ [link_token, integration_name, magic_link_url].hash
115
124
  end
116
125
 
117
126
  # Builds the object from hash
@@ -41,7 +41,7 @@ module MergeATSClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'request_schema' => :'Hash<String, AnyType>',
44
+ :'request_schema' => :'Hash<String, Object>',
45
45
  :'status' => :'LinkedAccountStatus',
46
46
  :'has_conditional_params' => :'Boolean',
47
47
  :'has_required_linked_account_params' => :'Boolean'
@@ -23,18 +23,28 @@ module MergeATSClient
23
23
  PATCH = "PATCH".freeze
24
24
  DELETE = "DELETE".freeze
25
25
 
26
- # Builds the enum from string
27
- # @param [String] The enum value in the form of the string
28
- # @return [String] The enum value
29
- def self.build_from_hash(value)
30
- new.build_from_hash(value)
31
- end
26
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
27
+
28
+ attr_accessor :value
29
+ attr_accessor :raw_value
32
30
 
33
31
  # Builds the enum from string
34
32
  # @param [String] The enum value in the form of the string
35
33
  # @return [String] The enum value
36
34
  def build_from_hash(value)
37
- value
35
+ @raw_value = value
36
+ if ["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE", ].include? value
37
+ @value = value
38
+ else
39
+ @value = MERGE_NONSTANDARD_VALUE
40
+ end
41
+
42
+ self
43
+ end
44
+
45
+ def self.build_from_hash(value)
46
+ IssueStatusEnum.new.build_from_hash(value)
38
47
  end
39
48
  end
49
+
40
50
  end
@@ -42,7 +42,7 @@ module MergeATSClient
42
42
 
43
43
  attr_accessor :remote_data
44
44
 
45
- # Indicates whether or not this object has been deleted on the third-party.
45
+ # Indicates whether or not this object has been deleted by third party webhooks.
46
46
  attr_accessor :remote_was_deleted
47
47
 
48
48
  # Attribute mapping from ruby-style variable name to JSON key.