merge_hris_client 2.0.4 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) 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/Earning.md +0 -2
  6. data/docs/Employee.md +4 -0
  7. data/docs/EmployeeRequest.md +4 -0
  8. data/docs/EndUserDetailsRequest.md +9 -7
  9. data/docs/LinkToken.md +3 -1
  10. data/docs/LinkedAccountsApi.md +2 -0
  11. data/docs/RemoteResponse.md +3 -1
  12. data/docs/ResponseTypeEnum.md +15 -0
  13. data/docs/SyncStatus.md +2 -2
  14. data/docs/SyncStatusApi.md +1 -1
  15. data/docs/Tax.md +0 -2
  16. data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -0
  17. data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
  18. data/lib/merge_hris_client/models/account_details.rb +15 -4
  19. data/lib/merge_hris_client/models/account_details_and_actions.rb +12 -1
  20. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
  21. data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
  22. data/lib/merge_hris_client/models/categories_enum.rb +17 -7
  23. data/lib/merge_hris_client/models/category_enum.rb +17 -7
  24. data/lib/merge_hris_client/models/country_enum.rb +17 -7
  25. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -1
  26. data/lib/merge_hris_client/models/earning.rb +1 -13
  27. data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
  28. data/lib/merge_hris_client/models/employee.rb +24 -2
  29. data/lib/merge_hris_client/models/employee_request.rb +24 -2
  30. data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
  31. data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
  32. data/lib/merge_hris_client/models/encoding_enum.rb +17 -7
  33. data/lib/merge_hris_client/models/end_user_details_request.rb +28 -11
  34. data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
  35. data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
  36. data/lib/merge_hris_client/models/gender_enum.rb +17 -7
  37. data/lib/merge_hris_client/models/group_type_enum.rb +17 -7
  38. data/lib/merge_hris_client/models/issue.rb +1 -1
  39. data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
  40. data/lib/merge_hris_client/models/link_token.rb +13 -4
  41. data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
  42. data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
  43. data/lib/merge_hris_client/models/meta_response.rb +1 -1
  44. data/lib/merge_hris_client/models/method_enum.rb +17 -7
  45. data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
  46. data/lib/merge_hris_client/models/pay_frequency_enum.rb +17 -7
  47. data/lib/merge_hris_client/models/pay_period_enum.rb +17 -7
  48. data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
  49. data/lib/merge_hris_client/models/reason_enum.rb +17 -7
  50. data/lib/merge_hris_client/models/remote_response.rb +14 -11
  51. data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
  52. data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
  53. data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
  54. data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
  55. data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
  56. data/lib/merge_hris_client/models/sync_status.rb +0 -10
  57. data/lib/merge_hris_client/models/sync_status_status_enum.rb +18 -7
  58. data/lib/merge_hris_client/models/tax.rb +1 -13
  59. data/lib/merge_hris_client/models/time_off_status_enum.rb +17 -7
  60. data/lib/merge_hris_client/models/units_enum.rb +17 -7
  61. data/lib/merge_hris_client/version.rb +1 -1
  62. data/lib/merge_hris_client.rb +1 -1
  63. data/spec/api/linked_accounts_api_spec.rb +1 -0
  64. data/spec/api/sync_status_api_spec.rb +1 -1
  65. data/spec/models/account_details_and_actions_spec.rb +6 -0
  66. data/spec/models/account_details_spec.rb +6 -0
  67. data/spec/models/bank_info_spec.rb +6 -0
  68. data/spec/models/benefit_spec.rb +6 -0
  69. data/spec/models/company_spec.rb +6 -0
  70. data/spec/models/deduction_spec.rb +6 -0
  71. data/spec/models/employee_payroll_run_spec.rb +6 -0
  72. data/spec/models/employee_request_spec.rb +12 -0
  73. data/spec/models/employee_spec.rb +18 -0
  74. data/spec/models/employment_spec.rb +6 -0
  75. data/spec/models/end_user_details_request_spec.rb +6 -0
  76. data/spec/models/group_spec.rb +6 -0
  77. data/spec/models/link_token_spec.rb +6 -0
  78. data/spec/models/location_spec.rb +6 -0
  79. data/spec/models/pay_group_spec.rb +6 -0
  80. data/spec/models/payroll_run_spec.rb +6 -0
  81. data/spec/models/remote_response_spec.rb +6 -0
  82. data/spec/models/response_type_enum_spec.rb +28 -0
  83. data/spec/models/team_spec.rb +6 -0
  84. data/spec/models/time_off_balance_spec.rb +6 -0
  85. data/spec/models/time_off_spec.rb +6 -0
  86. metadata +106 -102
@@ -265,18 +265,28 @@ module MergeHRISClient
265
265
  ZM = "ZM".freeze
266
266
  ZW = "ZW".freeze
267
267
 
268
- # Builds the enum from string
269
- # @param [String] The enum value in the form of the string
270
- # @return [String] The enum value
271
- def self.build_from_hash(value)
272
- new.build_from_hash(value)
273
- end
268
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
269
+
270
+ attr_accessor :value
271
+ attr_accessor :raw_value
274
272
 
275
273
  # Builds the enum from string
276
274
  # @param [String] The enum value in the form of the string
277
275
  # @return [String] The enum value
278
276
  def build_from_hash(value)
279
- value
277
+ @raw_value = value
278
+ if ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "KP", "MK", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "KR", "SS", "ES", "LK", "SD", "SR", "SJ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "UM", "US", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", ].include? value
279
+ @value = value
280
+ else
281
+ @value = MERGE_NONSTANDARD_VALUE
282
+ end
283
+
284
+ self
285
+ end
286
+
287
+ def self.build_from_hash(value)
288
+ CountryEnum.new.build_from_hash(value)
280
289
  end
281
290
  end
291
+
282
292
  end
@@ -61,7 +61,7 @@ module MergeHRISClient
61
61
  :'base_url_override' => :'String',
62
62
  :'data' => :'String',
63
63
  :'multipart_form_data' => :'Array<MultipartFormFieldRequest>',
64
- :'headers' => :'Hash<String, AnyType>',
64
+ :'headers' => :'Hash<String, Object>',
65
65
  :'request_format' => :'RequestFormatEnum',
66
66
  :'normalize_response' => :'Boolean'
67
67
  }
@@ -26,8 +26,6 @@ module MergeHRISClient
26
26
  # The type of earning.
27
27
  attr_accessor :type
28
28
 
29
- attr_accessor :remote_data
30
-
31
29
  # Indicates whether or not this object has been deleted by third party webhooks.
32
30
  attr_accessor :remote_was_deleted
33
31
 
@@ -38,7 +36,6 @@ module MergeHRISClient
38
36
  :'employee_payroll_run' => :'employee_payroll_run',
39
37
  :'amount' => :'amount',
40
38
  :'type' => :'type',
41
- :'remote_data' => :'remote_data',
42
39
  :'remote_was_deleted' => :'remote_was_deleted'
43
40
  }
44
41
  end
@@ -55,7 +52,6 @@ module MergeHRISClient
55
52
  :'employee_payroll_run' => :'String',
56
53
  :'amount' => :'Float',
57
54
  :'type' => :'EarningTypeEnum',
58
- :'remote_data' => :'Array<Hash<String, AnyType>>',
59
55
  :'remote_was_deleted' => :'Boolean'
60
56
  }
61
57
  end
@@ -66,7 +62,6 @@ module MergeHRISClient
66
62
  :'employee_payroll_run',
67
63
  :'amount',
68
64
  :'type',
69
- :'remote_data',
70
65
  ])
71
66
  end
72
67
 
@@ -101,12 +96,6 @@ module MergeHRISClient
101
96
  self.type = attributes[:'type']
102
97
  end
103
98
 
104
- if attributes.key?(:'remote_data')
105
- if (value = attributes[:'remote_data']).is_a?(Array)
106
- self.remote_data = value
107
- end
108
- end
109
-
110
99
  if attributes.key?(:'remote_was_deleted')
111
100
  self.remote_was_deleted = attributes[:'remote_was_deleted']
112
101
  end
@@ -134,7 +123,6 @@ module MergeHRISClient
134
123
  employee_payroll_run == o.employee_payroll_run &&
135
124
  amount == o.amount &&
136
125
  type == o.type &&
137
- remote_data == o.remote_data &&
138
126
  remote_was_deleted == o.remote_was_deleted
139
127
  end
140
128
 
@@ -147,7 +135,7 @@ module MergeHRISClient
147
135
  # Calculates hash code according to all attributes.
148
136
  # @return [Integer] Hash code
149
137
  def hash
150
- [id, employee_payroll_run, amount, type, remote_data, remote_was_deleted].hash
138
+ [id, employee_payroll_run, amount, type, remote_was_deleted].hash
151
139
  end
152
140
 
153
141
  # Builds the object from hash
@@ -20,18 +20,28 @@ module MergeHRISClient
20
20
  OVERTIME = "OVERTIME".freeze
21
21
  BONUS = "BONUS".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 ["SALARY", "REIMBURSEMENT", "OVERTIME", "BONUS", ].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
+ EarningTypeEnum.new.build_from_hash(value)
35
44
  end
36
45
  end
46
+
37
47
  end
@@ -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
@@ -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
@@ -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
+ EmploymentStatusEnum.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
+ EmploymentTypeEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -19,18 +19,28 @@ module MergeHRISClient
19
19
  BASE64 = "BASE64".freeze
20
20
  GZIP_BASE64 = "GZIP_BASE64".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 ["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
+ EncodingEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
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
+ EthnicityEnum.new.build_from_hash(value)
39
48
  end
40
49
  end
50
+
41
51
  end