merge_hris_client 2.0.1 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/BankInfo.md +3 -1
  4. data/docs/BankInfoApi.md +7 -3
  5. data/docs/Benefit.md +3 -1
  6. data/docs/BenefitsApi.md +2 -2
  7. data/docs/CompaniesApi.md +2 -2
  8. data/docs/Company.md +3 -1
  9. data/docs/DataPassthroughRequest.md +3 -1
  10. data/docs/Deduction.md +3 -1
  11. data/docs/DeductionsApi.md +2 -2
  12. data/docs/Earning.md +4 -2
  13. data/docs/Employee.md +3 -1
  14. data/docs/EmployeePayrollRun.md +3 -1
  15. data/docs/EmployeePayrollRunsApi.md +2 -2
  16. data/docs/EmployeesApi.md +15 -3
  17. data/docs/Employment.md +4 -2
  18. data/docs/EmploymentsApi.md +7 -3
  19. data/docs/EndUserDetailsRequest.md +1 -1
  20. data/docs/ForceResyncApi.md +4 -4
  21. data/docs/Group.md +3 -1
  22. data/docs/GroupsApi.md +7 -3
  23. data/docs/LinkedAccountsApi.md +14 -14
  24. data/docs/Location.md +4 -2
  25. data/docs/LocationsApi.md +7 -3
  26. data/docs/PayGroup.md +3 -1
  27. data/docs/PayGroupsApi.md +2 -2
  28. data/docs/PayrollRun.md +3 -1
  29. data/docs/PayrollRunsApi.md +7 -3
  30. data/docs/RemoteResponse.md +2 -0
  31. data/docs/Tax.md +4 -2
  32. data/docs/Team.md +3 -1
  33. data/docs/TeamsApi.md +2 -2
  34. data/docs/TimeOff.md +3 -1
  35. data/docs/TimeOffApi.md +7 -3
  36. data/docs/TimeOffBalance.md +3 -1
  37. data/docs/TimeOffBalancesApi.md +7 -3
  38. data/lib/merge_hris_client/api/bank_info_api.rb +16 -3
  39. data/lib/merge_hris_client/api/benefits_api.rb +2 -2
  40. data/lib/merge_hris_client/api/companies_api.rb +2 -2
  41. data/lib/merge_hris_client/api/deductions_api.rb +2 -2
  42. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
  43. data/lib/merge_hris_client/api/employees_api.rb +32 -2
  44. data/lib/merge_hris_client/api/employments_api.rb +16 -2
  45. data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
  46. data/lib/merge_hris_client/api/groups_api.rb +16 -2
  47. data/lib/merge_hris_client/api/linked_accounts_api.rb +14 -14
  48. data/lib/merge_hris_client/api/locations_api.rb +16 -2
  49. data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
  50. data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
  51. data/lib/merge_hris_client/api/teams_api.rb +2 -2
  52. data/lib/merge_hris_client/api/time_off_api.rb +16 -2
  53. data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
  54. data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
  55. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
  56. data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
  57. data/lib/merge_hris_client/models/bank_info.rb +15 -5
  58. data/lib/merge_hris_client/models/benefit.rb +15 -5
  59. data/lib/merge_hris_client/models/categories_enum.rb +2 -1
  60. data/lib/merge_hris_client/models/category_enum.rb +2 -1
  61. data/lib/merge_hris_client/models/company.rb +15 -5
  62. data/lib/merge_hris_client/models/country_enum.rb +0 -1
  63. data/lib/merge_hris_client/models/data_passthrough_request.rb +14 -5
  64. data/lib/merge_hris_client/models/deduction.rb +15 -5
  65. data/lib/merge_hris_client/models/earning.rb +18 -6
  66. data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
  67. data/lib/merge_hris_client/models/employee.rb +14 -5
  68. data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
  69. data/lib/merge_hris_client/models/employment.rb +15 -5
  70. data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
  71. data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
  72. data/lib/merge_hris_client/models/encoding_enum.rb +1 -1
  73. data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
  74. data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
  75. data/lib/merge_hris_client/models/gender_enum.rb +0 -1
  76. data/lib/merge_hris_client/models/group.rb +15 -5
  77. data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
  78. data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
  79. data/lib/merge_hris_client/models/location.rb +15 -5
  80. data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
  81. data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
  82. data/lib/merge_hris_client/models/method_enum.rb +0 -1
  83. data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
  84. data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
  85. data/lib/merge_hris_client/models/pay_group.rb +15 -5
  86. data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
  87. data/lib/merge_hris_client/models/payroll_run.rb +15 -5
  88. data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
  89. data/lib/merge_hris_client/models/reason_enum.rb +0 -1
  90. data/lib/merge_hris_client/models/remote_response.rb +13 -2
  91. data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
  92. data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
  93. data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
  94. data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
  95. data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
  96. data/lib/merge_hris_client/models/tax.rb +18 -6
  97. data/lib/merge_hris_client/models/team.rb +15 -5
  98. data/lib/merge_hris_client/models/time_off.rb +14 -5
  99. data/lib/merge_hris_client/models/time_off_balance.rb +15 -5
  100. data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
  101. data/lib/merge_hris_client/models/units_enum.rb +0 -1
  102. data/lib/merge_hris_client/version.rb +1 -1
  103. data/spec/api/bank_info_api_spec.rb +3 -1
  104. data/spec/api/benefits_api_spec.rb +1 -1
  105. data/spec/api/companies_api_spec.rb +1 -1
  106. data/spec/api/deductions_api_spec.rb +1 -1
  107. data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
  108. data/spec/api/employees_api_spec.rb +7 -1
  109. data/spec/api/employments_api_spec.rb +3 -1
  110. data/spec/api/force_resync_api_spec.rb +1 -1
  111. data/spec/api/groups_api_spec.rb +3 -1
  112. data/spec/api/linked_accounts_api_spec.rb +7 -7
  113. data/spec/api/locations_api_spec.rb +3 -1
  114. data/spec/api/pay_groups_api_spec.rb +1 -1
  115. data/spec/api/payroll_runs_api_spec.rb +3 -1
  116. data/spec/api/teams_api_spec.rb +1 -1
  117. data/spec/api/time_off_api_spec.rb +3 -1
  118. data/spec/api/time_off_balances_api_spec.rb +3 -1
  119. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  120. data/spec/models/bank_info_spec.rb +1 -1
  121. data/spec/models/benefit_spec.rb +1 -1
  122. data/spec/models/company_spec.rb +1 -1
  123. data/spec/models/data_passthrough_request_spec.rb +6 -0
  124. data/spec/models/deduction_spec.rb +1 -1
  125. data/spec/models/earning_spec.rb +1 -1
  126. data/spec/models/employee_payroll_run_spec.rb +1 -1
  127. data/spec/models/employee_spec.rb +2 -2
  128. data/spec/models/employment_spec.rb +1 -1
  129. data/spec/models/group_spec.rb +1 -1
  130. data/spec/models/linked_account_status_spec.rb +40 -0
  131. data/spec/models/location_spec.rb +1 -1
  132. data/spec/models/meta_response_spec.rb +52 -0
  133. data/spec/models/pay_group_spec.rb +1 -1
  134. data/spec/models/payroll_run_spec.rb +1 -1
  135. data/spec/models/remote_response_spec.rb +6 -0
  136. data/spec/models/tax_spec.rb +1 -1
  137. data/spec/models/team_spec.rb +1 -1
  138. data/spec/models/time_off_balance_spec.rb +1 -1
  139. data/spec/models/time_off_spec.rb +1 -1
  140. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  141. data/spec/models/webhook_receiver_spec.rb +46 -0
  142. metadata +105 -107
  143. data/docs/BenefitPlanTypeEnum.md +0 -15
  144. data/docs/TypeEnum.md +0 -15
  145. data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
  146. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
  147. data/lib/merge_hris_client/models/data_passthrough.rb +0 -262
  148. data/lib/merge_hris_client/models/end_user_details.rb +0 -289
  149. data/lib/merge_hris_client/models/remote_key_for_regeneration.rb +0 -224
  150. data/lib/merge_hris_client/models/state_enum.rb +0 -93
  151. data/lib/merge_hris_client/models/type_enum.rb +0 -38
  152. data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
  153. data/spec/models/type_enum_spec.rb +0 -28
@@ -1,224 +0,0 @@
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.0.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module MergeHRISClient
17
- # # The RemoteResponse Object ### Description The `RemoteResponse` object is used to represent information returned from a third-party endpoint. ### Usage Example View the `RemoteResponse` returned from your `DataPassthrough`.
18
- class RemoteKeyForRegeneration
19
- attr_accessor :name
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'name' => :'name'
25
- }
26
- end
27
-
28
- # Returns all the JSON keys this model knows about
29
- def self.acceptable_attributes
30
- attribute_map.values
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.openapi_types
35
- {
36
- :'name' => :'String'
37
- }
38
- end
39
-
40
- # List of attributes with nullable: true
41
- def self.openapi_nullable
42
- Set.new([
43
- ])
44
- end
45
-
46
- # Initializes the object
47
- # @param [Hash] attributes Model attributes in the form of hash
48
- def initialize(attributes = {})
49
- if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::RemoteKeyForRegeneration` initialize method"
51
- end
52
-
53
- # check to see if the attribute exists and convert string to symbol for hash key
54
- attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::RemoteKeyForRegeneration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
- end
58
- h[k.to_sym] = v
59
- }
60
-
61
- if attributes.key?(:'name')
62
- self.name = attributes[:'name']
63
- end
64
- end
65
-
66
- # Show invalid properties with the reasons. Usually used together with valid?
67
- # @return Array for valid properties with the reasons
68
- def list_invalid_properties
69
- invalid_properties = Array.new
70
- if @name.nil?
71
- invalid_properties.push('invalid value for "name", name cannot be nil.')
72
- end
73
-
74
- invalid_properties
75
- end
76
-
77
- # Check to see if the all the properties in the model are valid
78
- # @return true if the model is valid
79
- def valid?
80
- return false if @name.nil?
81
- true
82
- end
83
-
84
- # Checks equality by comparing each attribute.
85
- # @param [Object] Object to be compared
86
- def ==(o)
87
- return true if self.equal?(o)
88
- self.class == o.class &&
89
- name == o.name
90
- end
91
-
92
- # @see the `==` method
93
- # @param [Object] Object to be compared
94
- def eql?(o)
95
- self == o
96
- end
97
-
98
- # Calculates hash code according to all attributes.
99
- # @return [Integer] Hash code
100
- def hash
101
- [name].hash
102
- end
103
-
104
- # Builds the object from hash
105
- # @param [Hash] attributes Model attributes in the form of hash
106
- # @return [Object] Returns the model itself
107
- def self.build_from_hash(attributes)
108
- new.build_from_hash(attributes)
109
- end
110
-
111
- # Builds the object from hash
112
- # @param [Hash] attributes Model attributes in the form of hash
113
- # @return [Object] Returns the model itself
114
- def build_from_hash(attributes)
115
- return nil unless attributes.is_a?(Hash)
116
- self.class.openapi_types.each_pair do |key, type|
117
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
118
- self.send("#{key}=", nil)
119
- elsif type =~ /\AArray<(.*)>/i
120
- # check to ensure the input is an array given that the attribute
121
- # is documented as an array but the input is not
122
- if attributes[self.class.attribute_map[key]].is_a?(Array)
123
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
124
- end
125
- elsif !attributes[self.class.attribute_map[key]].nil?
126
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
127
- end
128
- end
129
-
130
- self
131
- end
132
-
133
- # Deserializes the data based on type
134
- # @param string type Data type
135
- # @param string value Value to be deserialized
136
- # @return [Object] Deserialized data
137
- def _deserialize(type, value)
138
- case type.to_sym
139
- when :Time
140
- Time.parse(value)
141
- when :Date
142
- Date.parse(value)
143
- when :String
144
- value.to_s
145
- when :Integer
146
- value.to_i
147
- when :Float
148
- value.to_f
149
- when :Boolean
150
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
- true
152
- else
153
- false
154
- end
155
- when :Object
156
- # generic object (usually a Hash), return directly
157
- value
158
- when /\AArray<(?<inner_type>.+)>\z/
159
- inner_type = Regexp.last_match[:inner_type]
160
- value.map { |v| _deserialize(inner_type, v) }
161
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
- k_type = Regexp.last_match[:k_type]
163
- v_type = Regexp.last_match[:v_type]
164
- {}.tap do |hash|
165
- value.each do |k, v|
166
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
- end
168
- end
169
- else # model
170
- # models (e.g. Pet) or oneOf
171
- klass = MergeHRISClient.const_get(type)
172
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
- end
174
- end
175
-
176
- # Returns the string representation of the object
177
- # @return [String] String presentation of the object
178
- def to_s
179
- to_hash.to_s
180
- end
181
-
182
- # to_body is an alias to to_hash (backward compatibility)
183
- # @return [Hash] Returns the object in the form of hash
184
- def to_body
185
- to_hash
186
- end
187
-
188
- # Returns the object in the form of hash
189
- # @return [Hash] Returns the object in the form of hash
190
- def to_hash
191
- hash = {}
192
- self.class.attribute_map.each_pair do |attr, param|
193
- value = self.send(attr)
194
- if value.nil?
195
- is_nullable = self.class.openapi_nullable.include?(attr)
196
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
197
- end
198
-
199
- hash[param] = _to_hash(value)
200
- end
201
- hash
202
- end
203
-
204
- # Outputs non-array value in the form of hash
205
- # For object, use to_hash. Otherwise, just return the value
206
- # @param [Object] value Any valid value
207
- # @return [Hash] Returns the value in the form of hash
208
- def _to_hash(value)
209
- if value.is_a?(Array)
210
- value.compact.map { |v| _to_hash(v) }
211
- elsif value.is_a?(Hash)
212
- {}.tap do |hash|
213
- value.each { |k, v| hash[k] = _to_hash(v) }
214
- end
215
- elsif value.respond_to? :to_hash
216
- value.to_hash
217
- else
218
- value
219
- end
220
- end
221
-
222
- end
223
-
224
- end
@@ -1,93 +0,0 @@
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.0.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module MergeHRISClient
17
- class StateEnum
18
- AL = "AL".freeze
19
- AK = "AK".freeze
20
- AS = "AS".freeze
21
- AZ = "AZ".freeze
22
- AR = "AR".freeze
23
- AA = "AA".freeze
24
- AE = "AE".freeze
25
- AP = "AP".freeze
26
- CA = "CA".freeze
27
- CO = "CO".freeze
28
- CT = "CT".freeze
29
- DE = "DE".freeze
30
- DC = "DC".freeze
31
- FL = "FL".freeze
32
- GA = "GA".freeze
33
- GU = "GU".freeze
34
- HI = "HI".freeze
35
- ID = "ID".freeze
36
- IL = "IL".freeze
37
- IN = "IN".freeze
38
- IA = "IA".freeze
39
- KS = "KS".freeze
40
- KY = "KY".freeze
41
- LA = "LA".freeze
42
- ME = "ME".freeze
43
- MD = "MD".freeze
44
- MA = "MA".freeze
45
- MI = "MI".freeze
46
- MN = "MN".freeze
47
- MS = "MS".freeze
48
- MO = "MO".freeze
49
- MT = "MT".freeze
50
- NE = "NE".freeze
51
- NV = "NV".freeze
52
- NH = "NH".freeze
53
- NJ = "NJ".freeze
54
- NM = "NM".freeze
55
- NY = "NY".freeze
56
- NC = "NC".freeze
57
- ND = "ND".freeze
58
- MP = "MP".freeze
59
- OH = "OH".freeze
60
- OK = "OK".freeze
61
- OR = "OR".freeze
62
- PA = "PA".freeze
63
- PR = "PR".freeze
64
- RI = "RI".freeze
65
- SC = "SC".freeze
66
- SD = "SD".freeze
67
- TN = "TN".freeze
68
- TX = "TX".freeze
69
- UT = "UT".freeze
70
- VT = "VT".freeze
71
- VI = "VI".freeze
72
- VA = "VA".freeze
73
- WA = "WA".freeze
74
- WV = "WV".freeze
75
- WI = "WI".freeze
76
- WY = "WY".freeze
77
-
78
- # Builds the enum from string
79
- # @param [String] The enum value in the form of the string
80
- # @return [String] The enum value
81
- def self.build_from_hash(value)
82
- new.build_from_hash(value)
83
- end
84
-
85
- # Builds the enum from string
86
- # @param [String] The enum value in the form of the string
87
- # @return [String] The enum value
88
- def build_from_hash(value)
89
- constantValues = StateEnum.constants.select { |c| StateEnum::const_get(c) == value }
90
- value
91
- end
92
- end
93
- end
@@ -1,38 +0,0 @@
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 TypeEnum
18
- SALARY = "SALARY".freeze
19
- REIMBURSEMENT = "REIMBURSEMENT".freeze
20
- OVERTIME = "OVERTIME".freeze
21
- BONUS = "BONUS".freeze
22
-
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
29
-
30
- # Builds the enum from string
31
- # @param [String] The enum value in the form of the string
32
- # @return [String] The enum value
33
- def build_from_hash(value)
34
- constantValues = TypeEnum.constants.select { |c| TypeEnum::const_get(c) == value }
35
- value
36
- end
37
- end
38
- end
@@ -1,28 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MergeHRISClient::BenefitPlanTypeEnum
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MergeHRISClient::BenefitPlanTypeEnum do
21
- let(:instance) { MergeHRISClient::BenefitPlanTypeEnum.new }
22
-
23
- describe 'test an instance of BenefitPlanTypeEnum' do
24
- it 'should create an instance of BenefitPlanTypeEnum' do
25
- expect(instance).to be_instance_of(MergeHRISClient::BenefitPlanTypeEnum)
26
- end
27
- end
28
- end
@@ -1,28 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MergeHRISClient::TypeEnum
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MergeHRISClient::TypeEnum do
21
- let(:instance) { MergeHRISClient::TypeEnum.new }
22
-
23
- describe 'test an instance of TypeEnum' do
24
- it 'should create an instance of TypeEnum' do
25
- expect(instance).to be_instance_of(MergeHRISClient::TypeEnum)
26
- end
27
- end
28
- end