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
@@ -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
+ MethodEnum.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.
@@ -25,18 +25,28 @@ module MergeATSClient
25
25
  SIGNED = "SIGNED".freeze
26
26
  DEPRECATED = "DEPRECATED".freeze
27
27
 
28
- # Builds the enum from string
29
- # @param [String] The enum value in the form of the string
30
- # @return [String] The enum value
31
- def self.build_from_hash(value)
32
- new.build_from_hash(value)
33
- end
28
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
29
+
30
+ attr_accessor :value
31
+ attr_accessor :raw_value
34
32
 
35
33
  # Builds the enum from string
36
34
  # @param [String] The enum value in the form of the string
37
35
  # @return [String] The enum value
38
36
  def build_from_hash(value)
39
- value
37
+ @raw_value = value
38
+ if ["DRAFT", "APPROVAL-SENT", "APPROVED", "SENT", "SENT-MANUALLY", "OPENED", "DENIED", "SIGNED", "DEPRECATED", ].include? value
39
+ @value = value
40
+ else
41
+ @value = MERGE_NONSTANDARD_VALUE
42
+ end
43
+
44
+ self
45
+ end
46
+
47
+ def self.build_from_hash(value)
48
+ OfferStatusEnum.new.build_from_hash(value)
40
49
  end
41
50
  end
51
+
42
52
  end
@@ -29,7 +29,7 @@ module MergeATSClient
29
29
 
30
30
  attr_accessor :remote_data
31
31
 
32
- # 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.
33
33
  attr_accessor :remote_was_deleted
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,229 @@
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 OperatorSchema
18
+ # The operator for which an operator schema is defined.
19
+ attr_accessor :operator
20
+
21
+ # Whether the operator can be repeated multiple times.
22
+ attr_accessor :is_unique
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'operator' => :'operator',
28
+ :'is_unique' => :'is_unique'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'operator' => :'String',
41
+ :'is_unique' => :'Boolean'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
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::OperatorSchema` 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::OperatorSchema`. 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?(:'operator')
67
+ self.operator = attributes[:'operator']
68
+ end
69
+
70
+ if attributes.key?(:'is_unique')
71
+ self.is_unique = attributes[:'is_unique']
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
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ operator == o.operator &&
94
+ is_unique == o.is_unique
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [operator, is_unique].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.openapi_types.each_pair do |key, type|
122
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
123
+ self.send("#{key}=", nil)
124
+ elsif type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :Time
145
+ Time.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ # models (e.g. Pet) or oneOf
176
+ klass = MergeATSClient.const_get(type)
177
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  STRONG_YES = "STRONG_YES".freeze
22
22
  NO_DECISION = "NO_DECISION".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 ["DEFINITELY_NO", "NO", "YES", "STRONG_YES", "NO_DECISION", ].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
+ OverallRecommendationEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -14,16 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- class RemoteDataRequest
18
- attr_accessor :path
17
+ class PaginatedConditionSchemaList
18
+ attr_accessor :_next
19
19
 
20
- attr_accessor :data
20
+ attr_accessor :previous
21
+
22
+ attr_accessor :results
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
- :'path' => :'path',
26
- :'data' => :'data'
27
+ :'_next' => :'next',
28
+ :'previous' => :'previous',
29
+ :'results' => :'results'
27
30
  }
28
31
  end
29
32
 
@@ -35,14 +38,17 @@ module MergeATSClient
35
38
  # Attribute type mapping.
36
39
  def self.openapi_types
37
40
  {
38
- :'path' => :'String',
39
- :'data' => :'Hash<String, AnyType>'
41
+ :'_next' => :'String',
42
+ :'previous' => :'String',
43
+ :'results' => :'Array<ConditionSchema>'
40
44
  }
41
45
  end
42
46
 
43
47
  # List of attributes with nullable: true
44
48
  def self.openapi_nullable
45
49
  Set.new([
50
+ :'_next',
51
+ :'previous',
46
52
  ])
47
53
  end
48
54
 
@@ -50,24 +56,28 @@ module MergeATSClient
50
56
  # @param [Hash] attributes Model attributes in the form of hash
51
57
  def initialize(attributes = {})
52
58
  if (!attributes.is_a?(Hash))
53
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::RemoteDataRequest` initialize method"
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::PaginatedConditionSchemaList` initialize method"
54
60
  end
55
61
 
56
62
  # check to see if the attribute exists and convert string to symbol for hash key
57
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
64
  if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::RemoteDataRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::PaginatedConditionSchemaList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
66
  end
61
67
  h[k.to_sym] = v
62
68
  }
63
69
 
64
- if attributes.key?(:'path')
65
- self.path = attributes[:'path']
70
+ if attributes.key?(:'_next')
71
+ self._next = attributes[:'_next']
72
+ end
73
+
74
+ if attributes.key?(:'previous')
75
+ self.previous = attributes[:'previous']
66
76
  end
67
77
 
68
- if attributes.key?(:'data')
69
- if (value = attributes[:'data']).is_a?(Hash)
70
- self.data = value
78
+ if attributes.key?(:'results')
79
+ if (value = attributes[:'results']).is_a?(Array)
80
+ self.results = value
71
81
  end
72
82
  end
73
83
  end
@@ -76,46 +86,23 @@ module MergeATSClient
76
86
  # @return Array for valid properties with the reasons
77
87
  def list_invalid_properties
78
88
  invalid_properties = Array.new
79
- if @path.nil?
80
- invalid_properties.push('invalid value for "path", path cannot be nil.')
81
- end
82
-
83
- if @path.to_s.length < 1
84
- invalid_properties.push('invalid value for "path", the character length must be great than or equal to 1.')
85
- end
86
-
87
89
  invalid_properties
88
90
  end
89
91
 
90
92
  # Check to see if the all the properties in the model are valid
91
93
  # @return true if the model is valid
92
94
  def valid?
93
- return false if @path.nil?
94
- return false if @path.to_s.length < 1
95
95
  true
96
96
  end
97
97
 
98
- # Custom attribute writer method with validation
99
- # @param [Object] path Value to be assigned
100
- def path=(path)
101
- if path.nil?
102
- fail ArgumentError, 'path cannot be nil'
103
- end
104
-
105
- if path.to_s.length < 1
106
- fail ArgumentError, 'invalid value for "path", the character length must be great than or equal to 1.'
107
- end
108
-
109
- @path = path
110
- end
111
-
112
98
  # Checks equality by comparing each attribute.
113
99
  # @param [Object] Object to be compared
114
100
  def ==(o)
115
101
  return true if self.equal?(o)
116
102
  self.class == o.class &&
117
- path == o.path &&
118
- data == o.data
103
+ _next == o._next &&
104
+ previous == o.previous &&
105
+ results == o.results
119
106
  end
120
107
 
121
108
  # @see the `==` method
@@ -127,7 +114,7 @@ module MergeATSClient
127
114
  # Calculates hash code according to all attributes.
128
115
  # @return [Integer] Hash code
129
116
  def hash
130
- [path, data].hash
117
+ [_next, previous, results].hash
131
118
  end
132
119
 
133
120
  # Builds the object from hash
@@ -22,11 +22,17 @@ module MergeATSClient
22
22
  # The type of phone number.
23
23
  attr_accessor :phone_number_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
- :'phone_number_type' => :'phone_number_type'
33
+ :'phone_number_type' => :'phone_number_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
- :'phone_number_type' => :'PhoneNumberTypeEnum'
48
+ :'phone_number_type' => :'PhoneNumberTypeEnum',
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
- :'phone_number_type'
58
+ :'phone_number_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?(:'phone_number_type')
74
84
  self.phone_number_type = attributes[:'phone_number_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?
@@ -94,7 +116,9 @@ module MergeATSClient
94
116
  return true if self.equal?(o)
95
117
  self.class == o.class &&
96
118
  value == o.value &&
97
- phone_number_type == o.phone_number_type
119
+ phone_number_type == o.phone_number_type &&
120
+ integration_params == o.integration_params &&
121
+ linked_account_params == o.linked_account_params
98
122
  end
99
123
 
100
124
  # @see the `==` method
@@ -106,7 +130,7 @@ module MergeATSClient
106
130
  # Calculates hash code according to all attributes.
107
131
  # @return [Integer] Hash code
108
132
  def hash
109
- [value, phone_number_type].hash
133
+ [value, phone_number_type, integration_params, linked_account_params].hash
110
134
  end
111
135
 
112
136
  # Builds the object from hash
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  SKYPE = "SKYPE".freeze
22
22
  OTHER = "OTHER".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 ["HOME", "WORK", "MOBILE", "SKYPE", "OTHER", ].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
+ PhoneNumberTypeEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -24,18 +24,28 @@ module MergeATSClient
24
24
  TWO_OR_MORE_RACES = "TWO_OR_MORE_RACES".freeze
25
25
  DECLINE_TO_SELF_IDENTIFY = "DECLINE_TO_SELF_IDENTIFY".freeze
26
26
 
27
- # Builds the enum from string
28
- # @param [String] The enum value in the form of the string
29
- # @return [String] The enum value
30
- def self.build_from_hash(value)
31
- new.build_from_hash(value)
32
- end
27
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
28
+
29
+ attr_accessor :value
30
+ attr_accessor :raw_value
33
31
 
34
32
  # Builds the enum from string
35
33
  # @param [String] The enum value in the form of the string
36
34
  # @return [String] The enum value
37
35
  def build_from_hash(value)
38
- value
36
+ @raw_value = value
37
+ if ["AMERICAN_INDIAN_OR_ALASKAN_NATIVE", "ASIAN", "BLACK_OR_AFRICAN_AMERICAN", "HISPANIC_OR_LATINO", "WHITE", "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", "TWO_OR_MORE_RACES", "DECLINE_TO_SELF_IDENTIFY", ].include? value
38
+ @value = value
39
+ else
40
+ @value = MERGE_NONSTANDARD_VALUE
41
+ end
42
+
43
+ self
44
+ end
45
+
46
+ def self.build_from_hash(value)
47
+ RaceEnum.new.build_from_hash(value)
39
48
  end
40
49
  end
50
+
41
51
  end
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  GDPR = "GDPR".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 ["GENERAL_CUSTOMER_REQUEST", "GDPR", "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
+ ReasonEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end