merge_hris_client 1.0.4 → 2.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/README.md +28 -12
  3. data/docs/AccountDetails.md +7 -7
  4. data/docs/AccountDetailsApi.md +2 -2
  5. data/docs/AccountIntegration.md +4 -4
  6. data/docs/AccountTokenApi.md +2 -2
  7. data/docs/AvailableActionsApi.md +2 -2
  8. data/docs/BankInfo.md +1 -1
  9. data/docs/BankInfoApi.md +8 -12
  10. data/docs/Benefit.md +2 -2
  11. data/docs/BenefitsApi.md +4 -4
  12. data/docs/CompaniesApi.md +4 -4
  13. data/docs/DataPassthroughRequest.md +2 -0
  14. data/docs/DebugModeLog.md +22 -0
  15. data/docs/DebugModelLogSummary.md +22 -0
  16. data/docs/Deduction.md +2 -2
  17. data/docs/DeductionsApi.md +4 -4
  18. data/docs/DeleteAccountApi.md +3 -2
  19. data/docs/Earning.md +3 -3
  20. data/docs/EarningTypeEnum.md +15 -0
  21. data/docs/Employee.md +9 -7
  22. data/docs/EmployeeEndpointRequest.md +18 -0
  23. data/docs/EmployeePayrollRun.md +2 -2
  24. data/docs/EmployeePayrollRunsApi.md +4 -4
  25. data/docs/EmployeeRequest.md +70 -0
  26. data/docs/EmployeeResponse.md +24 -0
  27. data/docs/EmployeesApi.md +158 -4
  28. data/docs/Employment.md +1 -1
  29. data/docs/EmploymentsApi.md +5 -4
  30. data/docs/EncodingEnum.md +15 -0
  31. data/docs/EndUserDetailsRequest.md +3 -1
  32. data/docs/ForceResyncApi.md +2 -2
  33. data/docs/GenerateKeyApi.md +2 -2
  34. data/docs/Group.md +28 -0
  35. data/docs/GroupTypeEnum.md +15 -0
  36. data/docs/GroupsApi.md +177 -0
  37. data/docs/IgnoreCommonModel.md +20 -0
  38. data/docs/IssuesApi.md +5 -4
  39. data/docs/LinkTokenApi.md +3 -3
  40. data/docs/LinkedAccountsApi.md +2 -2
  41. data/docs/Location.md +2 -0
  42. data/docs/LocationsApi.md +4 -4
  43. data/docs/MultipartFormFieldRequest.md +26 -0
  44. data/docs/PaginatedGroupList.md +22 -0
  45. data/docs/PassthroughApi.md +2 -2
  46. data/docs/PayGroupsApi.md +4 -4
  47. data/docs/PayrollRunsApi.md +4 -4
  48. data/docs/RegenerateKeyApi.md +2 -2
  49. data/docs/SyncStatusApi.md +0 -1
  50. data/docs/Tax.md +2 -2
  51. data/docs/Team.md +1 -1
  52. data/docs/TeamsApi.md +5 -4
  53. data/docs/TimeOff.md +2 -2
  54. data/docs/TimeOffApi.md +8 -6
  55. data/docs/TimeOffBalance.md +1 -1
  56. data/docs/TimeOffRequest.md +2 -2
  57. data/docs/TimeOffResponse.md +3 -1
  58. data/lib/merge_hris_client/api/bank_info_api.rb +4 -9
  59. data/lib/merge_hris_client/api/employees_api.rb +147 -2
  60. data/lib/merge_hris_client/api/groups_api.rb +182 -0
  61. data/lib/merge_hris_client/api/sync_status_api.rb +0 -62
  62. data/lib/merge_hris_client/api/time_off_api.rb +3 -0
  63. data/lib/merge_hris_client/configuration.rb +6 -4
  64. data/lib/merge_hris_client/models/account_details.rb +1 -1
  65. data/lib/merge_hris_client/models/account_details_and_actions.rb +1 -1
  66. data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +1 -1
  67. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +1 -0
  68. data/lib/merge_hris_client/models/account_integration.rb +5 -27
  69. data/lib/merge_hris_client/models/account_token.rb +1 -1
  70. data/lib/merge_hris_client/models/account_type_enum.rb +1 -0
  71. data/lib/merge_hris_client/models/available_actions.rb +1 -1
  72. data/lib/merge_hris_client/models/bank_info.rb +0 -1
  73. data/lib/merge_hris_client/models/benefit.rb +1 -2
  74. data/lib/merge_hris_client/models/categories_enum.rb +1 -0
  75. data/lib/merge_hris_client/models/category_enum.rb +1 -0
  76. data/lib/merge_hris_client/models/country_enum.rb +1 -0
  77. data/lib/merge_hris_client/models/data_passthrough_request.rb +16 -3
  78. data/lib/merge_hris_client/models/debug_mode_log.rb +251 -0
  79. data/lib/merge_hris_client/models/debug_model_log_summary.rb +251 -0
  80. data/lib/merge_hris_client/models/deduction.rb +0 -1
  81. data/lib/merge_hris_client/models/earning.rb +4 -8
  82. data/lib/merge_hris_client/models/earning_type_enum.rb +38 -0
  83. data/lib/merge_hris_client/models/employee.rb +13 -8
  84. data/lib/merge_hris_client/models/employee_endpoint_request.rb +223 -0
  85. data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -3
  86. data/lib/merge_hris_client/models/employee_request.rb +564 -0
  87. data/lib/merge_hris_client/models/employee_response.rb +266 -0
  88. data/lib/merge_hris_client/models/employment.rb +0 -1
  89. data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
  90. data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
  91. data/lib/merge_hris_client/models/encoding_enum.rb +36 -0
  92. data/lib/merge_hris_client/models/end_user_details_request.rb +40 -27
  93. data/lib/merge_hris_client/models/error_validation_problem.rb +1 -1
  94. data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
  95. data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
  96. data/lib/merge_hris_client/models/gender_enum.rb +1 -1
  97. data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -1
  98. data/lib/merge_hris_client/models/group.rb +275 -0
  99. data/lib/merge_hris_client/models/group_type_enum.rb +38 -0
  100. data/lib/merge_hris_client/models/ignore_common_model.rb +247 -0
  101. data/lib/merge_hris_client/models/ignore_common_model_request.rb +256 -0
  102. data/lib/merge_hris_client/models/issue.rb +1 -1
  103. data/lib/merge_hris_client/models/issue_status_enum.rb +1 -1
  104. data/lib/merge_hris_client/models/link_token.rb +1 -1
  105. data/lib/merge_hris_client/models/location.rb +12 -1
  106. data/lib/merge_hris_client/models/location_type_enum.rb +36 -0
  107. data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
  108. data/lib/merge_hris_client/models/method_enum.rb +1 -1
  109. data/lib/merge_hris_client/models/model_operation.rb +1 -1
  110. data/lib/merge_hris_client/models/multipart_form_field_request.rb +341 -0
  111. data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +1 -1
  112. data/lib/merge_hris_client/models/paginated_bank_info_list.rb +1 -1
  113. data/lib/merge_hris_client/models/paginated_benefit_list.rb +1 -1
  114. data/lib/merge_hris_client/models/paginated_company_list.rb +1 -1
  115. data/lib/merge_hris_client/models/paginated_deduction_list.rb +1 -1
  116. data/lib/merge_hris_client/models/paginated_employee_list.rb +1 -1
  117. data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +1 -1
  118. data/lib/merge_hris_client/models/paginated_employment_list.rb +1 -1
  119. data/lib/merge_hris_client/models/paginated_group_list.rb +240 -0
  120. data/lib/merge_hris_client/models/paginated_issue_list.rb +1 -1
  121. data/lib/merge_hris_client/models/paginated_location_list.rb +1 -1
  122. data/lib/merge_hris_client/models/paginated_pay_group_list.rb +1 -1
  123. data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +1 -1
  124. data/lib/merge_hris_client/models/paginated_sync_status_list.rb +1 -1
  125. data/lib/merge_hris_client/models/paginated_team_list.rb +1 -1
  126. data/lib/merge_hris_client/models/paginated_time_off_balance_list.rb +1 -1
  127. data/lib/merge_hris_client/models/paginated_time_off_list.rb +1 -1
  128. data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
  129. data/lib/merge_hris_client/models/pay_frequency_enum.rb +1 -2
  130. data/lib/merge_hris_client/models/pay_period_enum.rb +1 -1
  131. data/lib/merge_hris_client/models/policy_type_enum.rb +1 -0
  132. data/lib/merge_hris_client/models/reason_enum.rb +37 -0
  133. data/lib/merge_hris_client/models/remote_data.rb +1 -1
  134. data/lib/merge_hris_client/models/remote_data_request.rb +1 -1
  135. data/lib/merge_hris_client/models/remote_key.rb +1 -1
  136. data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -1
  137. data/lib/merge_hris_client/models/remote_response.rb +1 -1
  138. data/lib/merge_hris_client/models/request_format_enum.rb +2 -0
  139. data/lib/merge_hris_client/models/request_type_enum.rb +1 -0
  140. data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
  141. data/lib/merge_hris_client/models/run_type_enum.rb +1 -11
  142. data/lib/merge_hris_client/models/sync_status.rb +1 -1
  143. data/lib/merge_hris_client/models/sync_status_status_enum.rb +1 -2
  144. data/lib/merge_hris_client/models/tax.rb +3 -7
  145. data/lib/merge_hris_client/models/team.rb +0 -1
  146. data/lib/merge_hris_client/models/time_off.rb +0 -2
  147. data/lib/merge_hris_client/models/time_off_balance.rb +0 -1
  148. data/lib/merge_hris_client/models/time_off_endpoint_request.rb +1 -1
  149. data/lib/merge_hris_client/models/time_off_request.rb +1 -3
  150. data/lib/merge_hris_client/models/time_off_response.rb +16 -5
  151. data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
  152. data/lib/merge_hris_client/models/units_enum.rb +1 -1
  153. data/lib/merge_hris_client/models/validation_problem_source.rb +1 -1
  154. data/lib/merge_hris_client/models/warning_validation_problem.rb +1 -1
  155. data/lib/merge_hris_client/version.rb +1 -1
  156. data/lib/merge_hris_client.rb +16 -2
  157. data/pull_request_template.md +3 -1
  158. data/spec/api/bank_info_api_spec.rb +2 -4
  159. data/spec/api/employees_api_spec.rb +26 -0
  160. data/spec/api/groups_api_spec.rb +68 -0
  161. data/spec/api/time_off_api_spec.rb +1 -0
  162. data/spec/models/data_passthrough_request_spec.rb +6 -0
  163. data/spec/models/debug_mode_log_spec.rb +46 -0
  164. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  165. data/spec/models/earning_type_enum_spec.rb +28 -0
  166. data/spec/models/employee_endpoint_request_spec.rb +34 -0
  167. data/spec/models/employee_request_spec.rb +190 -0
  168. data/spec/models/employee_response_spec.rb +52 -0
  169. data/spec/models/employee_spec.rb +6 -0
  170. data/spec/models/encoding_enum_spec.rb +28 -0
  171. data/spec/models/end_user_details_request_spec.rb +6 -0
  172. data/spec/models/group_spec.rb +64 -0
  173. data/spec/models/group_type_enum_spec.rb +28 -0
  174. data/spec/models/ignore_common_model_spec.rb +40 -0
  175. data/spec/models/location_spec.rb +6 -0
  176. data/spec/models/multipart_form_field_request_spec.rb +58 -0
  177. data/spec/models/paginated_group_list_spec.rb +46 -0
  178. data/spec/models/time_off_response_spec.rb +6 -0
  179. metadata +57 -2
@@ -0,0 +1,256 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information 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 MergeHRISClient
17
+ class IgnoreCommonModelRequest
18
+ attr_accessor :reason
19
+
20
+ attr_accessor :message
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'reason' => :'reason',
26
+ :'message' => :'message'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'reason' => :'ReasonEnum',
39
+ :'message' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::IgnoreCommonModelRequest` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::IgnoreCommonModelRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'reason')
65
+ self.reason = attributes[:'reason']
66
+ end
67
+
68
+ if attributes.key?(:'message')
69
+ self.message = attributes[:'message']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ if @reason.nil?
78
+ invalid_properties.push('invalid value for "reason", reason cannot be nil.')
79
+ end
80
+
81
+ if !@message.nil? && @message.to_s.length > 256
82
+ invalid_properties.push('invalid value for "message", the character length must be smaller than or equal to 256.')
83
+ end
84
+
85
+ if !@message.nil? && @message.to_s.length < 1
86
+ invalid_properties.push('invalid value for "message", the character length must be great than or equal to 1.')
87
+ end
88
+
89
+ invalid_properties
90
+ end
91
+
92
+ # Check to see if the all the properties in the model are valid
93
+ # @return true if the model is valid
94
+ def valid?
95
+ return false if @reason.nil?
96
+ return false if !@message.nil? && @message.to_s.length > 256
97
+ return false if !@message.nil? && @message.to_s.length < 1
98
+ true
99
+ end
100
+
101
+ # Custom attribute writer method with validation
102
+ # @param [Object] message Value to be assigned
103
+ def message=(message)
104
+ if !message.nil? && message.to_s.length > 256
105
+ fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 256.'
106
+ end
107
+
108
+ if !message.nil? && message.to_s.length < 1
109
+ fail ArgumentError, 'invalid value for "message", the character length must be great than or equal to 1.'
110
+ end
111
+
112
+ @message = message
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ reason == o.reason &&
121
+ message == o.message
122
+ end
123
+
124
+ # @see the `==` method
125
+ # @param [Object] Object to be compared
126
+ def eql?(o)
127
+ self == o
128
+ end
129
+
130
+ # Calculates hash code according to all attributes.
131
+ # @return [Integer] Hash code
132
+ def hash
133
+ [reason, message].hash
134
+ end
135
+
136
+ # Builds the object from hash
137
+ # @param [Hash] attributes Model attributes in the form of hash
138
+ # @return [Object] Returns the model itself
139
+ def self.build_from_hash(attributes)
140
+ new.build_from_hash(attributes)
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ self.class.openapi_types.each_pair do |key, type|
149
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
150
+ self.send("#{key}=", nil)
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
155
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ end
157
+ elsif !attributes[self.class.attribute_map[key]].nil?
158
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
+ end
160
+ end
161
+
162
+ self
163
+ end
164
+
165
+ # Deserializes the data based on type
166
+ # @param string type Data type
167
+ # @param string value Value to be deserialized
168
+ # @return [Object] Deserialized data
169
+ def _deserialize(type, value)
170
+ case type.to_sym
171
+ when :Time
172
+ Time.parse(value)
173
+ when :Date
174
+ Date.parse(value)
175
+ when :String
176
+ value
177
+ when :Integer
178
+ value.to_i
179
+ when :Float
180
+ value.to_f
181
+ when :Boolean
182
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
183
+ true
184
+ else
185
+ false
186
+ end
187
+ when :Object
188
+ # generic object (usually a Hash), return directly
189
+ value
190
+ when /\AArray<(?<inner_type>.+)>\z/
191
+ inner_type = Regexp.last_match[:inner_type]
192
+ value.map { |v| _deserialize(inner_type, v) }
193
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
194
+ k_type = Regexp.last_match[:k_type]
195
+ v_type = Regexp.last_match[:v_type]
196
+ {}.tap do |hash|
197
+ value.each do |k, v|
198
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
+ end
200
+ end
201
+ else # model
202
+ # models (e.g. Pet) or oneOf
203
+ klass = MergeHRISClient.const_get(type)
204
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+
254
+ end
255
+
256
+ end
@@ -198,7 +198,7 @@ module MergeHRISClient
198
198
  when :Date
199
199
  Date.parse(value)
200
200
  when :String
201
- value.to_s
201
+ value
202
202
  when :Integer
203
203
  value.to_i
204
204
  when :Float
@@ -29,8 +29,8 @@ module MergeHRISClient
29
29
  # @param [String] The enum value in the form of the string
30
30
  # @return [String] The enum value
31
31
  def build_from_hash(value)
32
- constantValues = IssueStatusEnum.constants.select { |c| IssueStatusEnum::const_get(c) == value }
33
32
  value
34
33
  end
35
34
  end
35
+
36
36
  end
@@ -154,7 +154,7 @@ module MergeHRISClient
154
154
  when :Date
155
155
  Date.parse(value)
156
156
  when :String
157
- value.to_s
157
+ value
158
158
  when :Integer
159
159
  value.to_i
160
160
  when :Float
@@ -45,6 +45,9 @@ module MergeHRISClient
45
45
  # The location's country.
46
46
  attr_accessor :country
47
47
 
48
+ # The location's type. Can be either WORK or HOME
49
+ attr_accessor :location_type
50
+
48
51
  attr_accessor :remote_data
49
52
 
50
53
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -60,6 +63,7 @@ module MergeHRISClient
60
63
  :'state' => :'state',
61
64
  :'zip_code' => :'zip_code',
62
65
  :'country' => :'country',
66
+ :'location_type' => :'location_type',
63
67
  :'remote_data' => :'remote_data'
64
68
  }
65
69
  end
@@ -82,6 +86,7 @@ module MergeHRISClient
82
86
  :'state' => :'String',
83
87
  :'zip_code' => :'String',
84
88
  :'country' => :'CountryEnum',
89
+ :'location_type' => :'LocationTypeEnum',
85
90
  :'remote_data' => :'Array<RemoteData>'
86
91
  }
87
92
  end
@@ -98,6 +103,7 @@ module MergeHRISClient
98
103
  :'state',
99
104
  :'zip_code',
100
105
  :'country',
106
+ :'location_type',
101
107
  :'remote_data'
102
108
  ])
103
109
  end
@@ -157,6 +163,10 @@ module MergeHRISClient
157
163
  self.country = attributes[:'country']
158
164
  end
159
165
 
166
+ if attributes.key?(:'location_type')
167
+ self.location_type = attributes[:'location_type']
168
+ end
169
+
160
170
  if attributes.key?(:'remote_data')
161
171
  if (value = attributes[:'remote_data']).is_a?(Array)
162
172
  self.remote_data = value
@@ -192,6 +202,7 @@ module MergeHRISClient
192
202
  state == o.state &&
193
203
  zip_code == o.zip_code &&
194
204
  country == o.country &&
205
+ location_type == o.location_type &&
195
206
  remote_data == o.remote_data
196
207
  end
197
208
 
@@ -204,7 +215,7 @@ module MergeHRISClient
204
215
  # Calculates hash code according to all attributes.
205
216
  # @return [Integer] Hash code
206
217
  def hash
207
- [id, remote_id, name, phone_number, street_1, street_2, city, state, zip_code, country, remote_data].hash
218
+ [id, remote_id, name, phone_number, street_1, street_2, city, state, zip_code, country, location_type, remote_data].hash
208
219
  end
209
220
 
210
221
  # Builds the object from hash
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information 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 MergeHRISClient
17
+ class LocationTypeEnum
18
+ HOME = "HOME".freeze
19
+ WORK = "WORK".freeze
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
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 build_from_hash(value)
32
+ value
33
+ end
34
+ end
35
+
36
+ end
@@ -32,8 +32,8 @@ module MergeHRISClient
32
32
  # @param [String] The enum value in the form of the string
33
33
  # @return [String] The enum value
34
34
  def build_from_hash(value)
35
- constantValues = MaritalStatusEnum.constants.select { |c| MaritalStatusEnum::const_get(c) == value }
36
35
  value
37
36
  end
38
37
  end
38
+
39
39
  end
@@ -34,8 +34,8 @@ module MergeHRISClient
34
34
  # @param [String] The enum value in the form of the string
35
35
  # @return [String] The enum value
36
36
  def build_from_hash(value)
37
- constantValues = MethodEnum.constants.select { |c| MethodEnum::const_get(c) == value }
38
37
  value
39
38
  end
40
39
  end
40
+
41
41
  end
@@ -189,7 +189,7 @@ module MergeHRISClient
189
189
  when :Date
190
190
  Date.parse(value)
191
191
  when :String
192
- value.to_s
192
+ value
193
193
  when :Integer
194
194
  value.to_i
195
195
  when :Float