merge_hris_client 2.0.3 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AccountDetails.md +3 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/BankInfo.md +1 -1
  6. data/docs/BankInfoApi.md +7 -3
  7. data/docs/Benefit.md +1 -1
  8. data/docs/BenefitsApi.md +2 -2
  9. data/docs/CompaniesApi.md +2 -2
  10. data/docs/Company.md +1 -1
  11. data/docs/DataPassthroughRequest.md +3 -1
  12. data/docs/Deduction.md +1 -1
  13. data/docs/DeductionsApi.md +2 -2
  14. data/docs/Earning.md +1 -3
  15. data/docs/Employee.md +4 -0
  16. data/docs/EmployeePayrollRun.md +1 -1
  17. data/docs/EmployeePayrollRunsApi.md +2 -2
  18. data/docs/EmployeeRequest.md +4 -0
  19. data/docs/EmployeesApi.md +7 -3
  20. data/docs/Employment.md +1 -1
  21. data/docs/EmploymentsApi.md +7 -3
  22. data/docs/EndUserDetailsRequest.md +9 -7
  23. data/docs/Group.md +1 -1
  24. data/docs/GroupsApi.md +7 -3
  25. data/docs/LinkToken.md +3 -1
  26. data/docs/LinkedAccountsApi.md +2 -0
  27. data/docs/Location.md +1 -1
  28. data/docs/LocationsApi.md +7 -3
  29. data/docs/PayGroup.md +1 -1
  30. data/docs/PayGroupsApi.md +2 -2
  31. data/docs/PayrollRun.md +1 -1
  32. data/docs/PayrollRunsApi.md +7 -3
  33. data/docs/RemoteResponse.md +5 -1
  34. data/docs/ResponseTypeEnum.md +15 -0
  35. data/docs/SyncStatus.md +2 -2
  36. data/docs/SyncStatusApi.md +1 -1
  37. data/docs/Tax.md +1 -3
  38. data/docs/Team.md +1 -1
  39. data/docs/TeamsApi.md +2 -2
  40. data/docs/TimeOffApi.md +7 -3
  41. data/docs/TimeOffBalance.md +1 -1
  42. data/docs/TimeOffBalancesApi.md +7 -3
  43. data/lib/merge_hris_client/api/bank_info_api.rb +16 -2
  44. data/lib/merge_hris_client/api/benefits_api.rb +2 -2
  45. data/lib/merge_hris_client/api/companies_api.rb +2 -2
  46. data/lib/merge_hris_client/api/deductions_api.rb +2 -2
  47. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
  48. data/lib/merge_hris_client/api/employees_api.rb +16 -2
  49. data/lib/merge_hris_client/api/employments_api.rb +16 -2
  50. data/lib/merge_hris_client/api/groups_api.rb +16 -2
  51. data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -0
  52. data/lib/merge_hris_client/api/locations_api.rb +16 -2
  53. data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
  54. data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
  55. data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
  56. data/lib/merge_hris_client/api/teams_api.rb +2 -2
  57. data/lib/merge_hris_client/api/time_off_api.rb +16 -2
  58. data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
  59. data/lib/merge_hris_client/models/account_details.rb +15 -4
  60. data/lib/merge_hris_client/models/account_details_and_actions.rb +12 -1
  61. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
  62. data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
  63. data/lib/merge_hris_client/models/bank_info.rb +1 -1
  64. data/lib/merge_hris_client/models/benefit.rb +1 -1
  65. data/lib/merge_hris_client/models/categories_enum.rb +17 -7
  66. data/lib/merge_hris_client/models/category_enum.rb +17 -7
  67. data/lib/merge_hris_client/models/company.rb +1 -1
  68. data/lib/merge_hris_client/models/country_enum.rb +17 -7
  69. data/lib/merge_hris_client/models/data_passthrough_request.rb +15 -6
  70. data/lib/merge_hris_client/models/deduction.rb +1 -1
  71. data/lib/merge_hris_client/models/earning.rb +2 -14
  72. data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
  73. data/lib/merge_hris_client/models/employee.rb +24 -2
  74. data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -1
  75. data/lib/merge_hris_client/models/employee_request.rb +24 -2
  76. data/lib/merge_hris_client/models/employment.rb +1 -1
  77. data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
  78. data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
  79. data/lib/merge_hris_client/models/encoding_enum.rb +18 -7
  80. data/lib/merge_hris_client/models/end_user_details_request.rb +28 -11
  81. data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
  82. data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
  83. data/lib/merge_hris_client/models/gender_enum.rb +17 -7
  84. data/lib/merge_hris_client/models/group.rb +1 -1
  85. data/lib/merge_hris_client/models/group_type_enum.rb +17 -7
  86. data/lib/merge_hris_client/models/issue.rb +1 -1
  87. data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
  88. data/lib/merge_hris_client/models/link_token.rb +13 -4
  89. data/lib/merge_hris_client/models/location.rb +1 -1
  90. data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
  91. data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
  92. data/lib/merge_hris_client/models/meta_response.rb +1 -1
  93. data/lib/merge_hris_client/models/method_enum.rb +17 -7
  94. data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
  95. data/lib/merge_hris_client/models/pay_frequency_enum.rb +17 -7
  96. data/lib/merge_hris_client/models/pay_group.rb +1 -1
  97. data/lib/merge_hris_client/models/pay_period_enum.rb +17 -7
  98. data/lib/merge_hris_client/models/payroll_run.rb +1 -1
  99. data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
  100. data/lib/merge_hris_client/models/reason_enum.rb +17 -7
  101. data/lib/merge_hris_client/models/remote_response.rb +23 -9
  102. data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
  103. data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
  104. data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
  105. data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
  106. data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
  107. data/lib/merge_hris_client/models/sync_status.rb +0 -10
  108. data/lib/merge_hris_client/models/sync_status_status_enum.rb +18 -7
  109. data/lib/merge_hris_client/models/tax.rb +2 -14
  110. data/lib/merge_hris_client/models/team.rb +1 -1
  111. data/lib/merge_hris_client/models/time_off_balance.rb +1 -1
  112. data/lib/merge_hris_client/models/time_off_status_enum.rb +17 -7
  113. data/lib/merge_hris_client/models/units_enum.rb +17 -7
  114. data/lib/merge_hris_client/version.rb +1 -1
  115. data/lib/merge_hris_client.rb +1 -1
  116. data/spec/api/bank_info_api_spec.rb +3 -1
  117. data/spec/api/benefits_api_spec.rb +1 -1
  118. data/spec/api/companies_api_spec.rb +1 -1
  119. data/spec/api/deductions_api_spec.rb +1 -1
  120. data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
  121. data/spec/api/employees_api_spec.rb +3 -1
  122. data/spec/api/employments_api_spec.rb +3 -1
  123. data/spec/api/groups_api_spec.rb +3 -1
  124. data/spec/api/linked_accounts_api_spec.rb +1 -0
  125. data/spec/api/locations_api_spec.rb +3 -1
  126. data/spec/api/pay_groups_api_spec.rb +1 -1
  127. data/spec/api/payroll_runs_api_spec.rb +3 -1
  128. data/spec/api/sync_status_api_spec.rb +1 -1
  129. data/spec/api/teams_api_spec.rb +1 -1
  130. data/spec/api/time_off_api_spec.rb +3 -1
  131. data/spec/api/time_off_balances_api_spec.rb +3 -1
  132. data/spec/models/account_details_and_actions_spec.rb +6 -0
  133. data/spec/models/account_details_spec.rb +6 -0
  134. data/spec/models/data_passthrough_request_spec.rb +6 -0
  135. data/spec/models/earning_spec.rb +0 -6
  136. data/spec/models/employee_request_spec.rb +12 -0
  137. data/spec/models/employee_spec.rb +12 -0
  138. data/spec/models/end_user_details_request_spec.rb +6 -0
  139. data/spec/models/link_token_spec.rb +6 -0
  140. data/spec/models/remote_response_spec.rb +12 -0
  141. data/spec/models/response_type_enum_spec.rb +28 -0
  142. data/spec/models/tax_spec.rb +0 -6
  143. metadata +105 -101
@@ -35,6 +35,9 @@ module MergeHRISClient
35
35
  # The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name.
36
36
  attr_accessor :display_full_name
37
37
 
38
+ # The employee's username that appears in the remote UI.
39
+ attr_accessor :username
40
+
38
41
  attr_accessor :groups
39
42
 
40
43
  # The employee's work email.
@@ -80,6 +83,9 @@ module MergeHRISClient
80
83
  # The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date.
81
84
  attr_accessor :start_date
82
85
 
86
+ # When the third party's employee was created.
87
+ attr_accessor :remote_created_at
88
+
83
89
  # The employment status of the employee.
84
90
  attr_accessor :employment_status
85
91
 
@@ -106,6 +112,7 @@ module MergeHRISClient
106
112
  :'first_name' => :'first_name',
107
113
  :'last_name' => :'last_name',
108
114
  :'display_full_name' => :'display_full_name',
115
+ :'username' => :'username',
109
116
  :'groups' => :'groups',
110
117
  :'work_email' => :'work_email',
111
118
  :'personal_email' => :'personal_email',
@@ -123,6 +130,7 @@ module MergeHRISClient
123
130
  :'date_of_birth' => :'date_of_birth',
124
131
  :'hire_date' => :'hire_date',
125
132
  :'start_date' => :'start_date',
133
+ :'remote_created_at' => :'remote_created_at',
126
134
  :'employment_status' => :'employment_status',
127
135
  :'termination_date' => :'termination_date',
128
136
  :'avatar' => :'avatar',
@@ -147,6 +155,7 @@ module MergeHRISClient
147
155
  :'first_name' => :'String',
148
156
  :'last_name' => :'String',
149
157
  :'display_full_name' => :'String',
158
+ :'username' => :'String',
150
159
  :'groups' => :'Array<String>',
151
160
  :'work_email' => :'String',
152
161
  :'personal_email' => :'String',
@@ -164,11 +173,12 @@ module MergeHRISClient
164
173
  :'date_of_birth' => :'Time',
165
174
  :'hire_date' => :'Time',
166
175
  :'start_date' => :'Time',
176
+ :'remote_created_at' => :'Time',
167
177
  :'employment_status' => :'EmploymentStatusEnum',
168
178
  :'termination_date' => :'Time',
169
179
  :'avatar' => :'String',
170
180
  :'remote_data' => :'Array<RemoteData>',
171
- :'custom_fields' => :'Hash<String, AnyType>',
181
+ :'custom_fields' => :'Hash<String, Object>',
172
182
  :'remote_was_deleted' => :'Boolean'
173
183
  }
174
184
  end
@@ -182,6 +192,7 @@ module MergeHRISClient
182
192
  :'first_name',
183
193
  :'last_name',
184
194
  :'display_full_name',
195
+ :'username',
185
196
  :'work_email',
186
197
  :'personal_email',
187
198
  :'mobile_phone_number',
@@ -197,6 +208,7 @@ module MergeHRISClient
197
208
  :'date_of_birth',
198
209
  :'hire_date',
199
210
  :'start_date',
211
+ :'remote_created_at',
200
212
  :'employment_status',
201
213
  :'termination_date',
202
214
  :'avatar',
@@ -248,6 +260,10 @@ module MergeHRISClient
248
260
  self.display_full_name = attributes[:'display_full_name']
249
261
  end
250
262
 
263
+ if attributes.key?(:'username')
264
+ self.username = attributes[:'username']
265
+ end
266
+
251
267
  if attributes.key?(:'groups')
252
268
  if (value = attributes[:'groups']).is_a?(Array)
253
269
  self.groups = value
@@ -320,6 +336,10 @@ module MergeHRISClient
320
336
  self.start_date = attributes[:'start_date']
321
337
  end
322
338
 
339
+ if attributes.key?(:'remote_created_at')
340
+ self.remote_created_at = attributes[:'remote_created_at']
341
+ end
342
+
323
343
  if attributes.key?(:'employment_status')
324
344
  self.employment_status = attributes[:'employment_status']
325
345
  end
@@ -434,6 +454,7 @@ module MergeHRISClient
434
454
  first_name == o.first_name &&
435
455
  last_name == o.last_name &&
436
456
  display_full_name == o.display_full_name &&
457
+ username == o.username &&
437
458
  groups == o.groups &&
438
459
  work_email == o.work_email &&
439
460
  personal_email == o.personal_email &&
@@ -451,6 +472,7 @@ module MergeHRISClient
451
472
  date_of_birth == o.date_of_birth &&
452
473
  hire_date == o.hire_date &&
453
474
  start_date == o.start_date &&
475
+ remote_created_at == o.remote_created_at &&
454
476
  employment_status == o.employment_status &&
455
477
  termination_date == o.termination_date &&
456
478
  avatar == o.avatar &&
@@ -468,7 +490,7 @@ module MergeHRISClient
468
490
  # Calculates hash code according to all attributes.
469
491
  # @return [Integer] Hash code
470
492
  def hash
471
- [id, remote_id, employee_number, company, first_name, last_name, display_full_name, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, employment_status, termination_date, avatar, remote_data, custom_fields, remote_was_deleted].hash
493
+ [id, remote_id, employee_number, company, first_name, last_name, display_full_name, username, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, remote_created_at, employment_status, termination_date, avatar, remote_data, custom_fields, remote_was_deleted].hash
472
494
  end
473
495
 
474
496
  # Builds the object from hash
@@ -48,7 +48,7 @@ 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.
51
+ # Indicates whether or not this object has been deleted by third party webhooks.
52
52
  attr_accessor :remote_was_deleted
53
53
 
54
54
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,6 +33,9 @@ module MergeHRISClient
33
33
  # The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name.
34
34
  attr_accessor :display_full_name
35
35
 
36
+ # The employee's username that appears in the remote UI.
37
+ attr_accessor :username
38
+
36
39
  attr_accessor :groups
37
40
 
38
41
  # The employee's work email.
@@ -78,6 +81,9 @@ module MergeHRISClient
78
81
  # The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date.
79
82
  attr_accessor :start_date
80
83
 
84
+ # When the third party's employee was created.
85
+ attr_accessor :remote_created_at
86
+
81
87
  # The employment status of the employee.
82
88
  attr_accessor :employment_status
83
89
 
@@ -99,6 +105,7 @@ module MergeHRISClient
99
105
  :'first_name' => :'first_name',
100
106
  :'last_name' => :'last_name',
101
107
  :'display_full_name' => :'display_full_name',
108
+ :'username' => :'username',
102
109
  :'groups' => :'groups',
103
110
  :'work_email' => :'work_email',
104
111
  :'personal_email' => :'personal_email',
@@ -116,6 +123,7 @@ module MergeHRISClient
116
123
  :'date_of_birth' => :'date_of_birth',
117
124
  :'hire_date' => :'hire_date',
118
125
  :'start_date' => :'start_date',
126
+ :'remote_created_at' => :'remote_created_at',
119
127
  :'employment_status' => :'employment_status',
120
128
  :'termination_date' => :'termination_date',
121
129
  :'avatar' => :'avatar',
@@ -137,6 +145,7 @@ module MergeHRISClient
137
145
  :'first_name' => :'String',
138
146
  :'last_name' => :'String',
139
147
  :'display_full_name' => :'String',
148
+ :'username' => :'String',
140
149
  :'groups' => :'Array<String>',
141
150
  :'work_email' => :'String',
142
151
  :'personal_email' => :'String',
@@ -154,10 +163,11 @@ module MergeHRISClient
154
163
  :'date_of_birth' => :'Time',
155
164
  :'hire_date' => :'Time',
156
165
  :'start_date' => :'Time',
166
+ :'remote_created_at' => :'Time',
157
167
  :'employment_status' => :'EmploymentStatusEnum',
158
168
  :'termination_date' => :'Time',
159
169
  :'avatar' => :'String',
160
- :'custom_fields' => :'Hash<String, AnyType>'
170
+ :'custom_fields' => :'Hash<String, Object>'
161
171
  }
162
172
  end
163
173
 
@@ -170,6 +180,7 @@ module MergeHRISClient
170
180
  :'first_name',
171
181
  :'last_name',
172
182
  :'display_full_name',
183
+ :'username',
173
184
  :'work_email',
174
185
  :'personal_email',
175
186
  :'mobile_phone_number',
@@ -185,6 +196,7 @@ module MergeHRISClient
185
196
  :'date_of_birth',
186
197
  :'hire_date',
187
198
  :'start_date',
199
+ :'remote_created_at',
188
200
  :'employment_status',
189
201
  :'termination_date',
190
202
  :'avatar',
@@ -231,6 +243,10 @@ module MergeHRISClient
231
243
  self.display_full_name = attributes[:'display_full_name']
232
244
  end
233
245
 
246
+ if attributes.key?(:'username')
247
+ self.username = attributes[:'username']
248
+ end
249
+
234
250
  if attributes.key?(:'groups')
235
251
  if (value = attributes[:'groups']).is_a?(Array)
236
252
  self.groups = value
@@ -303,6 +319,10 @@ module MergeHRISClient
303
319
  self.start_date = attributes[:'start_date']
304
320
  end
305
321
 
322
+ if attributes.key?(:'remote_created_at')
323
+ self.remote_created_at = attributes[:'remote_created_at']
324
+ end
325
+
306
326
  if attributes.key?(:'employment_status')
307
327
  self.employment_status = attributes[:'employment_status']
308
328
  end
@@ -406,6 +426,7 @@ module MergeHRISClient
406
426
  first_name == o.first_name &&
407
427
  last_name == o.last_name &&
408
428
  display_full_name == o.display_full_name &&
429
+ username == o.username &&
409
430
  groups == o.groups &&
410
431
  work_email == o.work_email &&
411
432
  personal_email == o.personal_email &&
@@ -423,6 +444,7 @@ module MergeHRISClient
423
444
  date_of_birth == o.date_of_birth &&
424
445
  hire_date == o.hire_date &&
425
446
  start_date == o.start_date &&
447
+ remote_created_at == o.remote_created_at &&
426
448
  employment_status == o.employment_status &&
427
449
  termination_date == o.termination_date &&
428
450
  avatar == o.avatar &&
@@ -438,7 +460,7 @@ module MergeHRISClient
438
460
  # Calculates hash code according to all attributes.
439
461
  # @return [Integer] Hash code
440
462
  def hash
441
- [remote_id, employee_number, company, first_name, last_name, display_full_name, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, employment_status, termination_date, avatar, custom_fields].hash
463
+ [remote_id, employee_number, company, first_name, last_name, display_full_name, username, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, remote_created_at, employment_status, termination_date, avatar, custom_fields].hash
442
464
  end
443
465
 
444
466
  # Builds the object from hash
@@ -51,7 +51,7 @@ module MergeHRISClient
51
51
 
52
52
  attr_accessor :remote_data
53
53
 
54
- # Indicates whether or not this object has been deleted on the third-party.
54
+ # Indicates whether or not this object has been deleted by third party webhooks.
55
55
  attr_accessor :remote_was_deleted
56
56
 
57
57
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeHRISClient
19
19
  PENDING = "PENDING".freeze
20
20
  INACTIVE = "INACTIVE".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["ACTIVE", "PENDING", "INACTIVE", ].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
+ IssueStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -21,18 +21,28 @@ module MergeHRISClient
21
21
  CONTRACTOR = "CONTRACTOR".freeze
22
22
  FREELANCE = "FREELANCE".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["FULL_TIME", "PART_TIME", "INTERN", "CONTRACTOR", "FREELANCE", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -17,19 +17,30 @@ module MergeHRISClient
17
17
  class EncodingEnum
18
18
  RAW = "RAW".freeze
19
19
  BASE64 = "BASE64".freeze
20
+ GZIP_BASE64 = "GZIP_BASE64".freeze
20
21
 
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
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
27
26
 
28
27
  # Builds the enum from string
29
28
  # @param [String] The enum value in the form of the string
30
29
  # @return [String] The enum value
31
30
  def build_from_hash(value)
32
- value
31
+ @raw_value = value
32
+ if ["RAW", "BASE64", "GZIP_BASE64", ].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
+ IssueStatusEnum.new.build_from_hash(value)
33
43
  end
34
44
  end
45
+
35
46
  end
@@ -15,20 +15,27 @@ require 'time'
15
15
 
16
16
  module MergeHRISClient
17
17
  class EndUserDetailsRequest
18
+ # Your end user's email address.
18
19
  attr_accessor :end_user_email_address
19
20
 
21
+ # Your end user's organization.
20
22
  attr_accessor :end_user_organization_name
21
23
 
24
+ # Unique ID for your end user.
22
25
  attr_accessor :end_user_origin_id
23
26
 
27
+ # The integration categories to show in Merge Link.
24
28
  attr_accessor :categories
25
29
 
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
30
+ # 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/.
27
31
  attr_accessor :integration
28
32
 
29
- # An integer number of minutes between [30, 720] for how long this token is valid. Defaults to 30
33
+ # An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
30
34
  attr_accessor :link_expiry_mins
31
35
 
36
+ # Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/product/integrations,-fast.-say-hello-to-magic-link/.
37
+ attr_accessor :should_create_magic_link_url
38
+
32
39
  # Attribute mapping from ruby-style variable name to JSON key.
33
40
  def self.attribute_map
34
41
  {
@@ -37,7 +44,8 @@ module MergeHRISClient
37
44
  :'end_user_origin_id' => :'end_user_origin_id',
38
45
  :'categories' => :'categories',
39
46
  :'integration' => :'integration',
40
- :'link_expiry_mins' => :'link_expiry_mins'
47
+ :'link_expiry_mins' => :'link_expiry_mins',
48
+ :'should_create_magic_link_url' => :'should_create_magic_link_url'
41
49
  }
42
50
  end
43
51
 
@@ -54,7 +62,8 @@ module MergeHRISClient
54
62
  :'end_user_origin_id' => :'String',
55
63
  :'categories' => :'Array<CategoriesEnum>',
56
64
  :'integration' => :'String',
57
- :'link_expiry_mins' => :'Integer'
65
+ :'link_expiry_mins' => :'Integer',
66
+ :'should_create_magic_link_url' => :'Boolean'
58
67
  }
59
68
  end
60
69
 
@@ -62,6 +71,7 @@ module MergeHRISClient
62
71
  def self.openapi_nullable
63
72
  Set.new([
64
73
  :'integration',
74
+ :'should_create_magic_link_url'
65
75
  ])
66
76
  end
67
77
 
@@ -107,6 +117,12 @@ module MergeHRISClient
107
117
  else
108
118
  self.link_expiry_mins = 30
109
119
  end
120
+
121
+ if attributes.key?(:'should_create_magic_link_url')
122
+ self.should_create_magic_link_url = attributes[:'should_create_magic_link_url']
123
+ else
124
+ self.should_create_magic_link_url = false
125
+ end
110
126
  end
111
127
 
112
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -157,8 +173,8 @@ module MergeHRISClient
157
173
  invalid_properties.push('invalid value for "integration", the character length must be great than or equal to 1.')
158
174
  end
159
175
 
160
- if !@link_expiry_mins.nil? && @link_expiry_mins > 720
161
- invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to 720.')
176
+ if !@link_expiry_mins.nil? && @link_expiry_mins > 10080
177
+ invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to 10080.')
162
178
  end
163
179
 
164
180
  if !@link_expiry_mins.nil? && @link_expiry_mins < 30
@@ -182,7 +198,7 @@ module MergeHRISClient
182
198
  return false if @end_user_origin_id.to_s.length < 1
183
199
  return false if @categories.nil?
184
200
  return false if !@integration.nil? && @integration.to_s.length < 1
185
- return false if !@link_expiry_mins.nil? && @link_expiry_mins > 720
201
+ return false if !@link_expiry_mins.nil? && @link_expiry_mins > 10080
186
202
  return false if !@link_expiry_mins.nil? && @link_expiry_mins < 30
187
203
  true
188
204
  end
@@ -254,8 +270,8 @@ module MergeHRISClient
254
270
  # Custom attribute writer method with validation
255
271
  # @param [Object] link_expiry_mins Value to be assigned
256
272
  def link_expiry_mins=(link_expiry_mins)
257
- if !link_expiry_mins.nil? && link_expiry_mins > 720
258
- fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to 720.'
273
+ if !link_expiry_mins.nil? && link_expiry_mins > 10080
274
+ fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to 10080.'
259
275
  end
260
276
 
261
277
  if !link_expiry_mins.nil? && link_expiry_mins < 30
@@ -275,7 +291,8 @@ module MergeHRISClient
275
291
  end_user_origin_id == o.end_user_origin_id &&
276
292
  categories == o.categories &&
277
293
  integration == o.integration &&
278
- link_expiry_mins == o.link_expiry_mins
294
+ link_expiry_mins == o.link_expiry_mins &&
295
+ should_create_magic_link_url == o.should_create_magic_link_url
279
296
  end
280
297
 
281
298
  # @see the `==` method
@@ -287,7 +304,7 @@ module MergeHRISClient
287
304
  # Calculates hash code according to all attributes.
288
305
  # @return [Integer] Hash code
289
306
  def hash
290
- [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins].hash
307
+ [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url].hash
291
308
  end
292
309
 
293
310
  # Builds the object from hash
@@ -24,18 +24,28 @@ module MergeHRISClient
24
24
  WHITE = "WHITE".freeze
25
25
  PREFER_NOT_TO_DISCLOSE = "PREFER_NOT_TO_DISCLOSE".freeze
26
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 self.build_from_hash(value)
31
- new.build_from_hash(value)
32
- end
27
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
28
+
29
+ attr_accessor :value
30
+ attr_accessor :raw_value
33
31
 
34
32
  # Builds the enum from string
35
33
  # @param [String] The enum value in the form of the string
36
34
  # @return [String] The enum value
37
35
  def build_from_hash(value)
38
- value
36
+ @raw_value = value
37
+ if ["AMERICAN_INDIAN_OR_ALASKA_NATIVE", "ASIAN_OR_INDIAN_SUBCONTINENT", "BLACK_OR_AFRICAN_AMERICAN", "HISPANIC_OR_LATINO", "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", "TWO_OR_MORE_RACES", "WHITE", "PREFER_NOT_TO_DISCLOSE", ].include? value
38
+ @value = value
39
+ else
40
+ @value = MERGE_NONSTANDARD_VALUE
41
+ end
42
+
43
+ self
44
+ end
45
+
46
+ def self.build_from_hash(value)
47
+ IssueStatusEnum.new.build_from_hash(value)
39
48
  end
40
49
  end
50
+
41
51
  end
@@ -20,18 +20,28 @@ module MergeHRISClient
20
20
  NONEXEMPT = "NONEXEMPT".freeze
21
21
  OWNER = "OWNER".freeze
22
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
23
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
24
+
25
+ attr_accessor :value
26
+ attr_accessor :raw_value
29
27
 
30
28
  # Builds the enum from string
31
29
  # @param [String] The enum value in the form of the string
32
30
  # @return [String] The enum value
33
31
  def build_from_hash(value)
34
- value
32
+ @raw_value = value
33
+ if ["EXEMPT", "SALARIED_NONEXEMPT", "NONEXEMPT", "OWNER", ].include? value
34
+ @value = value
35
+ else
36
+ @value = MERGE_NONSTANDARD_VALUE
37
+ end
38
+
39
+ self
40
+ end
41
+
42
+ def self.build_from_hash(value)
43
+ IssueStatusEnum.new.build_from_hash(value)
35
44
  end
36
45
  end
46
+
37
47
  end
@@ -21,18 +21,28 @@ module MergeHRISClient
21
21
  OTHER = "OTHER".freeze
22
22
  PREFER_NOT_TO_DISCLOSE = "PREFER_NOT_TO_DISCLOSE".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["MALE", "FEMALE", "NON-BINARY", "OTHER", "PREFER_NOT_TO_DISCLOSE", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -32,7 +32,7 @@ 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.
35
+ # Indicates whether or not this object has been deleted by third party webhooks.
36
36
  attr_accessor :remote_was_deleted
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -20,18 +20,28 @@ module MergeHRISClient
20
20
  COST_CENTER = "COST_CENTER".freeze
21
21
  BUSINESS_UNIT = "BUSINESS_UNIT".freeze
22
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
23
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
24
+
25
+ attr_accessor :value
26
+ attr_accessor :raw_value
29
27
 
30
28
  # Builds the enum from string
31
29
  # @param [String] The enum value in the form of the string
32
30
  # @return [String] The enum value
33
31
  def build_from_hash(value)
34
- value
32
+ @raw_value = value
33
+ if ["TEAM", "DEPARTMENT", "COST_CENTER", "BUSINESS_UNIT", ].include? value
34
+ @value = value
35
+ else
36
+ @value = MERGE_NONSTANDARD_VALUE
37
+ end
38
+
39
+ self
40
+ end
41
+
42
+ def self.build_from_hash(value)
43
+ IssueStatusEnum.new.build_from_hash(value)
35
44
  end
36
45
  end
46
+
37
47
  end
@@ -53,7 +53,7 @@ module MergeHRISClient
53
53
  :'id' => :'String',
54
54
  :'status' => :'IssueStatusEnum',
55
55
  :'error_description' => :'String',
56
- :'end_user' => :'Hash<String, AnyType>',
56
+ :'end_user' => :'Hash<String, Object>',
57
57
  :'first_incident_time' => :'Time',
58
58
  :'last_incident_time' => :'Time',
59
59
  :'is_muted' => :'Boolean'