merge_hris_client 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -9
- data/docs/AccountDetails.md +30 -0
- data/docs/AccountDetailsAndActions.md +32 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +76 -0
- data/docs/AccountTypeEnum.md +15 -0
- data/docs/BankInfo.md +34 -0
- data/docs/BankInfoApi.md +193 -0
- data/docs/BenefitsApi.md +2 -78
- data/docs/{StateEnum.md → CategoriesEnum.md} +2 -2
- data/docs/{NullEnum.md → CategoryEnum.md} +2 -2
- data/docs/CompaniesApi.md +3 -1
- data/docs/DataPassthroughRequest.md +5 -3
- data/docs/DeductionsApi.md +179 -0
- data/docs/Employee.md +12 -8
- data/docs/EmployeePayrollRun.md +3 -3
- data/docs/EmployeePayrollRunsApi.md +13 -3
- data/docs/EmployeesApi.md +12 -82
- data/docs/Employment.md +3 -1
- data/docs/EmploymentsApi.md +7 -78
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/IssuesApi.md +11 -10
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/Location.md +2 -0
- data/docs/LocationsApi.md +2 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedBankInfoList.md +22 -0
- data/docs/PaginatedDeductionList.md +22 -0
- data/docs/PaginatedIssueList.md +2 -2
- data/docs/PaginatedPayGroupList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/PayGroup.md +24 -0
- data/docs/PayGroupsApi.md +177 -0
- data/docs/PayrollRun.md +3 -3
- data/docs/PayrollRunsApi.md +13 -1
- data/docs/PolicyTypeEnum.md +15 -0
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/SyncStatusApi.md +3 -74
- data/docs/TeamsApi.md +7 -2
- data/docs/TimeOff.md +3 -3
- data/docs/TimeOffApi.md +88 -4
- data/docs/TimeOffBalance.md +4 -2
- data/docs/{TimeOffBalanceApi.md → TimeOffBalancesApi.md} +26 -22
- data/docs/TimeOffEndpointRequest.md +18 -0
- data/docs/TimeOffRequest.md +36 -0
- data/docs/TimeOffResponse.md +22 -0
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/lib/merge_hris_client/api/account_details_api.rb +77 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +222 -0
- data/lib/merge_hris_client/api/benefits_api.rb +3 -69
- data/lib/merge_hris_client/api/companies_api.rb +3 -0
- data/lib/merge_hris_client/api/deductions_api.rb +185 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +17 -2
- data/lib/merge_hris_client/api/employees_api.rb +18 -75
- data/lib/merge_hris_client/api/employments_api.rb +24 -69
- data/lib/merge_hris_client/api/force_resync_api.rb +84 -0
- data/lib/merge_hris_client/api/issues_api.rb +10 -10
- data/lib/merge_hris_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_hris_client/api/locations_api.rb +3 -0
- data/lib/merge_hris_client/api/pay_groups_api.rb +182 -0
- data/lib/merge_hris_client/api/payroll_runs_api.rb +22 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +4 -4
- data/lib/merge_hris_client/api/teams_api.rb +17 -0
- data/lib/merge_hris_client/api/time_off_api.rb +92 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +206 -0
- data/lib/merge_hris_client/models/account_details.rb +273 -0
- data/lib/merge_hris_client/models/account_details_and_actions.rb +302 -0
- data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_hris_client/models/account_integration.rb +1 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +35 -0
- data/lib/merge_hris_client/models/bank_info.rb +323 -0
- data/lib/merge_hris_client/models/categories_enum.rb +36 -0
- data/lib/merge_hris_client/models/category_enum.rb +36 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +66 -9
- data/lib/merge_hris_client/models/employee.rb +32 -8
- data/lib/merge_hris_client/models/employment.rb +12 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +73 -1
- data/lib/merge_hris_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +19 -0
- data/lib/merge_hris_client/models/location.rb +12 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_bank_info_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_deduction_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_pay_group_list.rb +240 -0
- data/lib/merge_hris_client/models/{benefit_request.rb → pay_group.rb} +31 -54
- data/lib/merge_hris_client/models/policy_type_enum.rb +39 -0
- data/lib/merge_hris_client/models/remote_data_request.rb +19 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +19 -0
- data/lib/merge_hris_client/models/request_format_enum.rb +35 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +2 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -0
- data/lib/merge_hris_client/models/time_off_balance.rb +14 -3
- data/lib/merge_hris_client/models/time_off_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/{employment_request.rb → time_off_request.rb} +80 -69
- data/lib/merge_hris_client/models/time_off_response.rb +255 -0
- data/lib/merge_hris_client/models/validation_problem_source.rb +223 -0
- data/lib/merge_hris_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +28 -4
- data/spec/api/account_details_api_spec.rb +45 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +76 -0
- data/spec/api/benefits_api_spec.rb +4 -1
- data/spec/api/companies_api_spec.rb +4 -1
- data/spec/api/deductions_api_spec.rb +69 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +9 -2
- data/spec/api/employees_api_spec.rb +9 -1
- data/spec/api/employments_api_spec.rb +7 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +5 -5
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/locations_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -3
- data/spec/api/pay_groups_api_spec.rb +68 -0
- data/spec/api/payroll_runs_api_spec.rb +9 -1
- data/spec/api/regenerate_key_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +2 -13
- data/spec/api/teams_api_spec.rb +7 -1
- data/spec/api/time_off_api_spec.rb +20 -2
- data/spec/api/{time_off_balance_api_spec.rb → time_off_balances_api_spec.rb} +13 -11
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +76 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/{benefit_request_spec.rb → account_details_spec.rb} +18 -12
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/account_type_enum_spec.rb +28 -0
- data/spec/models/available_actions_spec.rb +13 -1
- data/spec/models/{employment_request_spec.rb → bank_info_spec.rb} +15 -15
- data/spec/models/benefit_plan_type_enum_spec.rb +1 -1
- data/spec/models/benefit_spec.rb +7 -1
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/{state_enum_spec.rb → category_enum_spec.rb} +7 -7
- data/spec/models/company_spec.rb +7 -1
- data/spec/models/country_enum_spec.rb +1 -1
- data/spec/models/data_passthrough_request_spec.rb +7 -1
- data/spec/models/deduction_spec.rb +7 -1
- data/spec/models/earning_spec.rb +7 -1
- data/spec/models/employee_payroll_run_spec.rb +7 -1
- data/spec/models/employee_spec.rb +31 -1
- data/spec/models/employment_spec.rb +13 -1
- data/spec/models/employment_status_enum_spec.rb +1 -1
- data/spec/models/employment_type_enum_spec.rb +1 -1
- data/spec/models/end_user_details_request_spec.rb +7 -5
- data/spec/models/{end_user_details_spec.rb → error_validation_problem_spec.rb} +11 -15
- data/spec/models/ethnicity_enum_spec.rb +1 -1
- data/spec/models/flsa_status_enum_spec.rb +1 -1
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +1 -1
- data/spec/models/location_spec.rb +13 -1
- data/spec/models/marital_status_enum_spec.rb +1 -1
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_bank_info_list_spec.rb +46 -0
- data/spec/models/paginated_benefit_list_spec.rb +1 -1
- data/spec/models/paginated_company_list_spec.rb +1 -1
- data/spec/models/paginated_deduction_list_spec.rb +46 -0
- data/spec/models/paginated_employee_list_spec.rb +1 -1
- data/spec/models/paginated_employee_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_employment_list_spec.rb +1 -1
- data/spec/models/paginated_location_list_spec.rb +1 -1
- data/spec/models/paginated_pay_group_list_spec.rb +46 -0
- data/spec/models/paginated_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_team_list_spec.rb +1 -1
- data/spec/models/paginated_time_off_list_spec.rb +1 -1
- data/spec/models/pay_currency_enum_spec.rb +1 -1
- data/spec/models/pay_frequency_enum_spec.rb +1 -1
- data/spec/models/{data_passthrough_spec.rb → pay_group_spec.rb} +11 -11
- data/spec/models/pay_period_enum_spec.rb +1 -1
- data/spec/models/payroll_run_spec.rb +7 -1
- data/spec/models/policy_type_enum_spec.rb +28 -0
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +1 -1
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/request_type_enum_spec.rb +1 -1
- data/spec/models/run_state_enum_spec.rb +1 -1
- data/spec/models/run_type_enum_spec.rb +1 -1
- data/spec/models/tax_spec.rb +7 -1
- data/spec/models/team_spec.rb +13 -1
- data/spec/models/time_off_balance_spec.rb +6 -0
- data/spec/models/{remote_key_for_regeneration_spec.rb → time_off_endpoint_request_spec.rb} +8 -8
- data/spec/models/time_off_request_spec.rb +88 -0
- data/spec/models/time_off_response_spec.rb +46 -0
- data/spec/models/time_off_spec.rb +19 -1
- data/spec/models/time_off_status_enum_spec.rb +1 -1
- data/spec/models/type_enum_spec.rb +1 -1
- data/spec/models/units_enum_spec.rb +1 -1
- data/spec/models/validation_problem_source_spec.rb +34 -0
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/test_ruby.rb +11 -14
- metadata +115 -33
- data/docs/BenefitRequest.md +0 -28
- data/docs/DataPassthrough.md +0 -24
- data/docs/EmployeeRequest.md +0 -62
- data/docs/EmploymentRequest.md +0 -34
- data/docs/EndUserDetails.md +0 -24
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/lib/merge_hris_client/models/employee_request.rb +0 -523
- data/merge_hris_client-1.0.0.gem +0 -0
- data/merge_hris_client-1.0.1.gem +0 -0
- data/spec/models/employee_request_spec.rb +0 -160
@@ -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 PaginatedPayGroupList
|
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<PayGroup>'
|
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::PaginatedPayGroupList` 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::PaginatedPayGroupList`. 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.to_s
|
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
|
@@ -14,35 +14,25 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The
|
18
|
-
class
|
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.
|
18
|
+
class PayGroup
|
19
|
+
attr_accessor :id
|
20
|
+
|
19
21
|
# The third-party API ID of the matching object.
|
20
22
|
attr_accessor :remote_id
|
21
23
|
|
22
|
-
# The
|
23
|
-
attr_accessor :
|
24
|
-
|
25
|
-
# The name of the benefit provider.
|
26
|
-
attr_accessor :provider_name
|
27
|
-
|
28
|
-
# The type of benefit plan
|
29
|
-
attr_accessor :benefit_plan_type
|
30
|
-
|
31
|
-
# The employee's contribution.
|
32
|
-
attr_accessor :employee_contribution
|
24
|
+
# The pay group name.
|
25
|
+
attr_accessor :pay_group_name
|
33
26
|
|
34
|
-
|
35
|
-
attr_accessor :company_contribution
|
27
|
+
attr_accessor :remote_data
|
36
28
|
|
37
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
30
|
def self.attribute_map
|
39
31
|
{
|
32
|
+
:'id' => :'id',
|
40
33
|
:'remote_id' => :'remote_id',
|
41
|
-
:'
|
42
|
-
:'
|
43
|
-
:'benefit_plan_type' => :'benefit_plan_type',
|
44
|
-
:'employee_contribution' => :'employee_contribution',
|
45
|
-
:'company_contribution' => :'company_contribution'
|
34
|
+
:'pay_group_name' => :'pay_group_name',
|
35
|
+
:'remote_data' => :'remote_data'
|
46
36
|
}
|
47
37
|
end
|
48
38
|
|
@@ -54,12 +44,10 @@ module MergeHRISClient
|
|
54
44
|
# Attribute type mapping.
|
55
45
|
def self.openapi_types
|
56
46
|
{
|
47
|
+
:'id' => :'String',
|
57
48
|
:'remote_id' => :'String',
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'benefit_plan_type' => :'BenefitPlanTypeEnum',
|
61
|
-
:'employee_contribution' => :'Float',
|
62
|
-
:'company_contribution' => :'Float'
|
49
|
+
:'pay_group_name' => :'String',
|
50
|
+
:'remote_data' => :'Array<RemoteData>'
|
63
51
|
}
|
64
52
|
end
|
65
53
|
|
@@ -67,11 +55,8 @@ module MergeHRISClient
|
|
67
55
|
def self.openapi_nullable
|
68
56
|
Set.new([
|
69
57
|
:'remote_id',
|
70
|
-
:'
|
71
|
-
:'
|
72
|
-
:'benefit_plan_type',
|
73
|
-
:'employee_contribution',
|
74
|
-
:'company_contribution'
|
58
|
+
:'pay_group_name',
|
59
|
+
:'remote_data'
|
75
60
|
])
|
76
61
|
end
|
77
62
|
|
@@ -79,39 +64,33 @@ module MergeHRISClient
|
|
79
64
|
# @param [Hash] attributes Model attributes in the form of hash
|
80
65
|
def initialize(attributes = {})
|
81
66
|
if (!attributes.is_a?(Hash))
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::
|
67
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::PayGroup` initialize method"
|
83
68
|
end
|
84
69
|
|
85
70
|
# check to see if the attribute exists and convert string to symbol for hash key
|
86
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
87
72
|
if (!self.class.attribute_map.key?(k.to_sym))
|
88
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::PayGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
89
74
|
end
|
90
75
|
h[k.to_sym] = v
|
91
76
|
}
|
92
77
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
78
|
+
if attributes.key?(:'id')
|
79
|
+
self.id = attributes[:'id']
|
95
80
|
end
|
96
81
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'provider_name')
|
102
|
-
self.provider_name = attributes[:'provider_name']
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.key?(:'benefit_plan_type')
|
106
|
-
self.benefit_plan_type = attributes[:'benefit_plan_type']
|
82
|
+
if attributes.key?(:'remote_id')
|
83
|
+
self.remote_id = attributes[:'remote_id']
|
107
84
|
end
|
108
85
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
86
|
+
if attributes.key?(:'pay_group_name')
|
87
|
+
self.pay_group_name = attributes[:'pay_group_name']
|
111
88
|
end
|
112
89
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
|
90
|
+
if attributes.key?(:'remote_data')
|
91
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
92
|
+
self.remote_data = value
|
93
|
+
end
|
115
94
|
end
|
116
95
|
end
|
117
96
|
|
@@ -133,12 +112,10 @@ module MergeHRISClient
|
|
133
112
|
def ==(o)
|
134
113
|
return true if self.equal?(o)
|
135
114
|
self.class == o.class &&
|
115
|
+
id == o.id &&
|
136
116
|
remote_id == o.remote_id &&
|
137
|
-
|
138
|
-
|
139
|
-
benefit_plan_type == o.benefit_plan_type &&
|
140
|
-
employee_contribution == o.employee_contribution &&
|
141
|
-
company_contribution == o.company_contribution
|
117
|
+
pay_group_name == o.pay_group_name &&
|
118
|
+
remote_data == o.remote_data
|
142
119
|
end
|
143
120
|
|
144
121
|
# @see the `==` method
|
@@ -150,7 +127,7 @@ module MergeHRISClient
|
|
150
127
|
# Calculates hash code according to all attributes.
|
151
128
|
# @return [Integer] Hash code
|
152
129
|
def hash
|
153
|
-
[
|
130
|
+
[id, remote_id, pay_group_name, remote_data].hash
|
154
131
|
end
|
155
132
|
|
156
133
|
# Builds the object from hash
|
@@ -0,0 +1,39 @@
|
|
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 PolicyTypeEnum
|
18
|
+
VACATION = "VACATION".freeze
|
19
|
+
SICK = "SICK".freeze
|
20
|
+
PERSONAL = "PERSONAL".freeze
|
21
|
+
JURY_DUTY = "JURY_DUTY".freeze
|
22
|
+
VOLUNTEER = "VOLUNTEER".freeze
|
23
|
+
BEREAVEMENT = "BEREAVEMENT".freeze
|
24
|
+
|
25
|
+
# Builds the enum from string
|
26
|
+
# @param [String] The enum value in the form of the string
|
27
|
+
# @return [String] The enum value
|
28
|
+
def self.build_from_hash(value)
|
29
|
+
new.build_from_hash(value)
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -80,6 +80,10 @@ module MergeHRISClient
|
|
80
80
|
invalid_properties.push('invalid value for "path", path cannot be nil.')
|
81
81
|
end
|
82
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
|
+
|
83
87
|
invalid_properties
|
84
88
|
end
|
85
89
|
|
@@ -87,9 +91,24 @@ module MergeHRISClient
|
|
87
91
|
# @return true if the model is valid
|
88
92
|
def valid?
|
89
93
|
return false if @path.nil?
|
94
|
+
return false if @path.to_s.length < 1
|
90
95
|
true
|
91
96
|
end
|
92
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
|
+
|
93
112
|
# Checks equality by comparing each attribute.
|
94
113
|
# @param [Object] Object to be compared
|
95
114
|
def ==(o)
|
@@ -71,6 +71,10 @@ module MergeHRISClient
|
|
71
71
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
72
72
|
end
|
73
73
|
|
74
|
+
if @name.to_s.length < 1
|
75
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
76
|
+
end
|
77
|
+
|
74
78
|
invalid_properties
|
75
79
|
end
|
76
80
|
|
@@ -78,9 +82,24 @@ module MergeHRISClient
|
|
78
82
|
# @return true if the model is valid
|
79
83
|
def valid?
|
80
84
|
return false if @name.nil?
|
85
|
+
return false if @name.to_s.length < 1
|
81
86
|
true
|
82
87
|
end
|
83
88
|
|
89
|
+
# Custom attribute writer method with validation
|
90
|
+
# @param [Object] name Value to be assigned
|
91
|
+
def name=(name)
|
92
|
+
if name.nil?
|
93
|
+
fail ArgumentError, 'name cannot be nil'
|
94
|
+
end
|
95
|
+
|
96
|
+
if name.to_s.length < 1
|
97
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
98
|
+
end
|
99
|
+
|
100
|
+
@name = name
|
101
|
+
end
|
102
|
+
|
84
103
|
# Checks equality by comparing each attribute.
|
85
104
|
# @param [Object] Object to be compared
|
86
105
|
def ==(o)
|
@@ -0,0 +1,35 @@
|
|
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 RequestFormatEnum
|
18
|
+
JSON = "JSON".freeze
|
19
|
+
XML = "XML".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
|
+
end
|
@@ -19,6 +19,8 @@ module MergeHRISClient
|
|
19
19
|
SICK = "SICK".freeze
|
20
20
|
PERSONAL = "PERSONAL".freeze
|
21
21
|
JURY_DUTY = "JURY_DUTY".freeze
|
22
|
+
VOLUNTEER = "VOLUNTEER".freeze
|
23
|
+
BEREAVEMENT = "BEREAVEMENT".freeze
|
22
24
|
|
23
25
|
# Builds the enum from string
|
24
26
|
# @param [String] The enum value in the form of the string
|
@@ -31,7 +33,6 @@ module MergeHRISClient
|
|
31
33
|
# @param [String] The enum value in the form of the string
|
32
34
|
# @return [String] The enum value
|
33
35
|
def build_from_hash(value)
|
34
|
-
constantValues = RequestTypeEnum.constants.select { |c| RequestTypeEnum::const_get(c) == value }
|
35
36
|
value
|
36
37
|
end
|
37
38
|
end
|
@@ -17,6 +17,8 @@ module MergeHRISClient
|
|
17
17
|
class SyncStatusStatusEnum
|
18
18
|
SYNCING = "SYNCING".freeze
|
19
19
|
DONE = "DONE".freeze
|
20
|
+
FAILED = "FAILED".freeze
|
21
|
+
DISABLED = "DISABLED".freeze
|
20
22
|
|
21
23
|
# Builds the enum from string
|
22
24
|
# @param [String] The enum value in the form of the string
|
@@ -24,12 +24,15 @@ module MergeHRISClient
|
|
24
24
|
# The employee the balance belongs to.
|
25
25
|
attr_accessor :employee
|
26
26
|
|
27
|
-
# The current PTO balance.
|
27
|
+
# The current PTO balance in terms of hours.
|
28
28
|
attr_accessor :balance
|
29
29
|
|
30
|
-
# The amount of PTO used.
|
30
|
+
# The amount of PTO used in terms of hours.
|
31
31
|
attr_accessor :used
|
32
32
|
|
33
|
+
# The policy type of this time off balance.
|
34
|
+
attr_accessor :policy_type
|
35
|
+
|
33
36
|
attr_accessor :remote_data
|
34
37
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -40,6 +43,7 @@ module MergeHRISClient
|
|
40
43
|
:'employee' => :'employee',
|
41
44
|
:'balance' => :'balance',
|
42
45
|
:'used' => :'used',
|
46
|
+
:'policy_type' => :'policy_type',
|
43
47
|
:'remote_data' => :'remote_data'
|
44
48
|
}
|
45
49
|
end
|
@@ -57,6 +61,7 @@ module MergeHRISClient
|
|
57
61
|
:'employee' => :'String',
|
58
62
|
:'balance' => :'Float',
|
59
63
|
:'used' => :'Float',
|
64
|
+
:'policy_type' => :'PolicyTypeEnum',
|
60
65
|
:'remote_data' => :'Array<RemoteData>'
|
61
66
|
}
|
62
67
|
end
|
@@ -68,6 +73,7 @@ module MergeHRISClient
|
|
68
73
|
:'employee',
|
69
74
|
:'balance',
|
70
75
|
:'used',
|
76
|
+
:'policy_type',
|
71
77
|
:'remote_data'
|
72
78
|
])
|
73
79
|
end
|
@@ -107,6 +113,10 @@ module MergeHRISClient
|
|
107
113
|
self.used = attributes[:'used']
|
108
114
|
end
|
109
115
|
|
116
|
+
if attributes.key?(:'policy_type')
|
117
|
+
self.policy_type = attributes[:'policy_type']
|
118
|
+
end
|
119
|
+
|
110
120
|
if attributes.key?(:'remote_data')
|
111
121
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
112
122
|
self.remote_data = value
|
@@ -137,6 +147,7 @@ module MergeHRISClient
|
|
137
147
|
employee == o.employee &&
|
138
148
|
balance == o.balance &&
|
139
149
|
used == o.used &&
|
150
|
+
policy_type == o.policy_type &&
|
140
151
|
remote_data == o.remote_data
|
141
152
|
end
|
142
153
|
|
@@ -149,7 +160,7 @@ module MergeHRISClient
|
|
149
160
|
# Calculates hash code according to all attributes.
|
150
161
|
# @return [Integer] Hash code
|
151
162
|
def hash
|
152
|
-
[id, remote_id, employee, balance, used, remote_data].hash
|
163
|
+
[id, remote_id, employee, balance, used, policy_type, remote_data].hash
|
153
164
|
end
|
154
165
|
|
155
166
|
# Builds the object from hash
|