merge_hris_client 2.0.5 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -8
  3. data/docs/AccountIntegration.md +6 -2
  4. data/docs/BankInfo.md +9 -5
  5. data/docs/BankInfoApi.md +15 -11
  6. data/docs/Benefit.md +8 -4
  7. data/docs/BenefitsApi.md +6 -6
  8. data/docs/CommonModelScopeData.md +20 -0
  9. data/docs/CommonModelScopes.md +20 -0
  10. data/docs/CommonModelScopesApi.md +157 -0
  11. data/docs/CommonModelScopesBodyRequest.md +22 -0
  12. data/docs/CommonModelScopesDisabledModels.md +26 -0
  13. data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
  14. data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
  15. data/docs/CommonModelScopesUpdateSerializer.md +18 -0
  16. data/docs/CompaniesApi.md +4 -4
  17. data/docs/Company.md +7 -3
  18. data/docs/ConditionSchema.md +30 -0
  19. data/docs/ConditionTypeEnum.md +15 -0
  20. data/docs/DataPassthroughRequest.md +1 -1
  21. data/docs/Deduction.md +11 -5
  22. data/docs/Earning.md +10 -2
  23. data/docs/Employee.md +19 -15
  24. data/docs/EmployeePayrollRun.md +11 -7
  25. data/docs/EmployeePayrollRunsApi.md +4 -4
  26. data/docs/EmployeeRequest.md +16 -18
  27. data/docs/EmployeesApi.md +31 -18
  28. data/docs/Employment.md +14 -10
  29. data/docs/EmploymentsApi.md +13 -9
  30. data/docs/EnabledActionsEnum.md +15 -0
  31. data/docs/EndUserDetailsRequest.md +5 -3
  32. data/docs/ForceResyncApi.md +1 -1
  33. data/docs/Group.md +8 -4
  34. data/docs/GroupsApi.md +15 -9
  35. data/docs/Issue.md +10 -8
  36. data/docs/IssuesApi.md +6 -6
  37. data/docs/LinkToken.md +1 -1
  38. data/docs/LinkedAccountCondition.md +28 -0
  39. data/docs/LinkedAccountConditionRequest.md +22 -0
  40. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  41. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  42. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  43. data/docs/LinkedAccountsApi.md +2 -2
  44. data/docs/Location.md +9 -5
  45. data/docs/LocationsApi.md +13 -9
  46. data/docs/MetaResponse.md +2 -0
  47. data/docs/MultipartFormFieldRequest.md +1 -1
  48. data/docs/OperatorSchema.md +20 -0
  49. data/docs/PaginatedConditionSchemaList.md +22 -0
  50. data/docs/PayGroup.md +7 -3
  51. data/docs/PayGroupsApi.md +4 -4
  52. data/docs/PayrollRun.md +9 -5
  53. data/docs/PayrollRunsApi.md +14 -10
  54. data/docs/SelectiveSyncApi.md +233 -0
  55. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  56. data/docs/SyncStatus.md +5 -3
  57. data/docs/Tax.md +9 -1
  58. data/docs/Team.md +8 -4
  59. data/docs/TeamsApi.md +4 -4
  60. data/docs/TimeOff.md +13 -9
  61. data/docs/TimeOffApi.md +16 -12
  62. data/docs/TimeOffBalance.md +10 -6
  63. data/docs/TimeOffBalancesApi.md +15 -11
  64. data/docs/TimeOffRequest.md +11 -9
  65. data/lib/merge_hris_client/api/bank_info_api.rb +24 -10
  66. data/lib/merge_hris_client/api/benefits_api.rb +6 -6
  67. data/lib/merge_hris_client/api/common_model_scopes_api.rb +146 -0
  68. data/lib/merge_hris_client/api/companies_api.rb +4 -4
  69. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +4 -4
  70. data/lib/merge_hris_client/api/employees_api.rb +44 -17
  71. data/lib/merge_hris_client/api/employments_api.rb +22 -8
  72. data/lib/merge_hris_client/api/force_resync_api.rb +2 -2
  73. data/lib/merge_hris_client/api/groups_api.rb +25 -8
  74. data/lib/merge_hris_client/api/issues_api.rb +6 -6
  75. data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -3
  76. data/lib/merge_hris_client/api/locations_api.rb +22 -8
  77. data/lib/merge_hris_client/api/pay_groups_api.rb +4 -4
  78. data/lib/merge_hris_client/api/payroll_runs_api.rb +24 -10
  79. data/lib/merge_hris_client/api/selective_sync_api.rb +225 -0
  80. data/lib/merge_hris_client/api/teams_api.rb +4 -4
  81. data/lib/merge_hris_client/api/time_off_api.rb +26 -12
  82. data/lib/merge_hris_client/api/time_off_balances_api.rb +24 -10
  83. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +1 -1
  84. data/lib/merge_hris_client/models/account_integration.rb +30 -8
  85. data/lib/merge_hris_client/models/account_type_enum.rb +1 -1
  86. data/lib/merge_hris_client/models/bank_info.rb +39 -16
  87. data/lib/merge_hris_client/models/benefit.rb +38 -15
  88. data/lib/merge_hris_client/models/categories_enum.rb +4 -2
  89. data/lib/merge_hris_client/models/category_enum.rb +4 -2
  90. data/lib/merge_hris_client/models/common_model_scope_data.rb +234 -0
  91. data/lib/merge_hris_client/models/common_model_scopes.rb +234 -0
  92. data/lib/merge_hris_client/models/common_model_scopes_body_request.rb +274 -0
  93. data/lib/merge_hris_client/models/common_model_scopes_disabled_models.rb +283 -0
  94. data/lib/merge_hris_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
  95. data/lib/merge_hris_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
  96. data/lib/merge_hris_client/models/common_model_scopes_update_serializer.rb +226 -0
  97. data/lib/merge_hris_client/models/company.rb +37 -15
  98. data/lib/merge_hris_client/models/condition_schema.rb +298 -0
  99. data/lib/merge_hris_client/models/condition_type_enum.rb +50 -0
  100. data/lib/merge_hris_client/models/country_enum.rb +1 -1
  101. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
  102. data/lib/merge_hris_client/models/deduction.rb +50 -17
  103. data/lib/merge_hris_client/models/earning.rb +51 -6
  104. data/lib/merge_hris_client/models/earning_type_enum.rb +1 -1
  105. data/lib/merge_hris_client/models/employee.rb +51 -23
  106. data/lib/merge_hris_client/models/employee_payroll_run.rb +41 -17
  107. data/lib/merge_hris_client/models/employee_request.rb +34 -39
  108. data/lib/merge_hris_client/models/employment.rb +44 -20
  109. data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
  110. data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
  111. data/lib/merge_hris_client/models/enabled_actions_enum.rb +45 -0
  112. data/lib/merge_hris_client/models/encoding_enum.rb +1 -1
  113. data/lib/merge_hris_client/models/end_user_details_request.rb +20 -7
  114. data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
  115. data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
  116. data/lib/merge_hris_client/models/gender_enum.rb +1 -1
  117. data/lib/merge_hris_client/models/group.rb +38 -16
  118. data/lib/merge_hris_client/models/group_type_enum.rb +3 -2
  119. data/lib/merge_hris_client/models/issue.rb +16 -4
  120. data/lib/merge_hris_client/models/link_token.rb +0 -5
  121. data/lib/merge_hris_client/models/linked_account_condition.rb +282 -0
  122. data/lib/merge_hris_client/models/linked_account_condition_request.rb +269 -0
  123. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration.rb +221 -0
  124. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  125. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  126. data/lib/merge_hris_client/models/location.rb +39 -17
  127. data/lib/merge_hris_client/models/location_type_enum.rb +1 -1
  128. data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
  129. data/lib/merge_hris_client/models/meta_response.rb +12 -1
  130. data/lib/merge_hris_client/models/method_enum.rb +1 -1
  131. data/lib/merge_hris_client/models/multipart_form_field_request.rb +1 -1
  132. data/lib/merge_hris_client/models/operator_schema.rb +229 -0
  133. data/lib/merge_hris_client/models/paginated_condition_schema_list.rb +240 -0
  134. data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
  135. data/lib/merge_hris_client/models/pay_frequency_enum.rb +3 -2
  136. data/lib/merge_hris_client/models/pay_group.rb +37 -15
  137. data/lib/merge_hris_client/models/pay_period_enum.rb +3 -2
  138. data/lib/merge_hris_client/models/payroll_run.rb +39 -17
  139. data/lib/merge_hris_client/models/policy_type_enum.rb +1 -1
  140. data/lib/merge_hris_client/models/reason_enum.rb +1 -1
  141. data/lib/merge_hris_client/models/request_format_enum.rb +1 -1
  142. data/lib/merge_hris_client/models/request_type_enum.rb +1 -1
  143. data/lib/merge_hris_client/models/response_type_enum.rb +1 -1
  144. data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
  145. data/lib/merge_hris_client/models/run_type_enum.rb +1 -1
  146. data/lib/merge_hris_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  147. data/lib/merge_hris_client/models/sync_status.rb +13 -4
  148. data/lib/merge_hris_client/models/sync_status_status_enum.rb +1 -1
  149. data/lib/merge_hris_client/models/tax.rb +50 -5
  150. data/lib/merge_hris_client/models/team.rb +38 -15
  151. data/lib/merge_hris_client/models/time_off.rb +43 -19
  152. data/lib/merge_hris_client/models/time_off_balance.rb +40 -17
  153. data/lib/merge_hris_client/models/time_off_request.rb +36 -21
  154. data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
  155. data/lib/merge_hris_client/models/units_enum.rb +1 -1
  156. data/lib/merge_hris_client/version.rb +1 -1
  157. data/lib/merge_hris_client.rb +20 -3
  158. data/spec/api/bank_info_api_spec.rb +7 -5
  159. data/spec/api/benefits_api_spec.rb +3 -3
  160. data/spec/api/common_model_scopes_api_spec.rb +58 -0
  161. data/spec/api/companies_api_spec.rb +2 -2
  162. data/spec/api/employee_payroll_runs_api_spec.rb +2 -2
  163. data/spec/api/employees_api_spec.rb +13 -6
  164. data/spec/api/employments_api_spec.rb +6 -4
  165. data/spec/api/force_resync_api_spec.rb +1 -1
  166. data/spec/api/groups_api_spec.rb +7 -4
  167. data/spec/api/issues_api_spec.rb +3 -3
  168. data/spec/api/linked_accounts_api_spec.rb +1 -1
  169. data/spec/api/locations_api_spec.rb +6 -4
  170. data/spec/api/pay_groups_api_spec.rb +2 -2
  171. data/spec/api/payroll_runs_api_spec.rb +7 -5
  172. data/spec/api/selective_sync_api_spec.rb +72 -0
  173. data/spec/api/teams_api_spec.rb +2 -2
  174. data/spec/api/time_off_api_spec.rb +8 -6
  175. data/spec/api/time_off_balances_api_spec.rb +7 -5
  176. data/spec/models/account_integration_spec.rb +12 -0
  177. data/spec/models/bank_info_spec.rb +14 -2
  178. data/spec/models/benefit_spec.rb +14 -2
  179. data/spec/models/common_model_scope_data_spec.rb +40 -0
  180. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  181. data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
  182. data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
  183. data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
  184. data/spec/models/common_model_scopes_spec.rb +40 -0
  185. data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
  186. data/spec/models/company_spec.rb +14 -2
  187. data/spec/models/condition_schema_spec.rb +70 -0
  188. data/spec/models/condition_type_enum_spec.rb +28 -0
  189. data/spec/models/deduction_spec.rb +20 -2
  190. data/spec/models/earning_spec.rb +24 -0
  191. data/spec/models/employee_payroll_run_spec.rb +14 -2
  192. data/spec/models/employee_request_spec.rb +5 -11
  193. data/spec/models/employee_spec.rb +15 -3
  194. data/spec/models/employment_spec.rb +14 -2
  195. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  196. data/spec/models/end_user_details_request_spec.rb +6 -0
  197. data/spec/models/group_spec.rb +14 -2
  198. data/spec/models/issue_spec.rb +6 -0
  199. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  200. data/spec/models/linked_account_condition_spec.rb +64 -0
  201. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  202. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  203. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  204. data/spec/models/location_spec.rb +14 -2
  205. data/spec/models/meta_response_spec.rb +6 -0
  206. data/spec/models/operator_schema_spec.rb +40 -0
  207. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  208. data/spec/models/pay_group_spec.rb +14 -2
  209. data/spec/models/payroll_run_spec.rb +14 -2
  210. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  211. data/spec/models/sync_status_spec.rb +6 -0
  212. data/spec/models/tax_spec.rb +24 -0
  213. data/spec/models/team_spec.rb +14 -2
  214. data/spec/models/time_off_balance_spec.rb +14 -2
  215. data/spec/models/time_off_request_spec.rb +12 -6
  216. data/spec/models/time_off_spec.rb +14 -2
  217. metadata +183 -103
@@ -0,0 +1,240 @@
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 PaginatedConditionSchemaList
18
+ attr_accessor :_next
19
+
20
+ attr_accessor :previous
21
+
22
+ attr_accessor :results
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'_next' => :'next',
28
+ :'previous' => :'previous',
29
+ :'results' => :'results'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'_next' => :'String',
42
+ :'previous' => :'String',
43
+ :'results' => :'Array<ConditionSchema>'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ :'_next',
51
+ :'previous',
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::PaginatedConditionSchemaList` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::PaginatedConditionSchemaList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'_next')
71
+ self._next = attributes[:'_next']
72
+ end
73
+
74
+ if attributes.key?(:'previous')
75
+ self.previous = attributes[:'previous']
76
+ end
77
+
78
+ if attributes.key?(:'results')
79
+ if (value = attributes[:'results']).is_a?(Array)
80
+ self.results = value
81
+ end
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ invalid_properties = Array.new
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
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ _next == o._next &&
104
+ previous == o.previous &&
105
+ results == o.results
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [_next, previous, results].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ new.build_from_hash(attributes)
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :Time
156
+ Time.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :Boolean
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ # models (e.g. Pet) or oneOf
187
+ klass = MergeHRISClient.const_get(type)
188
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+
240
+ end
@@ -342,7 +342,7 @@ module MergeHRISClient
342
342
  end
343
343
 
344
344
  def self.build_from_hash(value)
345
- IssueStatusEnum.new.build_from_hash(value)
345
+ PayCurrencyEnum.new.build_from_hash(value)
346
346
  end
347
347
  end
348
348
 
@@ -23,6 +23,7 @@ module MergeHRISClient
23
23
  ANNUALLY = "ANNUALLY".freeze
24
24
  THIRTEEN_MONTHLY = "THIRTEEN-MONTHLY".freeze
25
25
  PRO_RATA = "PRO_RATA".freeze
26
+ SEMIMONTHLY = "SEMIMONTHLY".freeze
26
27
 
27
28
  MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
28
29
 
@@ -34,7 +35,7 @@ module MergeHRISClient
34
35
  # @return [String] The enum value
35
36
  def build_from_hash(value)
36
37
  @raw_value = value
37
- if ["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMIANNUALLY", "ANNUALLY", "THIRTEEN-MONTHLY", "PRO_RATA", ].include? value
38
+ if ["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMIANNUALLY", "ANNUALLY", "THIRTEEN-MONTHLY", "PRO_RATA", "SEMIMONTHLY", ].include? value
38
39
  @value = value
39
40
  else
40
41
  @value = MERGE_NONSTANDARD_VALUE
@@ -44,7 +45,7 @@ module MergeHRISClient
44
45
  end
45
46
 
46
47
  def self.build_from_hash(value)
47
- IssueStatusEnum.new.build_from_hash(value)
48
+ PayFrequencyEnum.new.build_from_hash(value)
48
49
  end
49
50
  end
50
51
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The PayGroup Object ### Description The `PayGroup` object is used to represent Pay Group information that employees belong to. This is often referenced with an Employee object. ### Usage Example Fetch from the `LIST PayGroup` endpoint and filter by `ID` to show all pay group information.
17
+ # # The PayGroup Object ### Description The `PayGroup` object is used to represent a subset of employees that are put together for payroll processing purposes. ### Usage Example Fetch from the `LIST PayGroup` endpoint and filter by `ID` to show all pay group information.
18
18
  class PayGroup
19
19
  attr_accessor :id
20
20
 
@@ -24,19 +24,26 @@ module MergeHRISClient
24
24
  # The pay group name.
25
25
  attr_accessor :pay_group_name
26
26
 
27
- attr_accessor :remote_data
28
-
29
27
  # Indicates whether or not this object has been deleted by third party webhooks.
30
28
  attr_accessor :remote_was_deleted
31
29
 
30
+ attr_accessor :field_mappings
31
+
32
+ # This is the datetime that this object was last updated by Merge
33
+ attr_accessor :modified_at
34
+
35
+ attr_accessor :remote_data
36
+
32
37
  # Attribute mapping from ruby-style variable name to JSON key.
33
38
  def self.attribute_map
34
39
  {
35
40
  :'id' => :'id',
36
41
  :'remote_id' => :'remote_id',
37
42
  :'pay_group_name' => :'pay_group_name',
38
- :'remote_data' => :'remote_data',
39
- :'remote_was_deleted' => :'remote_was_deleted'
43
+ :'remote_was_deleted' => :'remote_was_deleted',
44
+ :'field_mappings' => :'field_mappings',
45
+ :'modified_at' => :'modified_at',
46
+ :'remote_data' => :'remote_data'
40
47
  }
41
48
  end
42
49
 
@@ -51,8 +58,10 @@ module MergeHRISClient
51
58
  :'id' => :'String',
52
59
  :'remote_id' => :'String',
53
60
  :'pay_group_name' => :'String',
54
- :'remote_data' => :'Array<RemoteData>',
55
- :'remote_was_deleted' => :'Boolean'
61
+ :'remote_was_deleted' => :'Boolean',
62
+ :'field_mappings' => :'Hash<String, Object>',
63
+ :'modified_at' => :'Time',
64
+ :'remote_data' => :'Array<RemoteData>'
56
65
  }
57
66
  end
58
67
 
@@ -61,7 +70,8 @@ module MergeHRISClient
61
70
  Set.new([
62
71
  :'remote_id',
63
72
  :'pay_group_name',
64
- :'remote_data',
73
+ :'field_mappings',
74
+ :'remote_data'
65
75
  ])
66
76
  end
67
77
 
@@ -92,15 +102,25 @@ module MergeHRISClient
92
102
  self.pay_group_name = attributes[:'pay_group_name']
93
103
  end
94
104
 
105
+ if attributes.key?(:'remote_was_deleted')
106
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
107
+ end
108
+
109
+ if attributes.key?(:'field_mappings')
110
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
111
+ self.field_mappings = value
112
+ end
113
+ end
114
+
115
+ if attributes.key?(:'modified_at')
116
+ self.modified_at = attributes[:'modified_at']
117
+ end
118
+
95
119
  if attributes.key?(:'remote_data')
96
120
  if (value = attributes[:'remote_data']).is_a?(Array)
97
121
  self.remote_data = value
98
122
  end
99
123
  end
100
-
101
- if attributes.key?(:'remote_was_deleted')
102
- self.remote_was_deleted = attributes[:'remote_was_deleted']
103
- end
104
124
  end
105
125
 
106
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -124,8 +144,10 @@ module MergeHRISClient
124
144
  id == o.id &&
125
145
  remote_id == o.remote_id &&
126
146
  pay_group_name == o.pay_group_name &&
127
- remote_data == o.remote_data &&
128
- remote_was_deleted == o.remote_was_deleted
147
+ remote_was_deleted == o.remote_was_deleted &&
148
+ field_mappings == o.field_mappings &&
149
+ modified_at == o.modified_at &&
150
+ remote_data == o.remote_data
129
151
  end
130
152
 
131
153
  # @see the `==` method
@@ -137,7 +159,7 @@ module MergeHRISClient
137
159
  # Calculates hash code according to all attributes.
138
160
  # @return [Integer] Hash code
139
161
  def hash
140
- [id, remote_id, pay_group_name, remote_data, remote_was_deleted].hash
162
+ [id, remote_id, pay_group_name, remote_was_deleted, field_mappings, modified_at, remote_data].hash
141
163
  end
142
164
 
143
165
  # Builds the object from hash
@@ -19,6 +19,7 @@ module MergeHRISClient
19
19
  DAY = "DAY".freeze
20
20
  WEEK = "WEEK".freeze
21
21
  EVERY_TWO_WEEKS = "EVERY_TWO_WEEKS".freeze
22
+ SEMIMONTHLY = "SEMIMONTHLY".freeze
22
23
  MONTH = "MONTH".freeze
23
24
  QUARTER = "QUARTER".freeze
24
25
  EVERY_SIX_MONTHS = "EVERY_SIX_MONTHS".freeze
@@ -34,7 +35,7 @@ module MergeHRISClient
34
35
  # @return [String] The enum value
35
36
  def build_from_hash(value)
36
37
  @raw_value = value
37
- if ["HOUR", "DAY", "WEEK", "EVERY_TWO_WEEKS", "MONTH", "QUARTER", "EVERY_SIX_MONTHS", "YEAR", ].include? value
38
+ if ["HOUR", "DAY", "WEEK", "EVERY_TWO_WEEKS", "SEMIMONTHLY", "MONTH", "QUARTER", "EVERY_SIX_MONTHS", "YEAR", ].include? value
38
39
  @value = value
39
40
  else
40
41
  @value = MERGE_NONSTANDARD_VALUE
@@ -44,7 +45,7 @@ module MergeHRISClient
44
45
  end
45
46
 
46
47
  def self.build_from_hash(value)
47
- IssueStatusEnum.new.build_from_hash(value)
48
+ PayPeriodEnum.new.build_from_hash(value)
48
49
  end
49
50
  end
50
51
 
@@ -14,17 +14,17 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The PayrollRun Object ### Description The `PayrollRun` object is used to represent a payroll run. This payroll run is not specific to an employee. ### Usage Example Fetch from the `LIST PayrollRuns` endpoint and filter by `ID` to show all payroll runs.
17
+ # # The PayrollRun Object ### Description The `PayrollRun` object is used to represent a group of pay statements for a specific pay schedule. ### Usage Example Fetch from the `LIST PayrollRuns` endpoint and filter by `ID` to show all payroll runs.
18
18
  class PayrollRun
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 state of the payroll run
24
+ # The state of the payroll run * `PAID` - PAID * `DRAFT` - DRAFT * `APPROVED` - APPROVED * `FAILED` - FAILED * `CLOSED` - CLOSED
25
25
  attr_accessor :run_state
26
26
 
27
- # The type of the payroll run
27
+ # The type of the payroll run * `REGULAR` - REGULAR * `OFF_CYCLE` - OFF_CYCLE * `CORRECTION` - CORRECTION * `TERMINATION` - TERMINATION * `SIGN_ON_BONUS` - SIGN_ON_BONUS
28
28
  attr_accessor :run_type
29
29
 
30
30
  # The day and time the payroll run started.
@@ -36,11 +36,16 @@ module MergeHRISClient
36
36
  # The day and time the payroll run was checked.
37
37
  attr_accessor :check_date
38
38
 
39
- attr_accessor :remote_data
40
-
41
39
  # Indicates whether or not this object has been deleted by third party webhooks.
42
40
  attr_accessor :remote_was_deleted
43
41
 
42
+ attr_accessor :field_mappings
43
+
44
+ # This is the datetime that this object was last updated by Merge
45
+ attr_accessor :modified_at
46
+
47
+ attr_accessor :remote_data
48
+
44
49
  # Attribute mapping from ruby-style variable name to JSON key.
45
50
  def self.attribute_map
46
51
  {
@@ -51,8 +56,10 @@ module MergeHRISClient
51
56
  :'start_date' => :'start_date',
52
57
  :'end_date' => :'end_date',
53
58
  :'check_date' => :'check_date',
54
- :'remote_data' => :'remote_data',
55
- :'remote_was_deleted' => :'remote_was_deleted'
59
+ :'remote_was_deleted' => :'remote_was_deleted',
60
+ :'field_mappings' => :'field_mappings',
61
+ :'modified_at' => :'modified_at',
62
+ :'remote_data' => :'remote_data'
56
63
  }
57
64
  end
58
65
 
@@ -71,8 +78,10 @@ module MergeHRISClient
71
78
  :'start_date' => :'Time',
72
79
  :'end_date' => :'Time',
73
80
  :'check_date' => :'Time',
74
- :'remote_data' => :'Array<RemoteData>',
75
- :'remote_was_deleted' => :'Boolean'
81
+ :'remote_was_deleted' => :'Boolean',
82
+ :'field_mappings' => :'Hash<String, Object>',
83
+ :'modified_at' => :'Time',
84
+ :'remote_data' => :'Array<RemoteData>'
76
85
  }
77
86
  end
78
87
 
@@ -85,7 +94,8 @@ module MergeHRISClient
85
94
  :'start_date',
86
95
  :'end_date',
87
96
  :'check_date',
88
- :'remote_data',
97
+ :'field_mappings',
98
+ :'remote_data'
89
99
  ])
90
100
  end
91
101
 
@@ -132,15 +142,25 @@ module MergeHRISClient
132
142
  self.check_date = attributes[:'check_date']
133
143
  end
134
144
 
145
+ if attributes.key?(:'remote_was_deleted')
146
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
147
+ end
148
+
149
+ if attributes.key?(:'field_mappings')
150
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
151
+ self.field_mappings = value
152
+ end
153
+ end
154
+
155
+ if attributes.key?(:'modified_at')
156
+ self.modified_at = attributes[:'modified_at']
157
+ end
158
+
135
159
  if attributes.key?(:'remote_data')
136
160
  if (value = attributes[:'remote_data']).is_a?(Array)
137
161
  self.remote_data = value
138
162
  end
139
163
  end
140
-
141
- if attributes.key?(:'remote_was_deleted')
142
- self.remote_was_deleted = attributes[:'remote_was_deleted']
143
- end
144
164
  end
145
165
 
146
166
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -168,8 +188,10 @@ module MergeHRISClient
168
188
  start_date == o.start_date &&
169
189
  end_date == o.end_date &&
170
190
  check_date == o.check_date &&
171
- remote_data == o.remote_data &&
172
- remote_was_deleted == o.remote_was_deleted
191
+ remote_was_deleted == o.remote_was_deleted &&
192
+ field_mappings == o.field_mappings &&
193
+ modified_at == o.modified_at &&
194
+ remote_data == o.remote_data
173
195
  end
174
196
 
175
197
  # @see the `==` method
@@ -181,7 +203,7 @@ module MergeHRISClient
181
203
  # Calculates hash code according to all attributes.
182
204
  # @return [Integer] Hash code
183
205
  def hash
184
- [id, remote_id, run_state, run_type, start_date, end_date, check_date, remote_data, remote_was_deleted].hash
206
+ [id, remote_id, run_state, run_type, start_date, end_date, check_date, remote_was_deleted, field_mappings, modified_at, remote_data].hash
185
207
  end
186
208
 
187
209
  # Builds the object from hash
@@ -42,7 +42,7 @@ module MergeHRISClient
42
42
  end
43
43
 
44
44
  def self.build_from_hash(value)
45
- IssueStatusEnum.new.build_from_hash(value)
45
+ PolicyTypeEnum.new.build_from_hash(value)
46
46
  end
47
47
  end
48
48
 
@@ -39,7 +39,7 @@ module MergeHRISClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ ReasonEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -39,7 +39,7 @@ module MergeHRISClient
39
39
  end
40
40
 
41
41
  def self.build_from_hash(value)
42
- IssueStatusEnum.new.build_from_hash(value)
42
+ RequestFormatEnum.new.build_from_hash(value)
43
43
  end
44
44
  end
45
45
 
@@ -42,7 +42,7 @@ module MergeHRISClient
42
42
  end
43
43
 
44
44
  def self.build_from_hash(value)
45
- IssueStatusEnum.new.build_from_hash(value)
45
+ RequestTypeEnum.new.build_from_hash(value)
46
46
  end
47
47
  end
48
48
 
@@ -38,7 +38,7 @@ module MergeHRISClient
38
38
  end
39
39
 
40
40
  def self.build_from_hash(value)
41
- IssueStatusEnum.new.build_from_hash(value)
41
+ ResponseTypeEnum.new.build_from_hash(value)
42
42
  end
43
43
  end
44
44
 
@@ -41,7 +41,7 @@ module MergeHRISClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ RunStateEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -41,7 +41,7 @@ module MergeHRISClient
41
41
  end
42
42
 
43
43
  def self.build_from_hash(value)
44
- IssueStatusEnum.new.build_from_hash(value)
44
+ RunTypeEnum.new.build_from_hash(value)
45
45
  end
46
46
  end
47
47
 
@@ -0,0 +1,45 @@
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 SelectiveSyncConfigurationsUsageEnum
18
+ NEXT_SYNC = "IN_NEXT_SYNC".freeze
19
+ LAST_SYNC = "IN_LAST_SYNC".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 ["IN_NEXT_SYNC", "IN_LAST_SYNC", ].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
+ SelectiveSyncConfigurationsUsageEnum.new.build_from_hash(value)
42
+ end
43
+ end
44
+
45
+ end