merge_hris_client 3.1.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -13
  3. data/docs/AsyncPassthroughApi.md +155 -0
  4. data/docs/AsyncPassthroughReciept.md +18 -0
  5. data/docs/BankInfo.md +2 -2
  6. data/docs/BankInfoApi.md +2 -2
  7. data/docs/Benefit.md +9 -3
  8. data/docs/BenefitPlanTypeEnum.md +15 -0
  9. data/docs/Company.md +2 -2
  10. data/docs/Deduction.md +2 -2
  11. data/docs/DeleteAccountApi.md +9 -9
  12. data/docs/Dependent.md +50 -0
  13. data/docs/DependentsApi.md +181 -0
  14. data/docs/Earning.md +2 -2
  15. data/docs/Employee.md +2 -2
  16. data/docs/EmployeePayrollRun.md +2 -2
  17. data/docs/EmployerBenefit.md +36 -0
  18. data/docs/EmployerBenefitsApi.md +177 -0
  19. data/docs/Employment.md +2 -2
  20. data/docs/EmploymentsApi.md +2 -2
  21. data/docs/EndUserDetailsRequest.md +1 -1
  22. data/docs/Group.md +2 -2
  23. data/docs/LinkedAccountsApi.md +2 -2
  24. data/docs/Location.md +3 -3
  25. data/docs/PaginatedDependentList.md +22 -0
  26. data/docs/PaginatedEmployerBenefitList.md +22 -0
  27. data/docs/PayGroup.md +2 -2
  28. data/docs/PayrollRun.md +2 -2
  29. data/docs/RelationshipEnum.md +15 -0
  30. data/docs/RemoteData.md +1 -1
  31. data/docs/SyncStatusApi.md +1 -1
  32. data/docs/Tax.md +2 -2
  33. data/docs/Team.md +2 -2
  34. data/docs/TimeOff.md +2 -2
  35. data/docs/TimeOffBalance.md +2 -2
  36. data/lib/merge_hris_client/api/async_passthrough_api.rb +160 -0
  37. data/lib/merge_hris_client/api/bank_info_api.rb +2 -2
  38. data/lib/merge_hris_client/api/delete_account_api.rb +7 -7
  39. data/lib/merge_hris_client/api/dependents_api.rb +188 -0
  40. data/lib/merge_hris_client/api/employer_benefits_api.rb +182 -0
  41. data/lib/merge_hris_client/api/employments_api.rb +2 -2
  42. data/lib/merge_hris_client/api/linked_accounts_api.rb +2 -2
  43. data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
  44. data/lib/merge_hris_client/models/async_passthrough_reciept.rb +223 -0
  45. data/lib/merge_hris_client/models/bank_info.rb +10 -10
  46. data/lib/merge_hris_client/models/benefit.rb +42 -9
  47. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +48 -0
  48. data/lib/merge_hris_client/models/company.rb +10 -10
  49. data/lib/merge_hris_client/models/deduction.rb +10 -10
  50. data/lib/merge_hris_client/models/dependent.rb +470 -0
  51. data/lib/merge_hris_client/models/earning.rb +10 -10
  52. data/lib/merge_hris_client/models/employee.rb +10 -10
  53. data/lib/merge_hris_client/models/employee_payroll_run.rb +10 -10
  54. data/lib/merge_hris_client/models/employer_benefit.rb +363 -0
  55. data/lib/merge_hris_client/models/employment.rb +10 -10
  56. data/lib/merge_hris_client/models/end_user_details_request.rb +1 -1
  57. data/lib/merge_hris_client/models/group.rb +10 -10
  58. data/lib/merge_hris_client/models/location.rb +10 -10
  59. data/lib/merge_hris_client/models/paginated_dependent_list.rb +240 -0
  60. data/lib/merge_hris_client/models/paginated_employer_benefit_list.rb +240 -0
  61. data/lib/merge_hris_client/models/pay_group.rb +10 -10
  62. data/lib/merge_hris_client/models/payroll_run.rb +10 -10
  63. data/lib/merge_hris_client/models/relationship_enum.rb +46 -0
  64. data/lib/merge_hris_client/models/remote_data.rb +3 -4
  65. data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -1
  66. data/lib/merge_hris_client/models/tax.rb +10 -10
  67. data/lib/merge_hris_client/models/team.rb +10 -10
  68. data/lib/merge_hris_client/models/time_off.rb +10 -10
  69. data/lib/merge_hris_client/models/time_off_balance.rb +10 -10
  70. data/lib/merge_hris_client/version.rb +1 -1
  71. data/lib/merge_hris_client.rb +16 -2
  72. data/spec/api/async_passthrough_api_spec.rb +59 -0
  73. data/spec/api/bank_info_api_spec.rb +1 -1
  74. data/spec/api/delete_account_api_spec.rb +2 -2
  75. data/spec/api/dependents_api_spec.rb +70 -0
  76. data/spec/api/employer_benefits_api_spec.rb +68 -0
  77. data/spec/api/employments_api_spec.rb +1 -1
  78. data/spec/api/linked_accounts_api_spec.rb +1 -1
  79. data/spec/api/sync_status_api_spec.rb +1 -1
  80. data/spec/models/async_passthrough_reciept_spec.rb +34 -0
  81. data/spec/models/bank_info_spec.rb +2 -2
  82. data/spec/models/benefit_plan_type_enum_spec.rb +28 -0
  83. data/spec/models/benefit_spec.rb +19 -1
  84. data/spec/models/company_spec.rb +2 -2
  85. data/spec/models/deduction_spec.rb +2 -2
  86. data/spec/models/dependent_spec.rb +130 -0
  87. data/spec/models/earning_spec.rb +2 -2
  88. data/spec/models/employee_payroll_run_spec.rb +2 -2
  89. data/spec/models/employee_spec.rb +2 -2
  90. data/spec/models/employer_benefit_spec.rb +88 -0
  91. data/spec/models/employment_spec.rb +2 -2
  92. data/spec/models/group_spec.rb +2 -2
  93. data/spec/models/location_spec.rb +2 -2
  94. data/spec/models/paginated_dependent_list_spec.rb +46 -0
  95. data/spec/models/paginated_employer_benefit_list_spec.rb +46 -0
  96. data/spec/models/pay_group_spec.rb +2 -2
  97. data/spec/models/payroll_run_spec.rb +2 -2
  98. data/spec/models/relationship_enum_spec.rb +28 -0
  99. data/spec/models/tax_spec.rb +2 -2
  100. data/spec/models/team_spec.rb +2 -2
  101. data/spec/models/time_off_balance_spec.rb +2 -2
  102. data/spec/models/time_off_spec.rb +2 -2
  103. metadata +161 -121
@@ -39,11 +39,11 @@ module MergeHRISClient
39
39
  # Indicates whether or not this object has been deleted by third party webhooks.
40
40
  attr_accessor :remote_was_deleted
41
41
 
42
- attr_accessor :field_mappings
43
-
44
42
  # This is the datetime that this object was last updated by Merge
45
43
  attr_accessor :modified_at
46
44
 
45
+ attr_accessor :field_mappings
46
+
47
47
  attr_accessor :remote_data
48
48
 
49
49
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -57,8 +57,8 @@ module MergeHRISClient
57
57
  :'end_date' => :'end_date',
58
58
  :'check_date' => :'check_date',
59
59
  :'remote_was_deleted' => :'remote_was_deleted',
60
- :'field_mappings' => :'field_mappings',
61
60
  :'modified_at' => :'modified_at',
61
+ :'field_mappings' => :'field_mappings',
62
62
  :'remote_data' => :'remote_data'
63
63
  }
64
64
  end
@@ -79,8 +79,8 @@ module MergeHRISClient
79
79
  :'end_date' => :'Time',
80
80
  :'check_date' => :'Time',
81
81
  :'remote_was_deleted' => :'Boolean',
82
- :'field_mappings' => :'Hash<String, Object>',
83
82
  :'modified_at' => :'Time',
83
+ :'field_mappings' => :'Hash<String, Object>',
84
84
  :'remote_data' => :'Array<RemoteData>'
85
85
  }
86
86
  end
@@ -146,16 +146,16 @@ module MergeHRISClient
146
146
  self.remote_was_deleted = attributes[:'remote_was_deleted']
147
147
  end
148
148
 
149
+ if attributes.key?(:'modified_at')
150
+ self.modified_at = attributes[:'modified_at']
151
+ end
152
+
149
153
  if attributes.key?(:'field_mappings')
150
154
  if (value = attributes[:'field_mappings']).is_a?(Hash)
151
155
  self.field_mappings = value
152
156
  end
153
157
  end
154
158
 
155
- if attributes.key?(:'modified_at')
156
- self.modified_at = attributes[:'modified_at']
157
- end
158
-
159
159
  if attributes.key?(:'remote_data')
160
160
  if (value = attributes[:'remote_data']).is_a?(Array)
161
161
  self.remote_data = value
@@ -189,8 +189,8 @@ module MergeHRISClient
189
189
  end_date == o.end_date &&
190
190
  check_date == o.check_date &&
191
191
  remote_was_deleted == o.remote_was_deleted &&
192
- field_mappings == o.field_mappings &&
193
192
  modified_at == o.modified_at &&
193
+ field_mappings == o.field_mappings &&
194
194
  remote_data == o.remote_data
195
195
  end
196
196
 
@@ -203,7 +203,7 @@ module MergeHRISClient
203
203
  # Calculates hash code according to all attributes.
204
204
  # @return [Integer] Hash code
205
205
  def 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
206
+ [id, remote_id, run_state, run_type, start_date, end_date, check_date, remote_was_deleted, modified_at, field_mappings, remote_data].hash
207
207
  end
208
208
 
209
209
  # Builds the object from hash
@@ -0,0 +1,46 @@
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 RelationshipEnum
18
+ CHILD = "CHILD".freeze
19
+ SPOUSE = "SPOUSE".freeze
20
+ DOMESTIC_PARTNER = "DOMESTIC_PARTNER".freeze
21
+
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
30
+ def build_from_hash(value)
31
+ @raw_value = value
32
+ if ["CHILD", "SPOUSE", "DOMESTIC_PARTNER", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ RelationshipEnum.new.build_from_hash(value)
43
+ end
44
+ end
45
+
46
+ end
@@ -36,13 +36,14 @@ module MergeHRISClient
36
36
  def self.openapi_types
37
37
  {
38
38
  :'path' => :'String',
39
- :'data' => :'Hash<String, Object>'
39
+ :'data' => :'Object'
40
40
  }
41
41
  end
42
42
 
43
43
  # List of attributes with nullable: true
44
44
  def self.openapi_nullable
45
45
  Set.new([
46
+ :'data'
46
47
  ])
47
48
  end
48
49
 
@@ -66,9 +67,7 @@ module MergeHRISClient
66
67
  end
67
68
 
68
69
  if attributes.key?(:'data')
69
- if (value = attributes[:'data']).is_a?(Hash)
70
- self.data = value
71
- end
70
+ self.data = attributes[:'data']
72
71
  end
73
72
  end
74
73
 
@@ -20,6 +20,7 @@ module MergeHRISClient
20
20
  FAILED = "FAILED".freeze
21
21
  DISABLED = "DISABLED".freeze
22
22
  PAUSED = "PAUSED".freeze
23
+ PARTIALLY_SYNCED = "PARTIALLY_SYNCED".freeze
23
24
 
24
25
  MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
26
 
@@ -31,7 +32,7 @@ module MergeHRISClient
31
32
  # @return [String] The enum value
32
33
  def build_from_hash(value)
33
34
  @raw_value = value
34
- if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", ].include? value
35
+ if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED", ].include? value
35
36
  @value = value
36
37
  else
37
38
  @value = MERGE_NONSTANDARD_VALUE
@@ -35,11 +35,11 @@ module MergeHRISClient
35
35
  # Indicates whether or not this object has been deleted by third party webhooks.
36
36
  attr_accessor :remote_was_deleted
37
37
 
38
- attr_accessor :field_mappings
39
-
40
38
  # This is the datetime that this object was last updated by Merge
41
39
  attr_accessor :modified_at
42
40
 
41
+ attr_accessor :field_mappings
42
+
43
43
  attr_accessor :remote_data
44
44
 
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -52,8 +52,8 @@ module MergeHRISClient
52
52
  :'amount' => :'amount',
53
53
  :'employer_tax' => :'employer_tax',
54
54
  :'remote_was_deleted' => :'remote_was_deleted',
55
- :'field_mappings' => :'field_mappings',
56
55
  :'modified_at' => :'modified_at',
56
+ :'field_mappings' => :'field_mappings',
57
57
  :'remote_data' => :'remote_data'
58
58
  }
59
59
  end
@@ -73,8 +73,8 @@ module MergeHRISClient
73
73
  :'amount' => :'Float',
74
74
  :'employer_tax' => :'Boolean',
75
75
  :'remote_was_deleted' => :'Boolean',
76
- :'field_mappings' => :'Hash<String, Object>',
77
76
  :'modified_at' => :'Time',
77
+ :'field_mappings' => :'Hash<String, Object>',
78
78
  :'remote_data' => :'Array<RemoteData>'
79
79
  }
80
80
  end
@@ -135,16 +135,16 @@ module MergeHRISClient
135
135
  self.remote_was_deleted = attributes[:'remote_was_deleted']
136
136
  end
137
137
 
138
+ if attributes.key?(:'modified_at')
139
+ self.modified_at = attributes[:'modified_at']
140
+ end
141
+
138
142
  if attributes.key?(:'field_mappings')
139
143
  if (value = attributes[:'field_mappings']).is_a?(Hash)
140
144
  self.field_mappings = value
141
145
  end
142
146
  end
143
147
 
144
- if attributes.key?(:'modified_at')
145
- self.modified_at = attributes[:'modified_at']
146
- end
147
-
148
148
  if attributes.key?(:'remote_data')
149
149
  if (value = attributes[:'remote_data']).is_a?(Array)
150
150
  self.remote_data = value
@@ -177,8 +177,8 @@ module MergeHRISClient
177
177
  amount == o.amount &&
178
178
  employer_tax == o.employer_tax &&
179
179
  remote_was_deleted == o.remote_was_deleted &&
180
- field_mappings == o.field_mappings &&
181
180
  modified_at == o.modified_at &&
181
+ field_mappings == o.field_mappings &&
182
182
  remote_data == o.remote_data
183
183
  end
184
184
 
@@ -191,7 +191,7 @@ module MergeHRISClient
191
191
  # Calculates hash code according to all attributes.
192
192
  # @return [Integer] Hash code
193
193
  def hash
194
- [id, remote_id, employee_payroll_run, name, amount, employer_tax, remote_was_deleted, field_mappings, modified_at, remote_data].hash
194
+ [id, remote_id, employee_payroll_run, name, amount, employer_tax, remote_was_deleted, modified_at, field_mappings, remote_data].hash
195
195
  end
196
196
 
197
197
  # Builds the object from hash
@@ -30,11 +30,11 @@ module MergeHRISClient
30
30
  # Indicates whether or not this object has been deleted by third party webhooks.
31
31
  attr_accessor :remote_was_deleted
32
32
 
33
- attr_accessor :field_mappings
34
-
35
33
  # This is the datetime that this object was last updated by Merge
36
34
  attr_accessor :modified_at
37
35
 
36
+ attr_accessor :field_mappings
37
+
38
38
  attr_accessor :remote_data
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,8 +45,8 @@ module MergeHRISClient
45
45
  :'name' => :'name',
46
46
  :'parent_team' => :'parent_team',
47
47
  :'remote_was_deleted' => :'remote_was_deleted',
48
- :'field_mappings' => :'field_mappings',
49
48
  :'modified_at' => :'modified_at',
49
+ :'field_mappings' => :'field_mappings',
50
50
  :'remote_data' => :'remote_data'
51
51
  }
52
52
  end
@@ -64,8 +64,8 @@ module MergeHRISClient
64
64
  :'name' => :'String',
65
65
  :'parent_team' => :'String',
66
66
  :'remote_was_deleted' => :'Boolean',
67
- :'field_mappings' => :'Hash<String, Object>',
68
67
  :'modified_at' => :'Time',
68
+ :'field_mappings' => :'Hash<String, Object>',
69
69
  :'remote_data' => :'Array<RemoteData>'
70
70
  }
71
71
  end
@@ -116,16 +116,16 @@ module MergeHRISClient
116
116
  self.remote_was_deleted = attributes[:'remote_was_deleted']
117
117
  end
118
118
 
119
+ if attributes.key?(:'modified_at')
120
+ self.modified_at = attributes[:'modified_at']
121
+ end
122
+
119
123
  if attributes.key?(:'field_mappings')
120
124
  if (value = attributes[:'field_mappings']).is_a?(Hash)
121
125
  self.field_mappings = value
122
126
  end
123
127
  end
124
128
 
125
- if attributes.key?(:'modified_at')
126
- self.modified_at = attributes[:'modified_at']
127
- end
128
-
129
129
  if attributes.key?(:'remote_data')
130
130
  if (value = attributes[:'remote_data']).is_a?(Array)
131
131
  self.remote_data = value
@@ -156,8 +156,8 @@ module MergeHRISClient
156
156
  name == o.name &&
157
157
  parent_team == o.parent_team &&
158
158
  remote_was_deleted == o.remote_was_deleted &&
159
- field_mappings == o.field_mappings &&
160
159
  modified_at == o.modified_at &&
160
+ field_mappings == o.field_mappings &&
161
161
  remote_data == o.remote_data
162
162
  end
163
163
 
@@ -170,7 +170,7 @@ module MergeHRISClient
170
170
  # Calculates hash code according to all attributes.
171
171
  # @return [Integer] Hash code
172
172
  def hash
173
- [id, remote_id, name, parent_team, remote_was_deleted, field_mappings, modified_at, remote_data].hash
173
+ [id, remote_id, name, parent_team, remote_was_deleted, modified_at, field_mappings, remote_data].hash
174
174
  end
175
175
 
176
176
  # Builds the object from hash
@@ -50,11 +50,11 @@ module MergeHRISClient
50
50
 
51
51
  attr_accessor :remote_was_deleted
52
52
 
53
- attr_accessor :field_mappings
54
-
55
53
  # This is the datetime that this object was last updated by Merge
56
54
  attr_accessor :modified_at
57
55
 
56
+ attr_accessor :field_mappings
57
+
58
58
  attr_accessor :remote_data
59
59
 
60
60
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -72,8 +72,8 @@ module MergeHRISClient
72
72
  :'start_time' => :'start_time',
73
73
  :'end_time' => :'end_time',
74
74
  :'remote_was_deleted' => :'remote_was_deleted',
75
- :'field_mappings' => :'field_mappings',
76
75
  :'modified_at' => :'modified_at',
76
+ :'field_mappings' => :'field_mappings',
77
77
  :'remote_data' => :'remote_data'
78
78
  }
79
79
  end
@@ -98,8 +98,8 @@ module MergeHRISClient
98
98
  :'start_time' => :'Time',
99
99
  :'end_time' => :'Time',
100
100
  :'remote_was_deleted' => :'Boolean',
101
- :'field_mappings' => :'Hash<String, Object>',
102
101
  :'modified_at' => :'Time',
102
+ :'field_mappings' => :'Hash<String, Object>',
103
103
  :'remote_data' => :'Array<RemoteData>'
104
104
  }
105
105
  end
@@ -185,16 +185,16 @@ module MergeHRISClient
185
185
  self.remote_was_deleted = attributes[:'remote_was_deleted']
186
186
  end
187
187
 
188
+ if attributes.key?(:'modified_at')
189
+ self.modified_at = attributes[:'modified_at']
190
+ end
191
+
188
192
  if attributes.key?(:'field_mappings')
189
193
  if (value = attributes[:'field_mappings']).is_a?(Hash)
190
194
  self.field_mappings = value
191
195
  end
192
196
  end
193
197
 
194
- if attributes.key?(:'modified_at')
195
- self.modified_at = attributes[:'modified_at']
196
- end
197
-
198
198
  if attributes.key?(:'remote_data')
199
199
  if (value = attributes[:'remote_data']).is_a?(Array)
200
200
  self.remote_data = value
@@ -232,8 +232,8 @@ module MergeHRISClient
232
232
  start_time == o.start_time &&
233
233
  end_time == o.end_time &&
234
234
  remote_was_deleted == o.remote_was_deleted &&
235
- field_mappings == o.field_mappings &&
236
235
  modified_at == o.modified_at &&
236
+ field_mappings == o.field_mappings &&
237
237
  remote_data == o.remote_data
238
238
  end
239
239
 
@@ -246,7 +246,7 @@ module MergeHRISClient
246
246
  # Calculates hash code according to all attributes.
247
247
  # @return [Integer] Hash code
248
248
  def hash
249
- [id, remote_id, employee, approver, status, employee_note, units, amount, request_type, start_time, end_time, remote_was_deleted, field_mappings, modified_at, remote_data].hash
249
+ [id, remote_id, employee, approver, status, employee_note, units, amount, request_type, start_time, end_time, remote_was_deleted, modified_at, field_mappings, remote_data].hash
250
250
  end
251
251
 
252
252
  # Builds the object from hash
@@ -36,11 +36,11 @@ module MergeHRISClient
36
36
  # Indicates whether or not this object has been deleted by third party webhooks.
37
37
  attr_accessor :remote_was_deleted
38
38
 
39
- attr_accessor :field_mappings
40
-
41
39
  # This is the datetime that this object was last updated by Merge
42
40
  attr_accessor :modified_at
43
41
 
42
+ attr_accessor :field_mappings
43
+
44
44
  attr_accessor :remote_data
45
45
 
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -53,8 +53,8 @@ module MergeHRISClient
53
53
  :'used' => :'used',
54
54
  :'policy_type' => :'policy_type',
55
55
  :'remote_was_deleted' => :'remote_was_deleted',
56
- :'field_mappings' => :'field_mappings',
57
56
  :'modified_at' => :'modified_at',
57
+ :'field_mappings' => :'field_mappings',
58
58
  :'remote_data' => :'remote_data'
59
59
  }
60
60
  end
@@ -74,8 +74,8 @@ module MergeHRISClient
74
74
  :'used' => :'Float',
75
75
  :'policy_type' => :'PolicyTypeEnum',
76
76
  :'remote_was_deleted' => :'Boolean',
77
- :'field_mappings' => :'Hash<String, Object>',
78
77
  :'modified_at' => :'Time',
78
+ :'field_mappings' => :'Hash<String, Object>',
79
79
  :'remote_data' => :'Array<RemoteData>'
80
80
  }
81
81
  end
@@ -136,16 +136,16 @@ module MergeHRISClient
136
136
  self.remote_was_deleted = attributes[:'remote_was_deleted']
137
137
  end
138
138
 
139
+ if attributes.key?(:'modified_at')
140
+ self.modified_at = attributes[:'modified_at']
141
+ end
142
+
139
143
  if attributes.key?(:'field_mappings')
140
144
  if (value = attributes[:'field_mappings']).is_a?(Hash)
141
145
  self.field_mappings = value
142
146
  end
143
147
  end
144
148
 
145
- if attributes.key?(:'modified_at')
146
- self.modified_at = attributes[:'modified_at']
147
- end
148
-
149
149
  if attributes.key?(:'remote_data')
150
150
  if (value = attributes[:'remote_data']).is_a?(Array)
151
151
  self.remote_data = value
@@ -178,8 +178,8 @@ module MergeHRISClient
178
178
  used == o.used &&
179
179
  policy_type == o.policy_type &&
180
180
  remote_was_deleted == o.remote_was_deleted &&
181
- field_mappings == o.field_mappings &&
182
181
  modified_at == o.modified_at &&
182
+ field_mappings == o.field_mappings &&
183
183
  remote_data == o.remote_data
184
184
  end
185
185
 
@@ -192,7 +192,7 @@ module MergeHRISClient
192
192
  # Calculates hash code according to all attributes.
193
193
  # @return [Integer] Hash code
194
194
  def hash
195
- [id, remote_id, employee, balance, used, policy_type, remote_was_deleted, field_mappings, modified_at, remote_data].hash
195
+ [id, remote_id, employee, balance, used, policy_type, remote_was_deleted, modified_at, field_mappings, remote_data].hash
196
196
  end
197
197
 
198
198
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeHRISClient
14
- VERSION = '3.1.0'
14
+ VERSION = '3.2.1'
15
15
  end
@@ -24,18 +24,20 @@ require 'merge_hris_client/models/account_details_and_actions_status_enum'
24
24
  require 'merge_hris_client/models/account_integration'
25
25
  require 'merge_hris_client/models/account_token'
26
26
  require 'merge_hris_client/models/account_type_enum'
27
+ require 'merge_hris_client/models/async_passthrough_reciept'
27
28
  require 'merge_hris_client/models/available_actions'
28
29
  require 'merge_hris_client/models/bank_info'
29
30
  require 'merge_hris_client/models/benefit'
31
+ require 'merge_hris_client/models/benefit_plan_type_enum'
30
32
  require 'merge_hris_client/models/categories_enum'
31
33
  require 'merge_hris_client/models/category_enum'
32
34
  require 'merge_hris_client/models/common_model_scope_data'
33
- require 'merge_hris_client/models/common_model_scopes'
34
35
  require 'merge_hris_client/models/common_model_scopes_body_request'
35
- require 'merge_hris_client/models/common_model_scopes_disabled_models'
36
36
  require 'merge_hris_client/models/common_model_scopes_disabled_models_enabled_actions_enum'
37
+ require 'merge_hris_client/models/common_model_scopes_disabled_models'
37
38
  require 'merge_hris_client/models/common_model_scopes_post_inner_deserializer_request'
38
39
  require 'merge_hris_client/models/common_model_scopes_update_serializer'
40
+ require 'merge_hris_client/models/common_model_scopes'
39
41
  require 'merge_hris_client/models/company'
40
42
  require 'merge_hris_client/models/condition_schema'
41
43
  require 'merge_hris_client/models/condition_type_enum'
@@ -44,6 +46,7 @@ require 'merge_hris_client/models/data_passthrough_request'
44
46
  require 'merge_hris_client/models/debug_mode_log'
45
47
  require 'merge_hris_client/models/debug_model_log_summary'
46
48
  require 'merge_hris_client/models/deduction'
49
+ require 'merge_hris_client/models/dependent'
47
50
  require 'merge_hris_client/models/earning'
48
51
  require 'merge_hris_client/models/earning_type_enum'
49
52
  require 'merge_hris_client/models/employee'
@@ -51,6 +54,7 @@ require 'merge_hris_client/models/employee_endpoint_request'
51
54
  require 'merge_hris_client/models/employee_payroll_run'
52
55
  require 'merge_hris_client/models/employee_request'
53
56
  require 'merge_hris_client/models/employee_response'
57
+ require 'merge_hris_client/models/employer_benefit'
54
58
  require 'merge_hris_client/models/employment'
55
59
  require 'merge_hris_client/models/employment_status_enum'
56
60
  require 'merge_hris_client/models/employment_type_enum'
@@ -64,6 +68,7 @@ require 'merge_hris_client/models/gender_enum'
64
68
  require 'merge_hris_client/models/generate_remote_key_request'
65
69
  require 'merge_hris_client/models/group'
66
70
  require 'merge_hris_client/models/group_type_enum'
71
+ require 'merge_hris_client/models/ignore_common_model'
67
72
  require 'merge_hris_client/models/ignore_common_model_request'
68
73
  require 'merge_hris_client/models/issue'
69
74
  require 'merge_hris_client/models/issue_status_enum'
@@ -87,8 +92,11 @@ require 'merge_hris_client/models/paginated_bank_info_list'
87
92
  require 'merge_hris_client/models/paginated_benefit_list'
88
93
  require 'merge_hris_client/models/paginated_company_list'
89
94
  require 'merge_hris_client/models/paginated_condition_schema_list'
95
+ require 'merge_hris_client/models/paginated_deduction_list'
96
+ require 'merge_hris_client/models/paginated_dependent_list'
90
97
  require 'merge_hris_client/models/paginated_employee_list'
91
98
  require 'merge_hris_client/models/paginated_employee_payroll_run_list'
99
+ require 'merge_hris_client/models/paginated_employer_benefit_list'
92
100
  require 'merge_hris_client/models/paginated_employment_list'
93
101
  require 'merge_hris_client/models/paginated_group_list'
94
102
  require 'merge_hris_client/models/paginated_issue_list'
@@ -106,7 +114,9 @@ require 'merge_hris_client/models/pay_period_enum'
106
114
  require 'merge_hris_client/models/payroll_run'
107
115
  require 'merge_hris_client/models/policy_type_enum'
108
116
  require 'merge_hris_client/models/reason_enum'
117
+ require 'merge_hris_client/models/relationship_enum'
109
118
  require 'merge_hris_client/models/remote_data'
119
+ require 'merge_hris_client/models/remote_data_request'
110
120
  require 'merge_hris_client/models/remote_key'
111
121
  require 'merge_hris_client/models/remote_key_for_regeneration_request'
112
122
  require 'merge_hris_client/models/remote_response'
@@ -135,14 +145,18 @@ require 'merge_hris_client/models/webhook_receiver_request'
135
145
  # APIs
136
146
  require 'merge_hris_client/api/account_details_api'
137
147
  require 'merge_hris_client/api/account_token_api'
148
+ require 'merge_hris_client/api/async_passthrough_api'
138
149
  require 'merge_hris_client/api/available_actions_api'
139
150
  require 'merge_hris_client/api/bank_info_api'
140
151
  require 'merge_hris_client/api/benefits_api'
141
152
  require 'merge_hris_client/api/common_model_scopes_api'
142
153
  require 'merge_hris_client/api/companies_api'
154
+ require 'merge_hris_client/api/deductions_api'
143
155
  require 'merge_hris_client/api/delete_account_api'
156
+ require 'merge_hris_client/api/dependents_api'
144
157
  require 'merge_hris_client/api/employee_payroll_runs_api'
145
158
  require 'merge_hris_client/api/employees_api'
159
+ require 'merge_hris_client/api/employer_benefits_api'
146
160
  require 'merge_hris_client/api/employments_api'
147
161
  require 'merge_hris_client/api/force_resync_api'
148
162
  require 'merge_hris_client/api/generate_key_api'
@@ -0,0 +1,59 @@
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
+
16
+ # Unit tests for MergeHRISClient::AsyncPassthroughApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'AsyncPassthroughApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeHRISClient::AsyncPassthroughApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AsyncPassthroughApi' do
30
+ it 'should create an instance of AsyncPassthroughApi' do
31
+ expect(@api_instance).to be_instance_of(MergeHRISClient::AsyncPassthroughApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for async_passthrough_create
36
+ # Asynchronously pull data from an endpoint not currently supported by Merge.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param data_passthrough_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [AsyncPassthroughReciept]
41
+ describe 'async_passthrough_create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for async_passthrough_retrieve
48
+ # Retrieves data from earlier async-passthrough POST request
49
+ # @param x_account_token Token identifying the end user.
50
+ # @param async_passthrough_receipt_id
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [RemoteResponse]
53
+ describe 'async_passthrough_retrieve test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
@@ -47,7 +47,7 @@ describe 'BankInfoApi' do
47
47
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
48
48
  # @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
49
49
  # @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
50
- # @option opts [String] :order_by Overrides the default ordering for this endpoint.
50
+ # @option opts [String] :order_by Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at.
51
51
  # @option opts [Integer] :page_size Number of results to return per page.
52
52
  # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
53
53
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
@@ -32,12 +32,12 @@ describe 'DeleteAccountApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for delete_account_create
35
+ # unit tests for delete_account_delete
36
36
  # Delete a linked account.
37
37
  # @param x_account_token Token identifying the end user.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [nil]
40
- describe 'delete_account_create test' do
40
+ describe 'delete_account_delete test' do
41
41
  it 'should work' do
42
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
43
  end