merge_ats_client 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +20 -6
  4. data/docs/AccountDetails.md +3 -1
  5. data/docs/AccountDetailsAndActions.md +2 -0
  6. data/docs/ActivitiesApi.md +7 -3
  7. data/docs/Activity.md +1 -1
  8. data/docs/ApplicationsApi.md +84 -2
  9. data/docs/AttachmentsApi.md +7 -3
  10. data/docs/CandidatesApi.md +2 -2
  11. data/docs/ConditionSchema.md +30 -0
  12. data/docs/ConditionTypeEnum.md +15 -0
  13. data/docs/DataPassthroughRequest.md +3 -1
  14. data/docs/Department.md +1 -1
  15. data/docs/DepartmentsApi.md +2 -2
  16. data/docs/EEOC.md +1 -1
  17. data/docs/EeocsApi.md +7 -3
  18. data/docs/EmailAddressRequest.md +5 -1
  19. data/docs/EndUserDetailsRequest.md +9 -7
  20. data/docs/InterviewsApi.md +7 -3
  21. data/docs/Job.md +4 -2
  22. data/docs/JobInterviewStage.md +2 -2
  23. data/docs/JobInterviewStagesApi.md +2 -2
  24. data/docs/JobsApi.md +7 -3
  25. data/docs/LinkToken.md +3 -1
  26. data/docs/LinkedAccountCondition.md +28 -0
  27. data/docs/LinkedAccountConditionRequest.md +22 -0
  28. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  29. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  30. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  31. data/docs/LinkedAccountsApi.md +2 -0
  32. data/docs/Offer.md +1 -1
  33. data/docs/OffersApi.md +7 -3
  34. data/docs/Office.md +1 -1
  35. data/docs/OfficesApi.md +2 -2
  36. data/docs/OperatorSchema.md +20 -0
  37. data/docs/PaginatedConditionSchemaList.md +22 -0
  38. data/docs/PhoneNumberRequest.md +5 -1
  39. data/docs/RejectReason.md +1 -1
  40. data/docs/RejectReasonsApi.md +2 -2
  41. data/docs/RemoteResponse.md +5 -1
  42. data/docs/RemoteUser.md +1 -1
  43. data/docs/ResponseTypeEnum.md +15 -0
  44. data/docs/ScheduledInterview.md +1 -1
  45. data/docs/Scorecard.md +1 -1
  46. data/docs/ScorecardsApi.md +7 -3
  47. data/docs/SelectiveSyncApi.md +233 -0
  48. data/docs/SyncStatus.md +2 -2
  49. data/docs/SyncStatusApi.md +1 -1
  50. data/docs/Tag.md +1 -1
  51. data/docs/TagsApi.md +2 -2
  52. data/docs/UpdateApplicationStageRequest.md +20 -0
  53. data/docs/UrlRequest.md +5 -1
  54. data/docs/UsersApi.md +7 -3
  55. data/lib/merge_ats_client/api/activities_api.rb +16 -2
  56. data/lib/merge_ats_client/api/applications_api.rb +80 -2
  57. data/lib/merge_ats_client/api/attachments_api.rb +16 -2
  58. data/lib/merge_ats_client/api/candidates_api.rb +2 -2
  59. data/lib/merge_ats_client/api/departments_api.rb +2 -2
  60. data/lib/merge_ats_client/api/eeocs_api.rb +16 -2
  61. data/lib/merge_ats_client/api/interviews_api.rb +16 -2
  62. data/lib/merge_ats_client/api/job_interview_stages_api.rb +2 -2
  63. data/lib/merge_ats_client/api/jobs_api.rb +16 -2
  64. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -0
  65. data/lib/merge_ats_client/api/offers_api.rb +16 -2
  66. data/lib/merge_ats_client/api/offices_api.rb +2 -2
  67. data/lib/merge_ats_client/api/reject_reasons_api.rb +2 -2
  68. data/lib/merge_ats_client/api/scorecards_api.rb +16 -2
  69. data/lib/merge_ats_client/api/selective_sync_api.rb +225 -0
  70. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  71. data/lib/merge_ats_client/api/tags_api.rb +2 -2
  72. data/lib/merge_ats_client/api/users_api.rb +16 -2
  73. data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
  74. data/lib/merge_ats_client/models/account_details.rb +15 -4
  75. data/lib/merge_ats_client/models/account_details_and_actions.rb +12 -1
  76. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
  77. data/lib/merge_ats_client/models/activity.rb +1 -1
  78. data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
  79. data/lib/merge_ats_client/models/application.rb +1 -1
  80. data/lib/merge_ats_client/models/application_request.rb +3 -3
  81. data/lib/merge_ats_client/models/attachment_request.rb +2 -2
  82. data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -7
  83. data/lib/merge_ats_client/models/candidate.rb +1 -1
  84. data/lib/merge_ats_client/models/candidate_request.rb +3 -3
  85. data/lib/merge_ats_client/models/categories_enum.rb +17 -7
  86. data/lib/merge_ats_client/models/category_enum.rb +17 -7
  87. data/lib/merge_ats_client/models/condition_schema.rb +297 -0
  88. data/lib/merge_ats_client/models/condition_type_enum.rb +50 -0
  89. data/lib/merge_ats_client/models/data_passthrough_request.rb +15 -6
  90. data/lib/merge_ats_client/models/department.rb +1 -1
  91. data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
  92. data/lib/merge_ats_client/models/eeoc.rb +1 -1
  93. data/lib/merge_ats_client/models/email_address_request.rb +29 -5
  94. data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
  95. data/lib/merge_ats_client/models/encoding_enum.rb +18 -7
  96. data/lib/merge_ats_client/models/end_user_details_request.rb +28 -11
  97. data/lib/merge_ats_client/models/gender_enum.rb +17 -7
  98. data/lib/merge_ats_client/models/issue.rb +1 -1
  99. data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
  100. data/lib/merge_ats_client/models/job.rb +14 -3
  101. data/lib/merge_ats_client/models/job_interview_stage.rb +3 -2
  102. data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
  103. data/lib/merge_ats_client/models/link_token.rb +13 -4
  104. data/lib/merge_ats_client/models/linked_account_condition.rb +282 -0
  105. data/lib/merge_ats_client/models/linked_account_condition_request.rb +269 -0
  106. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration.rb +221 -0
  107. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  108. data/lib/merge_ats_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  109. data/lib/merge_ats_client/models/meta_response.rb +1 -1
  110. data/lib/merge_ats_client/models/method_enum.rb +17 -7
  111. data/lib/merge_ats_client/models/offer.rb +1 -1
  112. data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
  113. data/lib/merge_ats_client/models/office.rb +1 -1
  114. data/lib/merge_ats_client/models/operator_schema.rb +229 -0
  115. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
  116. data/lib/merge_ats_client/models/{remote_data_request.rb → paginated_condition_schema_list.rb} +28 -41
  117. data/lib/merge_ats_client/models/phone_number_request.rb +29 -5
  118. data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
  119. data/lib/merge_ats_client/models/race_enum.rb +17 -7
  120. data/lib/merge_ats_client/models/reason_enum.rb +17 -7
  121. data/lib/merge_ats_client/models/reject_reason.rb +1 -1
  122. data/lib/merge_ats_client/models/remote_response.rb +23 -9
  123. data/lib/merge_ats_client/models/remote_user.rb +1 -1
  124. data/lib/merge_ats_client/models/request_format_enum.rb +17 -7
  125. data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
  126. data/lib/merge_ats_client/models/scheduled_interview.rb +2 -2
  127. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
  128. data/lib/merge_ats_client/models/scorecard.rb +2 -2
  129. data/lib/merge_ats_client/models/sync_status.rb +0 -10
  130. data/lib/merge_ats_client/models/sync_status_status_enum.rb +18 -7
  131. data/lib/merge_ats_client/models/tag.rb +2 -2
  132. data/lib/merge_ats_client/models/update_application_stage_request.rb +244 -0
  133. data/lib/merge_ats_client/models/url.rb +1 -1
  134. data/lib/merge_ats_client/models/url_request.rb +30 -6
  135. data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
  136. data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
  137. data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
  138. data/lib/merge_ats_client/version.rb +1 -1
  139. data/lib/merge_ats_client.rb +12 -1
  140. data/spec/api/activities_api_spec.rb +3 -1
  141. data/spec/api/applications_api_spec.rb +16 -1
  142. data/spec/api/attachments_api_spec.rb +3 -1
  143. data/spec/api/candidates_api_spec.rb +1 -1
  144. data/spec/api/departments_api_spec.rb +1 -1
  145. data/spec/api/eeocs_api_spec.rb +3 -1
  146. data/spec/api/interviews_api_spec.rb +3 -1
  147. data/spec/api/job_interview_stages_api_spec.rb +1 -1
  148. data/spec/api/jobs_api_spec.rb +3 -1
  149. data/spec/api/linked_accounts_api_spec.rb +1 -0
  150. data/spec/api/offers_api_spec.rb +3 -1
  151. data/spec/api/offices_api_spec.rb +1 -1
  152. data/spec/api/reject_reasons_api_spec.rb +1 -1
  153. data/spec/api/scorecards_api_spec.rb +3 -1
  154. data/spec/api/selective_sync_api_spec.rb +72 -0
  155. data/spec/api/sync_status_api_spec.rb +1 -1
  156. data/spec/api/tags_api_spec.rb +1 -1
  157. data/spec/api/users_api_spec.rb +3 -1
  158. data/spec/models/account_details_and_actions_spec.rb +6 -0
  159. data/spec/models/account_details_spec.rb +6 -0
  160. data/spec/models/condition_schema_spec.rb +70 -0
  161. data/spec/models/condition_type_enum_spec.rb +28 -0
  162. data/spec/models/data_passthrough_request_spec.rb +6 -0
  163. data/spec/models/email_address_request_spec.rb +12 -0
  164. data/spec/models/end_user_details_request_spec.rb +6 -0
  165. data/spec/models/job_spec.rb +6 -0
  166. data/spec/models/link_token_spec.rb +6 -0
  167. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  168. data/spec/models/linked_account_condition_spec.rb +64 -0
  169. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  170. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  171. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  172. data/spec/models/operator_schema_spec.rb +40 -0
  173. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  174. data/spec/models/phone_number_request_spec.rb +12 -0
  175. data/spec/models/remote_response_spec.rb +12 -0
  176. data/spec/models/response_type_enum_spec.rb +28 -0
  177. data/spec/models/update_application_stage_request_spec.rb +40 -0
  178. data/spec/models/url_request_spec.rb +12 -0
  179. metadata +153 -105
@@ -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.
@@ -24,6 +24,10 @@ module MergeATSClient
24
24
 
25
25
  attr_accessor :response
26
26
 
27
+ attr_accessor :response_headers
28
+
29
+ attr_accessor :response_type
30
+
27
31
  attr_accessor :headers
28
32
 
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,6 +37,8 @@ module MergeATSClient
33
37
  :'path' => :'path',
34
38
  :'status' => :'status',
35
39
  :'response' => :'response',
40
+ :'response_headers' => :'response_headers',
41
+ :'response_type' => :'response_type',
36
42
  :'headers' => :'headers'
37
43
  }
38
44
  end
@@ -48,7 +54,9 @@ module MergeATSClient
48
54
  :'method' => :'String',
49
55
  :'path' => :'String',
50
56
  :'status' => :'Integer',
51
- :'response' => :'Hash<String, Object>',
57
+ :'response' => :'Object',
58
+ :'response_headers' => :'Hash<String, Object>',
59
+ :'response_type' => :'ResponseTypeEnum',
52
60
  :'headers' => :'Hash<String, Object>'
53
61
  }
54
62
  end
@@ -56,6 +64,7 @@ module MergeATSClient
56
64
  # List of attributes with nullable: true
57
65
  def self.openapi_nullable
58
66
  Set.new([
67
+ :'response',
59
68
  ])
60
69
  end
61
70
 
@@ -87,11 +96,19 @@ module MergeATSClient
87
96
  end
88
97
 
89
98
  if attributes.key?(:'response')
90
- if (value = attributes[:'response']).is_a?(Hash)
91
- self.response = value
99
+ self.response = attributes[:'response']
100
+ end
101
+
102
+ if attributes.key?(:'response_headers')
103
+ if (value = attributes[:'response_headers']).is_a?(Hash)
104
+ self.response_headers = value
92
105
  end
93
106
  end
94
107
 
108
+ if attributes.key?(:'response_type')
109
+ self.response_type = attributes[:'response_type']
110
+ end
111
+
95
112
  if attributes.key?(:'headers')
96
113
  if (value = attributes[:'headers']).is_a?(Hash)
97
114
  self.headers = value
@@ -115,10 +132,6 @@ module MergeATSClient
115
132
  invalid_properties.push('invalid value for "status", status cannot be nil.')
116
133
  end
117
134
 
118
- if @response.nil?
119
- invalid_properties.push('invalid value for "response", response cannot be nil.')
120
- end
121
-
122
135
  invalid_properties
123
136
  end
124
137
 
@@ -128,7 +141,6 @@ module MergeATSClient
128
141
  return false if @method.nil?
129
142
  return false if @path.nil?
130
143
  return false if @status.nil?
131
- return false if @response.nil?
132
144
  true
133
145
  end
134
146
 
@@ -141,6 +153,8 @@ module MergeATSClient
141
153
  path == o.path &&
142
154
  status == o.status &&
143
155
  response == o.response &&
156
+ response_headers == o.response_headers &&
157
+ response_type == o.response_type &&
144
158
  headers == o.headers
145
159
  end
146
160
 
@@ -153,7 +167,7 @@ module MergeATSClient
153
167
  # Calculates hash code according to all attributes.
154
168
  # @return [Integer] Hash code
155
169
  def hash
156
- [method, path, status, response, headers].hash
170
+ [method, path, status, response, response_headers, response_type, headers].hash
157
171
  end
158
172
 
159
173
  # Builds the object from hash
@@ -41,7 +41,7 @@ module MergeATSClient
41
41
 
42
42
  attr_accessor :remote_data
43
43
 
44
- # Indicates whether or not this object has been deleted on the third-party.
44
+ # Indicates whether or not this object has been deleted by third party webhooks.
45
45
  attr_accessor :remote_was_deleted
46
46
 
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  XML = "XML".freeze
20
20
  MULTIPART = "MULTIPART".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 ["JSON", "XML", "MULTIPART", ].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
+ RequestFormatEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -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 ResponseTypeEnum
18
+ JSON = "JSON".freeze
19
+ BASE64_GZIP = "BASE64_GZIP".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 ["JSON", "BASE64_GZIP", ].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
+ ResponseTypeEnum.new.build_from_hash(value)
42
+ end
43
+ end
44
+
45
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The ScheduledInterview Object ### Description The `ScheduledInterview` object is used to represent an interview ### Usage Example Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations.
17
+ # # The ScheduledInterview Object ### Description The `ScheduledInterview` object is used to represent an interview. ### Usage Example Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations.
18
18
  class ScheduledInterview
19
19
  attr_accessor :id
20
20
 
@@ -50,7 +50,7 @@ module MergeATSClient
50
50
 
51
51
  attr_accessor :remote_data
52
52
 
53
- # Indicates whether or not this object has been deleted on the third-party.
53
+ # Indicates whether or not this object has been deleted by third party webhooks.
54
54
  attr_accessor :remote_was_deleted
55
55
 
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  AWAITING_FEEDBACK = "AWAITING_FEEDBACK".freeze
20
20
  COMPLETE = "COMPLETE".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 ["SCHEDULED", "AWAITING_FEEDBACK", "COMPLETE", ].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
+ ScheduledInterviewStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Scorecard Object ### Description The `Scorecard` object is used to represent a Scorecard for an interview ### Usage Example Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant.
17
+ # # The Scorecard Object ### Description The `Scorecard` object is used to represent a Scorecard for an interview. ### Usage Example Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant.
18
18
  class Scorecard
19
19
  attr_accessor :id
20
20
 
@@ -38,7 +38,7 @@ module MergeATSClient
38
38
 
39
39
  attr_accessor :remote_data
40
40
 
41
- # Indicates whether or not this object has been deleted on the third-party.
41
+ # Indicates whether or not this object has been deleted by third party webhooks.
42
42
  attr_accessor :remote_was_deleted
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -115,14 +115,6 @@ module MergeATSClient
115
115
  invalid_properties.push('invalid value for "model_id", model_id cannot be nil.')
116
116
  end
117
117
 
118
- if @last_sync_start.nil?
119
- invalid_properties.push('invalid value for "last_sync_start", last_sync_start cannot be nil.')
120
- end
121
-
122
- if @next_sync_start.nil?
123
- invalid_properties.push('invalid value for "next_sync_start", next_sync_start cannot be nil.')
124
- end
125
-
126
118
  if @status.nil?
127
119
  invalid_properties.push('invalid value for "status", status cannot be nil.')
128
120
  end
@@ -139,8 +131,6 @@ module MergeATSClient
139
131
  def valid?
140
132
  return false if @model_name.nil?
141
133
  return false if @model_id.nil?
142
- return false if @last_sync_start.nil?
143
- return false if @next_sync_start.nil?
144
134
  return false if @status.nil?
145
135
  return false if @is_initial_sync.nil?
146
136
  true
@@ -19,19 +19,30 @@ module MergeATSClient
19
19
  DONE = "DONE".freeze
20
20
  FAILED = "FAILED".freeze
21
21
  DISABLED = "DISABLED".freeze
22
+ PAUSED = "PAUSED".freeze
22
23
 
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
29
28
 
30
29
  # Builds the enum from string
31
30
  # @param [String] The enum value in the form of the string
32
31
  # @return [String] The enum value
33
32
  def build_from_hash(value)
34
- value
33
+ @raw_value = value
34
+ if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", ].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
+ SyncStatusStatusEnum.new.build_from_hash(value)
35
45
  end
36
46
  end
47
+
37
48
  end
@@ -24,7 +24,7 @@ module MergeATSClient
24
24
 
25
25
  attr_accessor :remote_data
26
26
 
27
- # Indicates whether or not this object has been deleted on the third-party.
27
+ # Indicates whether or not this object has been deleted by third party webhooks.
28
28
  attr_accessor :remote_was_deleted
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +47,7 @@ module MergeATSClient
47
47
  {
48
48
  :'remote_id' => :'String',
49
49
  :'name' => :'String',
50
- :'remote_data' => :'Array<Hash<String, AnyType>>',
50
+ :'remote_data' => :'Array<Hash<String, Object>>',
51
51
  :'remote_was_deleted' => :'Boolean'
52
52
  }
53
53
  end
@@ -0,0 +1,244 @@
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 UpdateApplicationStageRequest
18
+ # The interview stage to move the application to.
19
+ attr_accessor :job_interview_stage
20
+
21
+ attr_accessor :remote_user_id
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'job_interview_stage' => :'job_interview_stage',
27
+ :'remote_user_id' => :'remote_user_id'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'job_interview_stage' => :'String',
40
+ :'remote_user_id' => :'String'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ :'job_interview_stage',
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::UpdateApplicationStageRequest` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::UpdateApplicationStageRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'job_interview_stage')
67
+ self.job_interview_stage = attributes[:'job_interview_stage']
68
+ end
69
+
70
+ if attributes.key?(:'remote_user_id')
71
+ self.remote_user_id = attributes[:'remote_user_id']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ if !@remote_user_id.nil? && @remote_user_id.to_s.length < 1
80
+ invalid_properties.push('invalid value for "remote_user_id", the character length must be great than or equal to 1.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ return false if !@remote_user_id.nil? && @remote_user_id.to_s.length < 1
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] remote_user_id Value to be assigned
95
+ def remote_user_id=(remote_user_id)
96
+ if !remote_user_id.nil? && remote_user_id.to_s.length < 1
97
+ fail ArgumentError, 'invalid value for "remote_user_id", the character length must be great than or equal to 1.'
98
+ end
99
+
100
+ @remote_user_id = remote_user_id
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ job_interview_stage == o.job_interview_stage &&
109
+ remote_user_id == o.remote_user_id
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [job_interview_stage, remote_user_id].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ new.build_from_hash(attributes)
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def build_from_hash(attributes)
135
+ return nil unless attributes.is_a?(Hash)
136
+ self.class.openapi_types.each_pair do |key, type|
137
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
138
+ self.send("#{key}=", nil)
139
+ elsif type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
+ end
145
+ elsif !attributes[self.class.attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ end
148
+ end
149
+
150
+ self
151
+ end
152
+
153
+ # Deserializes the data based on type
154
+ # @param string type Data type
155
+ # @param string value Value to be deserialized
156
+ # @return [Object] Deserialized data
157
+ def _deserialize(type, value)
158
+ case type.to_sym
159
+ when :Time
160
+ Time.parse(value)
161
+ when :Date
162
+ Date.parse(value)
163
+ when :String
164
+ value
165
+ when :Integer
166
+ value.to_i
167
+ when :Float
168
+ value.to_f
169
+ when :Boolean
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ # models (e.g. Pet) or oneOf
191
+ klass = MergeATSClient.const_get(type)
192
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+
242
+ end
243
+
244
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Url Object ### Description The `Url` object is used to represent a candidate's website. ### Usage Example Fetch from the `GET Candidate` endpoint and view their website urls.
17
+ # # The Url Object ### Description The `Url` object is used to represent hyperlinks associated with the parent model. ### Usage Example Fetch from the `GET Candidate` endpoint and view their website urls.
18
18
  class Url
19
19
  # The site's url.
20
20
  attr_accessor :value