merge_hris_client 2.0.0 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -5
  3. data/docs/AccountDetails.md +5 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/AccountDetailsApi.md +8 -5
  6. data/docs/BankInfo.md +3 -1
  7. data/docs/Benefit.md +3 -1
  8. data/docs/Company.md +5 -3
  9. data/docs/DataPassthroughRequest.md +1 -1
  10. data/docs/Deduction.md +3 -1
  11. data/docs/Earning.md +4 -2
  12. data/docs/Employee.md +11 -9
  13. data/docs/EmployeePayrollRun.md +3 -1
  14. data/docs/EmployeeRequest.md +8 -8
  15. data/docs/EmployeesApi.md +86 -4
  16. data/docs/Employment.md +8 -4
  17. data/docs/EndUserDetailsRequest.md +3 -3
  18. data/docs/ForceResyncApi.md +4 -4
  19. data/docs/Group.md +3 -1
  20. data/docs/IssuesApi.md +8 -0
  21. data/docs/LinkTokenApi.md +1 -1
  22. data/docs/LinkedAccountStatus.md +20 -0
  23. data/docs/LinkedAccountsApi.md +14 -14
  24. data/docs/Location.md +5 -3
  25. data/docs/MetaResponse.md +24 -0
  26. data/docs/PayGroup.md +3 -1
  27. data/docs/PayrollRun.md +3 -1
  28. data/docs/Tax.md +4 -2
  29. data/docs/Team.md +3 -1
  30. data/docs/TimeOff.md +5 -3
  31. data/docs/TimeOffApi.md +72 -0
  32. data/docs/TimeOffBalance.md +4 -2
  33. data/docs/TimeOffRequest.md +2 -2
  34. data/docs/WebhookReceiver.md +22 -0
  35. data/docs/WebhookReceiverRequest.md +22 -0
  36. data/docs/WebhookReceiversApi.md +153 -0
  37. data/lib/merge_hris_client/api/account_details_api.rb +10 -3
  38. data/lib/merge_hris_client/api/bank_info_api.rb +0 -1
  39. data/lib/merge_hris_client/api/employees_api.rb +88 -3
  40. data/lib/merge_hris_client/api/employments_api.rb +2 -2
  41. data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
  42. data/lib/merge_hris_client/api/issues_api.rb +12 -0
  43. data/lib/merge_hris_client/api/linked_accounts_api.rb +15 -15
  44. data/lib/merge_hris_client/api/time_off_api.rb +62 -0
  45. data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
  46. data/lib/merge_hris_client/models/account_details.rb +22 -4
  47. data/lib/merge_hris_client/models/account_details_and_actions.rb +15 -1
  48. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
  49. data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
  50. data/lib/merge_hris_client/models/bank_info.rb +15 -5
  51. data/lib/merge_hris_client/models/benefit.rb +15 -5
  52. data/lib/merge_hris_client/models/categories_enum.rb +2 -1
  53. data/lib/merge_hris_client/models/category_enum.rb +2 -1
  54. data/lib/merge_hris_client/models/company.rb +16 -6
  55. data/lib/merge_hris_client/models/country_enum.rb +0 -1
  56. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
  57. data/lib/merge_hris_client/models/deduction.rb +15 -5
  58. data/lib/merge_hris_client/models/earning.rb +18 -5
  59. data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
  60. data/lib/merge_hris_client/models/employee.rb +15 -6
  61. data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
  62. data/lib/merge_hris_client/models/employee_request.rb +1 -1
  63. data/lib/merge_hris_client/models/employment.rb +26 -6
  64. data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
  65. data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
  66. data/lib/merge_hris_client/models/encoding_enum.rb +0 -1
  67. data/lib/merge_hris_client/models/end_user_details_request.rb +34 -0
  68. data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
  69. data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
  70. data/lib/merge_hris_client/models/gender_enum.rb +0 -1
  71. data/lib/merge_hris_client/models/group.rb +16 -6
  72. data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
  73. data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
  74. data/lib/merge_hris_client/models/{data_passthrough.rb → linked_account_status.rb} +24 -49
  75. data/lib/merge_hris_client/models/location.rb +16 -6
  76. data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
  77. data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
  78. data/lib/merge_hris_client/models/meta_response.rb +262 -0
  79. data/lib/merge_hris_client/models/method_enum.rb +0 -1
  80. data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
  81. data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
  82. data/lib/merge_hris_client/models/pay_group.rb +15 -5
  83. data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
  84. data/lib/merge_hris_client/models/payroll_run.rb +16 -6
  85. data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
  86. data/lib/merge_hris_client/models/reason_enum.rb +0 -1
  87. data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
  88. data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
  89. data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
  90. data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
  91. data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
  92. data/lib/merge_hris_client/models/tax.rb +18 -5
  93. data/lib/merge_hris_client/models/team.rb +15 -5
  94. data/lib/merge_hris_client/models/time_off.rb +14 -5
  95. data/lib/merge_hris_client/models/time_off_balance.rb +16 -6
  96. data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
  97. data/lib/merge_hris_client/models/units_enum.rb +0 -1
  98. data/lib/merge_hris_client/models/{remote_key_for_regeneration.rb → webhook_receiver.rb} +38 -16
  99. data/lib/merge_hris_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
  100. data/lib/merge_hris_client/version.rb +1 -1
  101. data/lib/merge_hris_client.rb +5 -0
  102. data/spec/api/account_details_api_spec.rb +1 -0
  103. data/spec/api/employees_api_spec.rb +16 -0
  104. data/spec/api/force_resync_api_spec.rb +1 -1
  105. data/spec/api/issues_api_spec.rb +4 -0
  106. data/spec/api/linked_accounts_api_spec.rb +7 -7
  107. data/spec/api/time_off_api_spec.rb +11 -0
  108. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  109. data/spec/models/account_details_and_actions_spec.rb +6 -0
  110. data/spec/models/account_details_spec.rb +12 -0
  111. data/spec/models/bank_info_spec.rb +6 -0
  112. data/spec/models/benefit_spec.rb +6 -0
  113. data/spec/models/company_spec.rb +6 -0
  114. data/spec/models/deduction_spec.rb +6 -0
  115. data/spec/models/earning_spec.rb +6 -0
  116. data/spec/models/employee_payroll_run_spec.rb +6 -0
  117. data/spec/models/employee_spec.rb +6 -0
  118. data/spec/models/employment_spec.rb +12 -0
  119. data/spec/models/group_spec.rb +6 -0
  120. data/spec/models/linked_account_status_spec.rb +40 -0
  121. data/spec/models/location_spec.rb +6 -0
  122. data/spec/models/meta_response_spec.rb +52 -0
  123. data/spec/models/pay_group_spec.rb +6 -0
  124. data/spec/models/payroll_run_spec.rb +6 -0
  125. data/spec/models/tax_spec.rb +6 -0
  126. data/spec/models/team_spec.rb +6 -0
  127. data/spec/models/time_off_balance_spec.rb +6 -0
  128. data/spec/models/time_off_spec.rb +6 -0
  129. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  130. data/spec/models/webhook_receiver_spec.rb +46 -0
  131. metadata +118 -112
  132. data/docs/BenefitPlanTypeEnum.md +0 -15
  133. data/docs/TypeEnum.md +0 -15
  134. data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
  135. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
  136. data/lib/merge_hris_client/models/state_enum.rb +0 -93
  137. data/lib/merge_hris_client/models/type_enum.rb +0 -38
  138. data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
  139. data/spec/models/type_enum_spec.rb +0 -28
  140. data/test_ruby.rb +0 -30
@@ -48,6 +48,9 @@ module MergeHRISClient
48
48
 
49
49
  attr_accessor :remote_data
50
50
 
51
+ # Indicates whether or not this object has been deleted on the third-party.
52
+ attr_accessor :remote_was_deleted
53
+
51
54
  # Attribute mapping from ruby-style variable name to JSON key.
52
55
  def self.attribute_map
53
56
  {
@@ -63,7 +66,8 @@ module MergeHRISClient
63
66
  :'earnings' => :'earnings',
64
67
  :'deductions' => :'deductions',
65
68
  :'taxes' => :'taxes',
66
- :'remote_data' => :'remote_data'
69
+ :'remote_data' => :'remote_data',
70
+ :'remote_was_deleted' => :'remote_was_deleted'
67
71
  }
68
72
  end
69
73
 
@@ -87,7 +91,8 @@ module MergeHRISClient
87
91
  :'earnings' => :'Array<Earning>',
88
92
  :'deductions' => :'Array<Deduction>',
89
93
  :'taxes' => :'Array<Tax>',
90
- :'remote_data' => :'Array<RemoteData>'
94
+ :'remote_data' => :'Array<RemoteData>',
95
+ :'remote_was_deleted' => :'Boolean'
91
96
  }
92
97
  end
93
98
 
@@ -102,7 +107,7 @@ module MergeHRISClient
102
107
  :'start_date',
103
108
  :'end_date',
104
109
  :'check_date',
105
- :'remote_data'
110
+ :'remote_data',
106
111
  ])
107
112
  end
108
113
 
@@ -180,6 +185,10 @@ module MergeHRISClient
180
185
  self.remote_data = value
181
186
  end
182
187
  end
188
+
189
+ if attributes.key?(:'remote_was_deleted')
190
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
191
+ end
183
192
  end
184
193
 
185
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -212,7 +221,8 @@ module MergeHRISClient
212
221
  earnings == o.earnings &&
213
222
  deductions == o.deductions &&
214
223
  taxes == o.taxes &&
215
- remote_data == o.remote_data
224
+ remote_data == o.remote_data &&
225
+ remote_was_deleted == o.remote_was_deleted
216
226
  end
217
227
 
218
228
  # @see the `==` method
@@ -224,7 +234,7 @@ module MergeHRISClient
224
234
  # Calculates hash code according to all attributes.
225
235
  # @return [Integer] Hash code
226
236
  def hash
227
- [id, remote_id, employee, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes, remote_data].hash
237
+ [id, remote_id, employee, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes, remote_data, remote_was_deleted].hash
228
238
  end
229
239
 
230
240
  # Builds the object from hash
@@ -19,7 +19,7 @@ module MergeHRISClient
19
19
  # The third-party API ID of the matching object.
20
20
  attr_accessor :remote_id
21
21
 
22
- # The employee's number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user.
22
+ # The employee's number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user. This value can also change in many API providers.
23
23
  attr_accessor :employee_number
24
24
 
25
25
  attr_accessor :company
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The Employment Object ### Description The `Employment` object is used to represent an employment position at a company. These are associated with the employee filling the role. ### Usage Example Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees.
17
+ # # The Employment Object ### Description The `Employment` object is used to represent an employment position at a company. These are associated with the employee filling the role. Please note: Employment objects are constructed if the object does not exist in the remote system. ### Usage Example Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees.
18
18
  class Employment
19
19
  attr_accessor :id
20
20
 
@@ -38,6 +38,8 @@ module MergeHRISClient
38
38
  # The position's currency code.
39
39
  attr_accessor :pay_currency
40
40
 
41
+ attr_accessor :pay_group
42
+
41
43
  # The position's FLSA status.
42
44
  attr_accessor :flsa_status
43
45
 
@@ -49,6 +51,9 @@ module MergeHRISClient
49
51
 
50
52
  attr_accessor :remote_data
51
53
 
54
+ # Indicates whether or not this object has been deleted on the third-party.
55
+ attr_accessor :remote_was_deleted
56
+
52
57
  # Attribute mapping from ruby-style variable name to JSON key.
53
58
  def self.attribute_map
54
59
  {
@@ -60,10 +65,12 @@ module MergeHRISClient
60
65
  :'pay_period' => :'pay_period',
61
66
  :'pay_frequency' => :'pay_frequency',
62
67
  :'pay_currency' => :'pay_currency',
68
+ :'pay_group' => :'pay_group',
63
69
  :'flsa_status' => :'flsa_status',
64
70
  :'effective_date' => :'effective_date',
65
71
  :'employment_type' => :'employment_type',
66
- :'remote_data' => :'remote_data'
72
+ :'remote_data' => :'remote_data',
73
+ :'remote_was_deleted' => :'remote_was_deleted'
67
74
  }
68
75
  end
69
76
 
@@ -83,10 +90,12 @@ module MergeHRISClient
83
90
  :'pay_period' => :'PayPeriodEnum',
84
91
  :'pay_frequency' => :'PayFrequencyEnum',
85
92
  :'pay_currency' => :'PayCurrencyEnum',
93
+ :'pay_group' => :'String',
86
94
  :'flsa_status' => :'FlsaStatusEnum',
87
95
  :'effective_date' => :'Time',
88
96
  :'employment_type' => :'EmploymentTypeEnum',
89
- :'remote_data' => :'Array<RemoteData>'
97
+ :'remote_data' => :'Array<RemoteData>',
98
+ :'remote_was_deleted' => :'Boolean'
90
99
  }
91
100
  end
92
101
 
@@ -100,10 +109,11 @@ module MergeHRISClient
100
109
  :'pay_period',
101
110
  :'pay_frequency',
102
111
  :'pay_currency',
112
+ :'pay_group',
103
113
  :'flsa_status',
104
114
  :'effective_date',
105
115
  :'employment_type',
106
- :'remote_data'
116
+ :'remote_data',
107
117
  ])
108
118
  end
109
119
 
@@ -154,6 +164,10 @@ module MergeHRISClient
154
164
  self.pay_currency = attributes[:'pay_currency']
155
165
  end
156
166
 
167
+ if attributes.key?(:'pay_group')
168
+ self.pay_group = attributes[:'pay_group']
169
+ end
170
+
157
171
  if attributes.key?(:'flsa_status')
158
172
  self.flsa_status = attributes[:'flsa_status']
159
173
  end
@@ -171,6 +185,10 @@ module MergeHRISClient
171
185
  self.remote_data = value
172
186
  end
173
187
  end
188
+
189
+ if attributes.key?(:'remote_was_deleted')
190
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
191
+ end
174
192
  end
175
193
 
176
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -199,10 +217,12 @@ module MergeHRISClient
199
217
  pay_period == o.pay_period &&
200
218
  pay_frequency == o.pay_frequency &&
201
219
  pay_currency == o.pay_currency &&
220
+ pay_group == o.pay_group &&
202
221
  flsa_status == o.flsa_status &&
203
222
  effective_date == o.effective_date &&
204
223
  employment_type == o.employment_type &&
205
- remote_data == o.remote_data
224
+ remote_data == o.remote_data &&
225
+ remote_was_deleted == o.remote_was_deleted
206
226
  end
207
227
 
208
228
  # @see the `==` method
@@ -214,7 +234,7 @@ module MergeHRISClient
214
234
  # Calculates hash code according to all attributes.
215
235
  # @return [Integer] Hash code
216
236
  def hash
217
- [id, remote_id, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, flsa_status, effective_date, employment_type, remote_data].hash
237
+ [id, remote_id, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, pay_group, flsa_status, effective_date, employment_type, remote_data, remote_was_deleted].hash
218
238
  end
219
239
 
220
240
  # Builds the object from hash
@@ -33,5 +33,4 @@ module MergeHRISClient
33
33
  value
34
34
  end
35
35
  end
36
-
37
36
  end
@@ -35,5 +35,4 @@ module MergeHRISClient
35
35
  value
36
36
  end
37
37
  end
38
-
39
38
  end
@@ -32,5 +32,4 @@ module MergeHRISClient
32
32
  value
33
33
  end
34
34
  end
35
-
36
35
  end
@@ -23,8 +23,10 @@ module MergeHRISClient
23
23
 
24
24
  attr_accessor :categories
25
25
 
26
+ # The slug of a specific pre-selected integration for this linking flow token, for examples of slugs see https://www.merge.dev/docs/basics/integration-metadata
26
27
  attr_accessor :integration
27
28
 
29
+ # An integer number of minutes between [30, 720] for how long this token is valid. Defaults to 30
28
30
  attr_accessor :link_expiry_mins
29
31
 
30
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -115,6 +117,10 @@ module MergeHRISClient
115
117
  invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
116
118
  end
117
119
 
120
+ if @end_user_email_address.to_s.length > 100
121
+ invalid_properties.push('invalid value for "end_user_email_address", the character length must be smaller than or equal to 100.')
122
+ end
123
+
118
124
  if @end_user_email_address.to_s.length < 1
119
125
  invalid_properties.push('invalid value for "end_user_email_address", the character length must be great than or equal to 1.')
120
126
  end
@@ -123,6 +129,10 @@ module MergeHRISClient
123
129
  invalid_properties.push('invalid value for "end_user_organization_name", end_user_organization_name cannot be nil.')
124
130
  end
125
131
 
132
+ if @end_user_organization_name.to_s.length > 100
133
+ invalid_properties.push('invalid value for "end_user_organization_name", the character length must be smaller than or equal to 100.')
134
+ end
135
+
126
136
  if @end_user_organization_name.to_s.length < 1
127
137
  invalid_properties.push('invalid value for "end_user_organization_name", the character length must be great than or equal to 1.')
128
138
  end
@@ -131,10 +141,18 @@ module MergeHRISClient
131
141
  invalid_properties.push('invalid value for "end_user_origin_id", end_user_origin_id cannot be nil.')
132
142
  end
133
143
 
144
+ if @end_user_origin_id.to_s.length > 100
145
+ invalid_properties.push('invalid value for "end_user_origin_id", the character length must be smaller than or equal to 100.')
146
+ end
147
+
134
148
  if @end_user_origin_id.to_s.length < 1
135
149
  invalid_properties.push('invalid value for "end_user_origin_id", the character length must be great than or equal to 1.')
136
150
  end
137
151
 
152
+ if @categories.nil?
153
+ invalid_properties.push('invalid value for "categories", categories cannot be nil.')
154
+ end
155
+
138
156
  if !@integration.nil? && @integration.to_s.length < 1
139
157
  invalid_properties.push('invalid value for "integration", the character length must be great than or equal to 1.')
140
158
  end
@@ -154,11 +172,15 @@ module MergeHRISClient
154
172
  # @return true if the model is valid
155
173
  def valid?
156
174
  return false if @end_user_email_address.nil?
175
+ return false if @end_user_email_address.to_s.length > 100
157
176
  return false if @end_user_email_address.to_s.length < 1
158
177
  return false if @end_user_organization_name.nil?
178
+ return false if @end_user_organization_name.to_s.length > 100
159
179
  return false if @end_user_organization_name.to_s.length < 1
160
180
  return false if @end_user_origin_id.nil?
181
+ return false if @end_user_origin_id.to_s.length > 100
161
182
  return false if @end_user_origin_id.to_s.length < 1
183
+ return false if @categories.nil?
162
184
  return false if !@integration.nil? && @integration.to_s.length < 1
163
185
  return false if !@link_expiry_mins.nil? && @link_expiry_mins > 720
164
186
  return false if !@link_expiry_mins.nil? && @link_expiry_mins < 30
@@ -172,6 +194,10 @@ module MergeHRISClient
172
194
  fail ArgumentError, 'end_user_email_address cannot be nil'
173
195
  end
174
196
 
197
+ if end_user_email_address.to_s.length > 100
198
+ fail ArgumentError, 'invalid value for "end_user_email_address", the character length must be smaller than or equal to 100.'
199
+ end
200
+
175
201
  if end_user_email_address.to_s.length < 1
176
202
  fail ArgumentError, 'invalid value for "end_user_email_address", the character length must be great than or equal to 1.'
177
203
  end
@@ -186,6 +212,10 @@ module MergeHRISClient
186
212
  fail ArgumentError, 'end_user_organization_name cannot be nil'
187
213
  end
188
214
 
215
+ if end_user_organization_name.to_s.length > 100
216
+ fail ArgumentError, 'invalid value for "end_user_organization_name", the character length must be smaller than or equal to 100.'
217
+ end
218
+
189
219
  if end_user_organization_name.to_s.length < 1
190
220
  fail ArgumentError, 'invalid value for "end_user_organization_name", the character length must be great than or equal to 1.'
191
221
  end
@@ -200,6 +230,10 @@ module MergeHRISClient
200
230
  fail ArgumentError, 'end_user_origin_id cannot be nil'
201
231
  end
202
232
 
233
+ if end_user_origin_id.to_s.length > 100
234
+ fail ArgumentError, 'invalid value for "end_user_origin_id", the character length must be smaller than or equal to 100.'
235
+ end
236
+
203
237
  if end_user_origin_id.to_s.length < 1
204
238
  fail ArgumentError, 'invalid value for "end_user_origin_id", the character length must be great than or equal to 1.'
205
239
  end
@@ -38,5 +38,4 @@ module MergeHRISClient
38
38
  value
39
39
  end
40
40
  end
41
-
42
41
  end
@@ -34,5 +34,4 @@ module MergeHRISClient
34
34
  value
35
35
  end
36
36
  end
37
-
38
37
  end
@@ -35,5 +35,4 @@ module MergeHRISClient
35
35
  value
36
36
  end
37
37
  end
38
-
39
38
  end
@@ -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 Group information that employees belong to. This is often referenced with an Employee object. ### Usage Example Fetch from the `LIST Employee` endpoint and expand groups to view an employees groups.
17
+ # # The Group Object ### Description The `Group` object is used to represent Group information that employees belong to. This is often referenced with an Employee object. Please note: The teams object will fulfill most use cases. The Groups object is for power-users that want all types of groups at a company and the optionality of pulling multiple groups for an employee. ### Usage Example Fetch from the `LIST Employee` endpoint and expand groups to view an employee's groups.
18
18
  class Group
19
19
  attr_accessor :id
20
20
 
@@ -32,6 +32,9 @@ module MergeHRISClient
32
32
 
33
33
  attr_accessor :remote_data
34
34
 
35
+ # Indicates whether or not this object has been deleted on the third-party.
36
+ attr_accessor :remote_was_deleted
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -40,7 +43,8 @@ module MergeHRISClient
40
43
  :'parent_group' => :'parent_group',
41
44
  :'name' => :'name',
42
45
  :'type' => :'type',
43
- :'remote_data' => :'remote_data'
46
+ :'remote_data' => :'remote_data',
47
+ :'remote_was_deleted' => :'remote_was_deleted'
44
48
  }
45
49
  end
46
50
 
@@ -57,7 +61,8 @@ module MergeHRISClient
57
61
  :'parent_group' => :'String',
58
62
  :'name' => :'String',
59
63
  :'type' => :'GroupTypeEnum',
60
- :'remote_data' => :'Array<RemoteData>'
64
+ :'remote_data' => :'Array<RemoteData>',
65
+ :'remote_was_deleted' => :'Boolean'
61
66
  }
62
67
  end
63
68
 
@@ -68,7 +73,7 @@ module MergeHRISClient
68
73
  :'parent_group',
69
74
  :'name',
70
75
  :'type',
71
- :'remote_data'
76
+ :'remote_data',
72
77
  ])
73
78
  end
74
79
 
@@ -112,6 +117,10 @@ module MergeHRISClient
112
117
  self.remote_data = value
113
118
  end
114
119
  end
120
+
121
+ if attributes.key?(:'remote_was_deleted')
122
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
123
+ end
115
124
  end
116
125
 
117
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -137,7 +146,8 @@ module MergeHRISClient
137
146
  parent_group == o.parent_group &&
138
147
  name == o.name &&
139
148
  type == o.type &&
140
- remote_data == o.remote_data
149
+ remote_data == o.remote_data &&
150
+ remote_was_deleted == o.remote_was_deleted
141
151
  end
142
152
 
143
153
  # @see the `==` method
@@ -149,7 +159,7 @@ module MergeHRISClient
149
159
  # Calculates hash code according to all attributes.
150
160
  # @return [Integer] Hash code
151
161
  def hash
152
- [id, remote_id, parent_group, name, type, remote_data].hash
162
+ [id, remote_id, parent_group, name, type, remote_data, remote_was_deleted].hash
153
163
  end
154
164
 
155
165
  # Builds the object from hash
@@ -34,5 +34,4 @@ module MergeHRISClient
34
34
  value
35
35
  end
36
36
  end
37
-
38
37
  end
@@ -32,5 +32,4 @@ module MergeHRISClient
32
32
  value
33
33
  end
34
34
  end
35
-
36
35
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -14,23 +14,16 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The DataPassthrough Object ### Description The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. ### Usage Example Create a `DataPassthrough` to get team hierarchies from your Rippling integration.
18
- class DataPassthrough
19
- attr_accessor :method
17
+ class LinkedAccountStatus
18
+ attr_accessor :linked_account_status
20
19
 
21
- attr_accessor :path
22
-
23
- attr_accessor :data
24
-
25
- attr_accessor :headers
20
+ attr_accessor :can_make_request
26
21
 
27
22
  # Attribute mapping from ruby-style variable name to JSON key.
28
23
  def self.attribute_map
29
24
  {
30
- :'method' => :'method',
31
- :'path' => :'path',
32
- :'data' => :'data',
33
- :'headers' => :'headers'
25
+ :'linked_account_status' => :'linked_account_status',
26
+ :'can_make_request' => :'can_make_request'
34
27
  }
35
28
  end
36
29
 
@@ -42,18 +35,14 @@ module MergeHRISClient
42
35
  # Attribute type mapping.
43
36
  def self.openapi_types
44
37
  {
45
- :'method' => :'MethodEnum',
46
- :'path' => :'String',
47
- :'data' => :'Hash<String, AnyType>',
48
- :'headers' => :'Hash<String, AnyType>'
38
+ :'linked_account_status' => :'String',
39
+ :'can_make_request' => :'Boolean'
49
40
  }
50
41
  end
51
42
 
52
43
  # List of attributes with nullable: true
53
44
  def self.openapi_nullable
54
45
  Set.new([
55
- :'data',
56
- :'headers'
57
46
  ])
58
47
  end
59
48
 
@@ -61,35 +50,23 @@ module MergeHRISClient
61
50
  # @param [Hash] attributes Model attributes in the form of hash
62
51
  def initialize(attributes = {})
63
52
  if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::DataPassthrough` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::LinkedAccountStatus` initialize method"
65
54
  end
66
55
 
67
56
  # check to see if the attribute exists and convert string to symbol for hash key
68
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
69
58
  if (!self.class.attribute_map.key?(k.to_sym))
70
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::DataPassthrough`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::LinkedAccountStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
60
  end
72
61
  h[k.to_sym] = v
73
62
  }
74
63
 
75
- if attributes.key?(:'method')
76
- self.method = attributes[:'method']
64
+ if attributes.key?(:'linked_account_status')
65
+ self.linked_account_status = attributes[:'linked_account_status']
77
66
  end
78
67
 
79
- if attributes.key?(:'path')
80
- self.path = attributes[:'path']
81
- end
82
-
83
- if attributes.key?(:'data')
84
- if (value = attributes[:'data']).is_a?(Hash)
85
- self.data = value
86
- end
87
- end
88
-
89
- if attributes.key?(:'headers')
90
- if (value = attributes[:'headers']).is_a?(Hash)
91
- self.headers = value
92
- end
68
+ if attributes.key?(:'can_make_request')
69
+ self.can_make_request = attributes[:'can_make_request']
93
70
  end
94
71
  end
95
72
 
@@ -97,12 +74,12 @@ module MergeHRISClient
97
74
  # @return Array for valid properties with the reasons
98
75
  def list_invalid_properties
99
76
  invalid_properties = Array.new
100
- if @method.nil?
101
- invalid_properties.push('invalid value for "method", method cannot be nil.')
77
+ if @linked_account_status.nil?
78
+ invalid_properties.push('invalid value for "linked_account_status", linked_account_status cannot be nil.')
102
79
  end
103
80
 
104
- if @path.nil?
105
- invalid_properties.push('invalid value for "path", path cannot be nil.')
81
+ if @can_make_request.nil?
82
+ invalid_properties.push('invalid value for "can_make_request", can_make_request cannot be nil.')
106
83
  end
107
84
 
108
85
  invalid_properties
@@ -111,8 +88,8 @@ module MergeHRISClient
111
88
  # Check to see if the all the properties in the model are valid
112
89
  # @return true if the model is valid
113
90
  def valid?
114
- return false if @method.nil?
115
- return false if @path.nil?
91
+ return false if @linked_account_status.nil?
92
+ return false if @can_make_request.nil?
116
93
  true
117
94
  end
118
95
 
@@ -121,10 +98,8 @@ module MergeHRISClient
121
98
  def ==(o)
122
99
  return true if self.equal?(o)
123
100
  self.class == o.class &&
124
- method == o.method &&
125
- path == o.path &&
126
- data == o.data &&
127
- headers == o.headers
101
+ linked_account_status == o.linked_account_status &&
102
+ can_make_request == o.can_make_request
128
103
  end
129
104
 
130
105
  # @see the `==` method
@@ -136,7 +111,7 @@ module MergeHRISClient
136
111
  # Calculates hash code according to all attributes.
137
112
  # @return [Integer] Hash code
138
113
  def hash
139
- [method, path, data, headers].hash
114
+ [linked_account_status, can_make_request].hash
140
115
  end
141
116
 
142
117
  # Builds the object from hash
@@ -179,7 +154,7 @@ module MergeHRISClient
179
154
  when :Date
180
155
  Date.parse(value)
181
156
  when :String
182
- value.to_s
157
+ value
183
158
  when :Integer
184
159
  value.to_i
185
160
  when :Float
@@ -39,7 +39,7 @@ module MergeHRISClient
39
39
  # The location's state. Represents a region if outside of the US.
40
40
  attr_accessor :state
41
41
 
42
- # The location's zip code.
42
+ # The location's zip code or postal code.
43
43
  attr_accessor :zip_code
44
44
 
45
45
  # The location's country.
@@ -50,6 +50,9 @@ module MergeHRISClient
50
50
 
51
51
  attr_accessor :remote_data
52
52
 
53
+ # Indicates whether or not this object has been deleted on the third-party.
54
+ attr_accessor :remote_was_deleted
55
+
53
56
  # Attribute mapping from ruby-style variable name to JSON key.
54
57
  def self.attribute_map
55
58
  {
@@ -64,7 +67,8 @@ module MergeHRISClient
64
67
  :'zip_code' => :'zip_code',
65
68
  :'country' => :'country',
66
69
  :'location_type' => :'location_type',
67
- :'remote_data' => :'remote_data'
70
+ :'remote_data' => :'remote_data',
71
+ :'remote_was_deleted' => :'remote_was_deleted'
68
72
  }
69
73
  end
70
74
 
@@ -87,7 +91,8 @@ module MergeHRISClient
87
91
  :'zip_code' => :'String',
88
92
  :'country' => :'CountryEnum',
89
93
  :'location_type' => :'LocationTypeEnum',
90
- :'remote_data' => :'Array<RemoteData>'
94
+ :'remote_data' => :'Array<RemoteData>',
95
+ :'remote_was_deleted' => :'Boolean'
91
96
  }
92
97
  end
93
98
 
@@ -104,7 +109,7 @@ module MergeHRISClient
104
109
  :'zip_code',
105
110
  :'country',
106
111
  :'location_type',
107
- :'remote_data'
112
+ :'remote_data',
108
113
  ])
109
114
  end
110
115
 
@@ -172,6 +177,10 @@ module MergeHRISClient
172
177
  self.remote_data = value
173
178
  end
174
179
  end
180
+
181
+ if attributes.key?(:'remote_was_deleted')
182
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
183
+ end
175
184
  end
176
185
 
177
186
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -203,7 +212,8 @@ module MergeHRISClient
203
212
  zip_code == o.zip_code &&
204
213
  country == o.country &&
205
214
  location_type == o.location_type &&
206
- remote_data == o.remote_data
215
+ remote_data == o.remote_data &&
216
+ remote_was_deleted == o.remote_was_deleted
207
217
  end
208
218
 
209
219
  # @see the `==` method
@@ -215,7 +225,7 @@ module MergeHRISClient
215
225
  # Calculates hash code according to all attributes.
216
226
  # @return [Integer] Hash code
217
227
  def hash
218
- [id, remote_id, name, phone_number, street_1, street_2, city, state, zip_code, country, location_type, remote_data].hash
228
+ [id, remote_id, name, phone_number, street_1, street_2, city, state, zip_code, country, location_type, remote_data, remote_was_deleted].hash
219
229
  end
220
230
 
221
231
  # Builds the object from hash
@@ -32,5 +32,4 @@ module MergeHRISClient
32
32
  value
33
33
  end
34
34
  end
35
-
36
35
  end
@@ -35,5 +35,4 @@ module MergeHRISClient
35
35
  value
36
36
  end
37
37
  end
38
-
39
38
  end