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.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +186 -167
  4. data/docs/AccountIntegration.md +6 -2
  5. data/docs/ActivitiesApi.md +164 -8
  6. data/docs/Activity.md +12 -6
  7. data/docs/ActivityEndpointRequest.md +20 -0
  8. data/docs/ActivityRequest.md +32 -0
  9. data/docs/ActivityResponse.md +24 -0
  10. data/docs/Application.md +12 -10
  11. data/docs/ApplicationRequest.md +5 -9
  12. data/docs/ApplicationsApi.md +4 -4
  13. data/docs/Attachment.md +8 -4
  14. data/docs/AttachmentRequest.md +1 -3
  15. data/docs/AttachmentsApi.md +13 -9
  16. data/docs/Candidate.md +8 -6
  17. data/docs/CandidateRequest.md +1 -9
  18. data/docs/CandidatesApi.md +16 -13
  19. data/docs/CommonModelScopesBodyRequest.md +22 -0
  20. data/docs/ConditionSchema.md +30 -0
  21. data/docs/ConditionTypeEnum.md +15 -0
  22. data/docs/DataPassthroughRequest.md +1 -1
  23. data/docs/Department.md +7 -3
  24. data/docs/DepartmentsApi.md +4 -4
  25. data/docs/EEOC.md +12 -8
  26. data/docs/EeocsApi.md +13 -9
  27. data/docs/EmailAddress.md +4 -2
  28. data/docs/EmailAddressRequest.md +6 -2
  29. data/docs/EnabledActionsEnum.md +15 -0
  30. data/docs/EndUserDetailsRequest.md +5 -3
  31. data/docs/ForceResyncApi.md +1 -1
  32. data/docs/InterviewsApi.md +165 -9
  33. data/docs/Issue.md +10 -8
  34. data/docs/IssuesApi.md +6 -6
  35. data/docs/Job.md +8 -4
  36. data/docs/JobInterviewStage.md +10 -4
  37. data/docs/JobInterviewStagesApi.md +4 -4
  38. data/docs/JobsApi.md +16 -10
  39. data/docs/LinkToken.md +1 -1
  40. data/docs/LinkedAccountCondition.md +28 -0
  41. data/docs/LinkedAccountConditionRequest.md +22 -0
  42. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  43. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  44. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  45. data/docs/LinkedAccountsApi.md +2 -2
  46. data/docs/MetaResponse.md +2 -0
  47. data/docs/MultipartFormFieldRequest.md +1 -1
  48. data/docs/Offer.md +10 -6
  49. data/docs/OffersApi.md +13 -9
  50. data/docs/Office.md +7 -3
  51. data/docs/OfficesApi.md +4 -4
  52. data/docs/OperatorSchema.md +20 -0
  53. data/docs/PaginatedConditionSchemaList.md +22 -0
  54. data/docs/PhoneNumber.md +4 -2
  55. data/docs/PhoneNumberRequest.md +6 -2
  56. data/docs/RejectReason.md +7 -3
  57. data/docs/RejectReasonsApi.md +4 -4
  58. data/docs/RemoteUser.md +8 -4
  59. data/docs/ScheduledInterview.md +11 -7
  60. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  61. data/docs/ScheduledInterviewRequest.md +36 -0
  62. data/docs/ScheduledInterviewResponse.md +24 -0
  63. data/docs/Scorecard.md +11 -7
  64. data/docs/ScorecardsApi.md +13 -9
  65. data/docs/SelectiveSyncApi.md +233 -0
  66. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  67. data/docs/SyncStatus.md +3 -1
  68. data/docs/SyncStatusApi.md +1 -1
  69. data/docs/Tag.md +7 -3
  70. data/docs/TagsApi.md +4 -4
  71. data/docs/Url.md +4 -2
  72. data/docs/UrlRequest.md +6 -2
  73. data/docs/UsersApi.md +13 -9
  74. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  75. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  76. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  77. data/lib/merge_ats_client/api/candidates_api.rb +15 -11
  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 +225 -0
  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/access_role_enum.rb +1 -1
  95. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +1 -1
  96. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  97. data/lib/merge_ats_client/models/activity.rb +50 -16
  98. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  99. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  100. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  101. data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
  102. data/lib/merge_ats_client/models/application.rb +40 -26
  103. data/lib/merge_ats_client/models/application_request.rb +7 -26
  104. data/lib/merge_ats_client/models/attachment.rb +38 -16
  105. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  106. data/lib/merge_ats_client/models/attachment_type_enum.rb +1 -1
  107. data/lib/merge_ats_client/models/candidate.rb +36 -27
  108. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  109. data/lib/merge_ats_client/models/categories_enum.rb +4 -2
  110. data/lib/merge_ats_client/models/category_enum.rb +4 -2
  111. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  112. data/lib/merge_ats_client/models/condition_schema.rb +298 -0
  113. data/lib/merge_ats_client/models/condition_type_enum.rb +50 -0
  114. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  115. data/lib/merge_ats_client/models/department.rb +36 -14
  116. data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
  117. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  118. data/lib/merge_ats_client/models/email_address.rb +16 -6
  119. data/lib/merge_ats_client/models/email_address_request.rb +30 -6
  120. data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
  121. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  122. data/lib/merge_ats_client/models/encoding_enum.rb +1 -1
  123. data/lib/merge_ats_client/models/end_user_details_request.rb +20 -7
  124. data/lib/merge_ats_client/models/gender_enum.rb +1 -1
  125. data/lib/merge_ats_client/models/issue.rb +16 -4
  126. data/lib/merge_ats_client/models/job.rb +38 -16
  127. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  128. data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
  129. data/lib/merge_ats_client/models/link_token.rb +0 -5
  130. data/lib/merge_ats_client/models/linked_account_condition.rb +282 -0
  131. data/lib/merge_ats_client/models/linked_account_condition_request.rb +269 -0
  132. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration.rb +221 -0
  133. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  134. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  135. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  136. data/lib/merge_ats_client/models/method_enum.rb +1 -1
  137. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  138. data/lib/merge_ats_client/models/offer.rb +40 -16
  139. data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
  140. data/lib/merge_ats_client/models/office.rb +37 -15
  141. data/lib/merge_ats_client/models/operator_schema.rb +229 -0
  142. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
  143. data/lib/merge_ats_client/models/paginated_condition_schema_list.rb +240 -0
  144. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  145. data/lib/merge_ats_client/models/phone_number_request.rb +30 -6
  146. data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
  147. data/lib/merge_ats_client/models/race_enum.rb +1 -1
  148. data/lib/merge_ats_client/models/reason_enum.rb +1 -1
  149. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  150. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  151. data/lib/merge_ats_client/models/request_format_enum.rb +1 -1
  152. data/lib/merge_ats_client/models/response_type_enum.rb +1 -1
  153. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  154. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  155. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  156. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  157. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
  158. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  159. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  160. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  161. data/lib/merge_ats_client/models/sync_status_status_enum.rb +3 -2
  162. data/lib/merge_ats_client/models/tag.rb +36 -14
  163. data/lib/merge_ats_client/models/url.rb +17 -7
  164. data/lib/merge_ats_client/models/url_request.rb +31 -7
  165. data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
  166. data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
  167. data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
  168. data/lib/merge_ats_client/version.rb +1 -1
  169. data/lib/merge_ats_client.rb +19 -1
  170. data/spec/api/activities_api_spec.rb +31 -4
  171. data/spec/api/applications_api_spec.rb +2 -2
  172. data/spec/api/attachments_api_spec.rb +6 -4
  173. data/spec/api/candidates_api_spec.rb +5 -3
  174. data/spec/api/departments_api_spec.rb +2 -2
  175. data/spec/api/eeocs_api_spec.rb +6 -4
  176. data/spec/api/force_resync_api_spec.rb +1 -1
  177. data/spec/api/interviews_api_spec.rb +31 -4
  178. data/spec/api/issues_api_spec.rb +3 -3
  179. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  180. data/spec/api/jobs_api_spec.rb +8 -5
  181. data/spec/api/linked_accounts_api_spec.rb +1 -1
  182. data/spec/api/offers_api_spec.rb +6 -4
  183. data/spec/api/offices_api_spec.rb +2 -2
  184. data/spec/api/reject_reasons_api_spec.rb +2 -2
  185. data/spec/api/scorecards_api_spec.rb +6 -4
  186. data/spec/api/selective_sync_api_spec.rb +72 -0
  187. data/spec/api/sync_status_api_spec.rb +1 -1
  188. data/spec/api/tags_api_spec.rb +2 -2
  189. data/spec/api/users_api_spec.rb +6 -4
  190. data/spec/models/account_integration_spec.rb +12 -0
  191. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  192. data/spec/models/activity_request_spec.rb +76 -0
  193. data/spec/models/activity_response_spec.rb +52 -0
  194. data/spec/models/activity_spec.rb +19 -1
  195. data/spec/models/application_request_spec.rb +0 -12
  196. data/spec/models/application_spec.rb +9 -3
  197. data/spec/models/attachment_request_spec.rb +0 -6
  198. data/spec/models/attachment_spec.rb +14 -2
  199. data/spec/models/candidate_request_spec.rb +0 -24
  200. data/spec/models/candidate_spec.rb +9 -3
  201. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  202. data/spec/models/condition_schema_spec.rb +70 -0
  203. data/spec/models/condition_type_enum_spec.rb +28 -0
  204. data/spec/models/department_spec.rb +14 -2
  205. data/spec/models/eeoc_spec.rb +14 -2
  206. data/spec/models/email_address_request_spec.rb +12 -0
  207. data/spec/models/email_address_spec.rb +6 -0
  208. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  209. data/spec/models/end_user_details_request_spec.rb +6 -0
  210. data/spec/models/issue_spec.rb +6 -0
  211. data/spec/models/job_interview_stage_spec.rb +19 -1
  212. data/spec/models/job_spec.rb +14 -2
  213. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  214. data/spec/models/linked_account_condition_spec.rb +64 -0
  215. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  216. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  217. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  218. data/spec/models/meta_response_spec.rb +6 -0
  219. data/spec/models/offer_spec.rb +14 -2
  220. data/spec/models/office_spec.rb +14 -2
  221. data/spec/models/{remote_data_request_spec.rb → operator_schema_spec.rb} +8 -8
  222. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  223. data/spec/models/phone_number_request_spec.rb +12 -0
  224. data/spec/models/phone_number_spec.rb +6 -0
  225. data/spec/models/reject_reason_spec.rb +14 -2
  226. data/spec/models/remote_user_spec.rb +14 -2
  227. data/spec/models/scheduled_interview_endpoint_request_spec.rb +40 -0
  228. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  229. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  230. data/spec/models/scheduled_interview_spec.rb +14 -2
  231. data/spec/models/scorecard_spec.rb +14 -2
  232. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  233. data/spec/models/sync_status_spec.rb +6 -0
  234. data/spec/models/tag_spec.rb +14 -2
  235. data/spec/models/url_request_spec.rb +12 -0
  236. data/spec/models/url_spec.rb +6 -0
  237. metadata +182 -109
@@ -19,14 +19,20 @@ module MergeATSClient
19
19
  # The email address.
20
20
  attr_accessor :value
21
21
 
22
- # The type of email address.
22
+ # The type of email address. * `PERSONAL` - PERSONAL * `WORK` - WORK * `OTHER` - OTHER
23
23
  attr_accessor :email_address_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
- :'email_address_type' => :'email_address_type'
33
+ :'email_address_type' => :'email_address_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
- :'email_address_type' => :'EmailAddressTypeEnum'
48
+ :'email_address_type' => :'EmailAddressTypeEnum',
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
- :'email_address_type'
58
+ :'email_address_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?(:'email_address_type')
74
84
  self.email_address_type = attributes[:'email_address_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?
@@ -109,7 +131,9 @@ module MergeATSClient
109
131
  return true if self.equal?(o)
110
132
  self.class == o.class &&
111
133
  value == o.value &&
112
- email_address_type == o.email_address_type
134
+ email_address_type == o.email_address_type &&
135
+ integration_params == o.integration_params &&
136
+ linked_account_params == o.linked_account_params
113
137
  end
114
138
 
115
139
  # @see the `==` method
@@ -121,7 +145,7 @@ module MergeATSClient
121
145
  # Calculates hash code according to all attributes.
122
146
  # @return [Integer] Hash code
123
147
  def hash
124
- [value, email_address_type].hash
148
+ [value, email_address_type, integration_params, linked_account_params].hash
125
149
  end
126
150
 
127
151
  # Builds the object from hash
@@ -39,7 +39,7 @@ module MergeATSClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ EmailAddressTypeEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -0,0 +1,45 @@
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 EnabledActionsEnum
18
+ READ = "READ".freeze
19
+ WRITE = "WRITE".freeze
20
+
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
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 build_from_hash(value)
30
+ @raw_value = value
31
+ if ["READ", "WRITE", ].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
+ EnabledActionsEnum.new.build_from_hash(value)
42
+ end
43
+ end
44
+
45
+ end
@@ -39,7 +39,7 @@ module MergeATSClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ EncodingEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -15,13 +15,13 @@ require 'time'
15
15
 
16
16
  module MergeATSClient
17
17
  class EndUserDetailsRequest
18
- # Your end user's email address.
18
+ # Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.
19
19
  attr_accessor :end_user_email_address
20
20
 
21
21
  # Your end user's organization.
22
22
  attr_accessor :end_user_organization_name
23
23
 
24
- # Unique ID for your end user.
24
+ # This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.
25
25
  attr_accessor :end_user_origin_id
26
26
 
27
27
  # The integration categories to show in Merge Link.
@@ -36,6 +36,9 @@ module MergeATSClient
36
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
37
  attr_accessor :should_create_magic_link_url
38
38
 
39
+ # An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
40
+ attr_accessor :common_models
41
+
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
@@ -45,7 +48,8 @@ module MergeATSClient
45
48
  :'categories' => :'categories',
46
49
  :'integration' => :'integration',
47
50
  :'link_expiry_mins' => :'link_expiry_mins',
48
- :'should_create_magic_link_url' => :'should_create_magic_link_url'
51
+ :'should_create_magic_link_url' => :'should_create_magic_link_url',
52
+ :'common_models' => :'common_models'
49
53
  }
50
54
  end
51
55
 
@@ -63,7 +67,8 @@ module MergeATSClient
63
67
  :'categories' => :'Array<CategoriesEnum>',
64
68
  :'integration' => :'String',
65
69
  :'link_expiry_mins' => :'Integer',
66
- :'should_create_magic_link_url' => :'Boolean'
70
+ :'should_create_magic_link_url' => :'Boolean',
71
+ :'common_models' => :'Array<CommonModelScopesBodyRequest>'
67
72
  }
68
73
  end
69
74
 
@@ -71,7 +76,8 @@ module MergeATSClient
71
76
  def self.openapi_nullable
72
77
  Set.new([
73
78
  :'integration',
74
- :'should_create_magic_link_url'
79
+ :'should_create_magic_link_url',
80
+ :'common_models'
75
81
  ])
76
82
  end
77
83
 
@@ -123,6 +129,12 @@ module MergeATSClient
123
129
  else
124
130
  self.should_create_magic_link_url = false
125
131
  end
132
+
133
+ if attributes.key?(:'common_models')
134
+ if (value = attributes[:'common_models']).is_a?(Array)
135
+ self.common_models = value
136
+ end
137
+ end
126
138
  end
127
139
 
128
140
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -292,7 +304,8 @@ module MergeATSClient
292
304
  categories == o.categories &&
293
305
  integration == o.integration &&
294
306
  link_expiry_mins == o.link_expiry_mins &&
295
- should_create_magic_link_url == o.should_create_magic_link_url
307
+ should_create_magic_link_url == o.should_create_magic_link_url &&
308
+ common_models == o.common_models
296
309
  end
297
310
 
298
311
  # @see the `==` method
@@ -304,7 +317,7 @@ module MergeATSClient
304
317
  # Calculates hash code according to all attributes.
305
318
  # @return [Integer] Hash code
306
319
  def 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
320
+ [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url, common_models].hash
308
321
  end
309
322
 
310
323
  # Builds the object from hash
@@ -41,7 +41,7 @@ module MergeATSClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ GenderEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -17,6 +17,7 @@ module MergeATSClient
17
17
  class Issue
18
18
  attr_accessor :id
19
19
 
20
+ # Status of the issue. Options: ('ONGOING', 'RESOLVED') * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED
20
21
  attr_accessor :status
21
22
 
22
23
  attr_accessor :error_description
@@ -29,6 +30,8 @@ module MergeATSClient
29
30
 
30
31
  attr_accessor :is_muted
31
32
 
33
+ attr_accessor :error_details
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -38,7 +41,8 @@ module MergeATSClient
38
41
  :'end_user' => :'end_user',
39
42
  :'first_incident_time' => :'first_incident_time',
40
43
  :'last_incident_time' => :'last_incident_time',
41
- :'is_muted' => :'is_muted'
44
+ :'is_muted' => :'is_muted',
45
+ :'error_details' => :'error_details'
42
46
  }
43
47
  end
44
48
 
@@ -56,7 +60,8 @@ module MergeATSClient
56
60
  :'end_user' => :'Hash<String, Object>',
57
61
  :'first_incident_time' => :'Time',
58
62
  :'last_incident_time' => :'Time',
59
- :'is_muted' => :'Boolean'
63
+ :'is_muted' => :'Boolean',
64
+ :'error_details' => :'Array<String>'
60
65
  }
61
66
  end
62
67
 
@@ -112,6 +117,12 @@ module MergeATSClient
112
117
  if attributes.key?(:'is_muted')
113
118
  self.is_muted = attributes[:'is_muted']
114
119
  end
120
+
121
+ if attributes.key?(:'error_details')
122
+ if (value = attributes[:'error_details']).is_a?(Array)
123
+ self.error_details = value
124
+ end
125
+ end
115
126
  end
116
127
 
117
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -143,7 +154,8 @@ module MergeATSClient
143
154
  end_user == o.end_user &&
144
155
  first_incident_time == o.first_incident_time &&
145
156
  last_incident_time == o.last_incident_time &&
146
- is_muted == o.is_muted
157
+ is_muted == o.is_muted &&
158
+ error_details == o.error_details
147
159
  end
148
160
 
149
161
  # @see the `==` method
@@ -155,7 +167,7 @@ module MergeATSClient
155
167
  # Calculates hash code according to all attributes.
156
168
  # @return [Integer] Hash code
157
169
  def hash
158
- [id, status, error_description, end_user, first_incident_time, last_incident_time, is_muted].hash
170
+ [id, status, error_description, end_user, first_incident_time, last_incident_time, is_muted, error_details].hash
159
171
  end
160
172
 
161
173
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Job Object ### Description The `Job` object is used to represent a Job offering at a company. ### Usage Example Fetch from the `LIST Jobs` endpoint to show all job postings.
17
+ # # The Job Object ### Description The `Job` object can be used to track any jobs that are currently or will be open/closed for applications. ### Usage Example Fetch from the `LIST Jobs` endpoint to show all job postings.
18
18
  class Job
19
19
  attr_accessor :id
20
20
 
@@ -30,7 +30,7 @@ module MergeATSClient
30
30
  # The job's code. Typically an additional identifier used to reference the particular job that is displayed on the ATS.
31
31
  attr_accessor :code
32
32
 
33
- # The job's status.
33
+ # The job's status. * `OPEN` - OPEN * `CLOSED` - CLOSED * `DRAFT` - DRAFT * `ARCHIVED` - ARCHIVED * `PENDING` - PENDING
34
34
  attr_accessor :status
35
35
 
36
36
  attr_accessor :job_posting_urls
@@ -56,11 +56,16 @@ module MergeATSClient
56
56
  # IDs of `RemoteUser` objects that serve as recruiters for this `Job`.
57
57
  attr_accessor :recruiters
58
58
 
59
- attr_accessor :remote_data
60
-
61
59
  # Indicates whether or not this object has been deleted by third party webhooks.
62
60
  attr_accessor :remote_was_deleted
63
61
 
62
+ attr_accessor :field_mappings
63
+
64
+ # This is the datetime that this object was last updated by Merge
65
+ attr_accessor :modified_at
66
+
67
+ attr_accessor :remote_data
68
+
64
69
  # Attribute mapping from ruby-style variable name to JSON key.
65
70
  def self.attribute_map
66
71
  {
@@ -78,8 +83,10 @@ module MergeATSClient
78
83
  :'offices' => :'offices',
79
84
  :'hiring_managers' => :'hiring_managers',
80
85
  :'recruiters' => :'recruiters',
81
- :'remote_data' => :'remote_data',
82
- :'remote_was_deleted' => :'remote_was_deleted'
86
+ :'remote_was_deleted' => :'remote_was_deleted',
87
+ :'field_mappings' => :'field_mappings',
88
+ :'modified_at' => :'modified_at',
89
+ :'remote_data' => :'remote_data'
83
90
  }
84
91
  end
85
92
 
@@ -105,8 +112,10 @@ module MergeATSClient
105
112
  :'offices' => :'Array<String>',
106
113
  :'hiring_managers' => :'Array<String>',
107
114
  :'recruiters' => :'Array<String>',
108
- :'remote_data' => :'Array<RemoteData>',
109
- :'remote_was_deleted' => :'Boolean'
115
+ :'remote_was_deleted' => :'Boolean',
116
+ :'field_mappings' => :'Hash<String, Object>',
117
+ :'modified_at' => :'Time',
118
+ :'remote_data' => :'Array<RemoteData>'
110
119
  }
111
120
  end
112
121
 
@@ -121,7 +130,8 @@ module MergeATSClient
121
130
  :'remote_created_at',
122
131
  :'remote_updated_at',
123
132
  :'confidential',
124
- :'remote_data',
133
+ :'field_mappings',
134
+ :'remote_data'
125
135
  ])
126
136
  end
127
137
 
@@ -206,15 +216,25 @@ module MergeATSClient
206
216
  end
207
217
  end
208
218
 
219
+ if attributes.key?(:'remote_was_deleted')
220
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
221
+ end
222
+
223
+ if attributes.key?(:'field_mappings')
224
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
225
+ self.field_mappings = value
226
+ end
227
+ end
228
+
229
+ if attributes.key?(:'modified_at')
230
+ self.modified_at = attributes[:'modified_at']
231
+ end
232
+
209
233
  if attributes.key?(:'remote_data')
210
234
  if (value = attributes[:'remote_data']).is_a?(Array)
211
235
  self.remote_data = value
212
236
  end
213
237
  end
214
-
215
- if attributes.key?(:'remote_was_deleted')
216
- self.remote_was_deleted = attributes[:'remote_was_deleted']
217
- end
218
238
  end
219
239
 
220
240
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -249,8 +269,10 @@ module MergeATSClient
249
269
  offices == o.offices &&
250
270
  hiring_managers == o.hiring_managers &&
251
271
  recruiters == o.recruiters &&
252
- remote_data == o.remote_data &&
253
- remote_was_deleted == o.remote_was_deleted
272
+ remote_was_deleted == o.remote_was_deleted &&
273
+ field_mappings == o.field_mappings &&
274
+ modified_at == o.modified_at &&
275
+ remote_data == o.remote_data
254
276
  end
255
277
 
256
278
  # @see the `==` method
@@ -262,7 +284,7 @@ module MergeATSClient
262
284
  # Calculates hash code according to all attributes.
263
285
  # @return [Integer] Hash code
264
286
  def 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
287
+ [id, remote_id, name, description, code, status, job_posting_urls, remote_created_at, remote_updated_at, confidential, departments, offices, hiring_managers, recruiters, remote_was_deleted, field_mappings, modified_at, remote_data].hash
266
288
  end
267
289
 
268
290
  # Builds the object from hash
@@ -14,24 +14,32 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent 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.
17
+ # # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent a particular recruiting stage for an `Application`. A given `Application` typically has the `JobInterviewStage` object represented in the current_stage field. ### Usage Example Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company.
18
18
  class JobInterviewStage
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The stage's name.
24
+ # Standard stage names are offered by ATS systems but can be modified by users.
25
25
  attr_accessor :name
26
26
 
27
27
  # This field is populated only if the stage is specific to a particular job. If the stage is generic, this field will not be populated.
28
28
  attr_accessor :job
29
29
 
30
- attr_accessor :remote_data
30
+ # The stage’s order, with the lowest values ordered first. If the third-party does not return details on the order of stages, this field will not be populated.
31
+ attr_accessor :stage_order
31
32
 
32
33
  # Indicates whether or not this object has been deleted by third party webhooks.
33
34
  attr_accessor :remote_was_deleted
34
35
 
36
+ attr_accessor :field_mappings
37
+
38
+ # This is the datetime that this object was last updated by Merge
39
+ attr_accessor :modified_at
40
+
41
+ attr_accessor :remote_data
42
+
35
43
  # Attribute mapping from ruby-style variable name to JSON key.
36
44
  def self.attribute_map
37
45
  {
@@ -39,8 +47,11 @@ module MergeATSClient
39
47
  :'remote_id' => :'remote_id',
40
48
  :'name' => :'name',
41
49
  :'job' => :'job',
42
- :'remote_data' => :'remote_data',
43
- :'remote_was_deleted' => :'remote_was_deleted'
50
+ :'stage_order' => :'stage_order',
51
+ :'remote_was_deleted' => :'remote_was_deleted',
52
+ :'field_mappings' => :'field_mappings',
53
+ :'modified_at' => :'modified_at',
54
+ :'remote_data' => :'remote_data'
44
55
  }
45
56
  end
46
57
 
@@ -56,8 +67,11 @@ module MergeATSClient
56
67
  :'remote_id' => :'String',
57
68
  :'name' => :'String',
58
69
  :'job' => :'String',
59
- :'remote_data' => :'Array<RemoteData>',
60
- :'remote_was_deleted' => :'Boolean'
70
+ :'stage_order' => :'Integer',
71
+ :'remote_was_deleted' => :'Boolean',
72
+ :'field_mappings' => :'Hash<String, Object>',
73
+ :'modified_at' => :'Time',
74
+ :'remote_data' => :'Array<RemoteData>'
61
75
  }
62
76
  end
63
77
 
@@ -67,7 +81,9 @@ module MergeATSClient
67
81
  :'remote_id',
68
82
  :'name',
69
83
  :'job',
70
- :'remote_data',
84
+ :'stage_order',
85
+ :'field_mappings',
86
+ :'remote_data'
71
87
  ])
72
88
  end
73
89
 
@@ -102,30 +118,68 @@ module MergeATSClient
102
118
  self.job = attributes[:'job']
103
119
  end
104
120
 
105
- if attributes.key?(:'remote_data')
106
- if (value = attributes[:'remote_data']).is_a?(Array)
107
- self.remote_data = value
108
- end
121
+ if attributes.key?(:'stage_order')
122
+ self.stage_order = attributes[:'stage_order']
109
123
  end
110
124
 
111
125
  if attributes.key?(:'remote_was_deleted')
112
126
  self.remote_was_deleted = attributes[:'remote_was_deleted']
113
127
  end
128
+
129
+ if attributes.key?(:'field_mappings')
130
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
131
+ self.field_mappings = value
132
+ end
133
+ end
134
+
135
+ if attributes.key?(:'modified_at')
136
+ self.modified_at = attributes[:'modified_at']
137
+ end
138
+
139
+ if attributes.key?(:'remote_data')
140
+ if (value = attributes[:'remote_data']).is_a?(Array)
141
+ self.remote_data = value
142
+ end
143
+ end
114
144
  end
115
145
 
116
146
  # Show invalid properties with the reasons. Usually used together with valid?
117
147
  # @return Array for valid properties with the reasons
118
148
  def list_invalid_properties
119
149
  invalid_properties = Array.new
150
+ if !@stage_order.nil? && @stage_order > 2147483647
151
+ invalid_properties.push('invalid value for "stage_order", must be smaller than or equal to 2147483647.')
152
+ end
153
+
154
+ if !@stage_order.nil? && @stage_order < -2147483648
155
+ invalid_properties.push('invalid value for "stage_order", must be greater than or equal to -2147483648.')
156
+ end
157
+
120
158
  invalid_properties
121
159
  end
122
160
 
123
161
  # Check to see if the all the properties in the model are valid
124
162
  # @return true if the model is valid
125
163
  def valid?
164
+ return false if !@stage_order.nil? && @stage_order > 2147483647
165
+ return false if !@stage_order.nil? && @stage_order < -2147483648
126
166
  true
127
167
  end
128
168
 
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] stage_order Value to be assigned
171
+ def stage_order=(stage_order)
172
+ if !stage_order.nil? && stage_order > 2147483647
173
+ fail ArgumentError, 'invalid value for "stage_order", must be smaller than or equal to 2147483647.'
174
+ end
175
+
176
+ if !stage_order.nil? && stage_order < -2147483648
177
+ fail ArgumentError, 'invalid value for "stage_order", must be greater than or equal to -2147483648.'
178
+ end
179
+
180
+ @stage_order = stage_order
181
+ end
182
+
129
183
  # Checks equality by comparing each attribute.
130
184
  # @param [Object] Object to be compared
131
185
  def ==(o)
@@ -135,8 +189,11 @@ module MergeATSClient
135
189
  remote_id == o.remote_id &&
136
190
  name == o.name &&
137
191
  job == o.job &&
138
- remote_data == o.remote_data &&
139
- remote_was_deleted == o.remote_was_deleted
192
+ stage_order == o.stage_order &&
193
+ remote_was_deleted == o.remote_was_deleted &&
194
+ field_mappings == o.field_mappings &&
195
+ modified_at == o.modified_at &&
196
+ remote_data == o.remote_data
140
197
  end
141
198
 
142
199
  # @see the `==` method
@@ -148,7 +205,7 @@ module MergeATSClient
148
205
  # Calculates hash code according to all attributes.
149
206
  # @return [Integer] Hash code
150
207
  def hash
151
- [id, remote_id, name, job, remote_data, remote_was_deleted].hash
208
+ [id, remote_id, name, job, stage_order, remote_was_deleted, field_mappings, modified_at, remote_data].hash
152
209
  end
153
210
 
154
211
  # Builds the object from hash
@@ -41,7 +41,7 @@ module MergeATSClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ JobStatusEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -86,10 +86,6 @@ module MergeATSClient
86
86
  invalid_properties.push('invalid value for "link_token", link_token cannot be nil.')
87
87
  end
88
88
 
89
- if @integration_name.nil?
90
- invalid_properties.push('invalid value for "integration_name", integration_name cannot be nil.')
91
- end
92
-
93
89
  invalid_properties
94
90
  end
95
91
 
@@ -97,7 +93,6 @@ module MergeATSClient
97
93
  # @return true if the model is valid
98
94
  def valid?
99
95
  return false if @link_token.nil?
100
- return false if @integration_name.nil?
101
96
  true
102
97
  end
103
98