finch-api 0.1.0.pre.alpha.49 → 0.1.0.pre.alpha.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +1 -1
  4. data/lib/finch_api/models/hris/employment_data.rb +36 -1
  5. data/lib/finch_api/models/hris/individual.rb +30 -1
  6. data/lib/finch_api/models/sandbox/directory_create_params.rb +65 -1
  7. data/lib/finch_api/models/sandbox/employment_update_params.rb +36 -1
  8. data/lib/finch_api/models/sandbox/employment_update_response.rb +36 -1
  9. data/lib/finch_api/models/sandbox/individual_update_params.rb +28 -1
  10. data/lib/finch_api/models/sandbox/individual_update_response.rb +30 -1
  11. data/lib/finch_api/resources/sandbox/employment.rb +9 -1
  12. data/lib/finch_api/resources/sandbox/individual.rb +3 -1
  13. data/lib/finch_api/version.rb +1 -1
  14. data/rbi/finch_api/models/hris/employment_data.rbi +38 -0
  15. data/rbi/finch_api/models/hris/individual.rbi +78 -0
  16. data/rbi/finch_api/models/sandbox/directory_create_params.rbi +119 -3
  17. data/rbi/finch_api/models/sandbox/employment_update_params.rbi +38 -0
  18. data/rbi/finch_api/models/sandbox/employment_update_response.rbi +41 -3
  19. data/rbi/finch_api/models/sandbox/individual_update_params.rbi +78 -0
  20. data/rbi/finch_api/models/sandbox/individual_update_response.rbi +78 -0
  21. data/rbi/finch_api/resources/sandbox/employment.rbi +15 -0
  22. data/rbi/finch_api/resources/sandbox/individual.rbi +7 -0
  23. data/sig/finch_api/models/hris/employment_data.rbs +20 -0
  24. data/sig/finch_api/models/hris/individual.rbs +26 -0
  25. data/sig/finch_api/models/sandbox/directory_create_params.rbs +49 -3
  26. data/sig/finch_api/models/sandbox/employment_update_params.rbs +21 -1
  27. data/sig/finch_api/models/sandbox/employment_update_response.rbs +23 -3
  28. data/sig/finch_api/models/sandbox/individual_update_params.rbs +26 -0
  29. data/sig/finch_api/models/sandbox/individual_update_response.rbs +26 -0
  30. data/sig/finch_api/resources/sandbox/employment.rbs +4 -0
  31. data/sig/finch_api/resources/sandbox/individual.rbs +1 -0
  32. metadata +2 -2
@@ -64,6 +64,17 @@ module FinchAPI
64
64
  sig { returns(T.nilable(String)) }
65
65
  attr_accessor :last_name
66
66
 
67
+ # The employee's marital status, used for beneficiary designation and spousal
68
+ # consent workflows.
69
+ sig do
70
+ returns(
71
+ T.nilable(
72
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::OrSymbol
73
+ )
74
+ )
75
+ end
76
+ attr_accessor :marital_status
77
+
67
78
  # The legal middle name of the individual.
68
79
  sig { returns(T.nilable(String)) }
69
80
  attr_accessor :middle_name
@@ -119,6 +130,10 @@ module FinchAPI
119
130
  FinchAPI::Sandbox::IndividualUpdateParams::Gender::OrSymbol
120
131
  ),
121
132
  last_name: T.nilable(String),
133
+ marital_status:
134
+ T.nilable(
135
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::OrSymbol
136
+ ),
122
137
  middle_name: T.nilable(String),
123
138
  phone_numbers:
124
139
  T.nilable(
@@ -150,6 +165,9 @@ module FinchAPI
150
165
  gender: nil,
151
166
  # The legal last name of the individual.
152
167
  last_name: nil,
168
+ # The employee's marital status, used for beneficiary designation and spousal
169
+ # consent workflows.
170
+ marital_status: nil,
153
171
  # The legal middle name of the individual.
154
172
  middle_name: nil,
155
173
  phone_numbers: nil,
@@ -185,6 +203,10 @@ module FinchAPI
185
203
  FinchAPI::Sandbox::IndividualUpdateParams::Gender::OrSymbol
186
204
  ),
187
205
  last_name: T.nilable(String),
206
+ marital_status:
207
+ T.nilable(
208
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::OrSymbol
209
+ ),
188
210
  middle_name: T.nilable(String),
189
211
  phone_numbers:
190
212
  T.nilable(
@@ -396,6 +418,62 @@ module FinchAPI
396
418
  end
397
419
  end
398
420
 
421
+ # The employee's marital status, used for beneficiary designation and spousal
422
+ # consent workflows.
423
+ module MaritalStatus
424
+ extend FinchAPI::Internal::Type::Enum
425
+
426
+ TaggedSymbol =
427
+ T.type_alias do
428
+ T.all(
429
+ Symbol,
430
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus
431
+ )
432
+ end
433
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
434
+
435
+ SINGLE =
436
+ T.let(
437
+ :single,
438
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::TaggedSymbol
439
+ )
440
+ MARRIED =
441
+ T.let(
442
+ :married,
443
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::TaggedSymbol
444
+ )
445
+ DIVORCED =
446
+ T.let(
447
+ :divorced,
448
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::TaggedSymbol
449
+ )
450
+ WIDOWED =
451
+ T.let(
452
+ :widowed,
453
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::TaggedSymbol
454
+ )
455
+ DOMESTIC_PARTNER =
456
+ T.let(
457
+ :domestic_partner,
458
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::TaggedSymbol
459
+ )
460
+ UNKNOWN =
461
+ T.let(
462
+ :unknown,
463
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::TaggedSymbol
464
+ )
465
+
466
+ sig do
467
+ override.returns(
468
+ T::Array[
469
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::TaggedSymbol
470
+ ]
471
+ )
472
+ end
473
+ def self.values
474
+ end
475
+ end
476
+
399
477
  class PhoneNumber < FinchAPI::Internal::Type::BaseModel
400
478
  OrHash =
401
479
  T.type_alias do
@@ -67,6 +67,17 @@ module FinchAPI
67
67
  sig { returns(T.nilable(String)) }
68
68
  attr_accessor :last_name
69
69
 
70
+ # The employee's marital status, used for beneficiary designation and spousal
71
+ # consent workflows.
72
+ sig do
73
+ returns(
74
+ T.nilable(
75
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
76
+ )
77
+ )
78
+ end
79
+ attr_accessor :marital_status
80
+
70
81
  # The legal middle name of the individual.
71
82
  sig { returns(T.nilable(String)) }
72
83
  attr_accessor :middle_name
@@ -122,6 +133,10 @@ module FinchAPI
122
133
  FinchAPI::Models::Sandbox::IndividualUpdateResponse::Gender::OrSymbol
123
134
  ),
124
135
  last_name: T.nilable(String),
136
+ marital_status:
137
+ T.nilable(
138
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::OrSymbol
139
+ ),
125
140
  middle_name: T.nilable(String),
126
141
  phone_numbers:
127
142
  T.nilable(
@@ -153,6 +168,9 @@ module FinchAPI
153
168
  gender: nil,
154
169
  # The legal last name of the individual.
155
170
  last_name: nil,
171
+ # The employee's marital status, used for beneficiary designation and spousal
172
+ # consent workflows.
173
+ marital_status: nil,
156
174
  # The legal middle name of the individual.
157
175
  middle_name: nil,
158
176
  phone_numbers: nil,
@@ -189,6 +207,10 @@ module FinchAPI
189
207
  FinchAPI::Models::Sandbox::IndividualUpdateResponse::Gender::TaggedSymbol
190
208
  ),
191
209
  last_name: T.nilable(String),
210
+ marital_status:
211
+ T.nilable(
212
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
213
+ ),
192
214
  middle_name: T.nilable(String),
193
215
  phone_numbers:
194
216
  T.nilable(
@@ -402,6 +424,62 @@ module FinchAPI
402
424
  end
403
425
  end
404
426
 
427
+ # The employee's marital status, used for beneficiary designation and spousal
428
+ # consent workflows.
429
+ module MaritalStatus
430
+ extend FinchAPI::Internal::Type::Enum
431
+
432
+ TaggedSymbol =
433
+ T.type_alias do
434
+ T.all(
435
+ Symbol,
436
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus
437
+ )
438
+ end
439
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
440
+
441
+ SINGLE =
442
+ T.let(
443
+ :single,
444
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
445
+ )
446
+ MARRIED =
447
+ T.let(
448
+ :married,
449
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
450
+ )
451
+ DIVORCED =
452
+ T.let(
453
+ :divorced,
454
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
455
+ )
456
+ WIDOWED =
457
+ T.let(
458
+ :widowed,
459
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
460
+ )
461
+ DOMESTIC_PARTNER =
462
+ T.let(
463
+ :domestic_partner,
464
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
465
+ )
466
+ UNKNOWN =
467
+ T.let(
468
+ :unknown,
469
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
470
+ )
471
+
472
+ sig do
473
+ override.returns(
474
+ T::Array[
475
+ FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus::TaggedSymbol
476
+ ]
477
+ )
478
+ end
479
+ def self.values
480
+ end
481
+ end
482
+
405
483
  class PhoneNumber < FinchAPI::Internal::Type::BaseModel
406
484
  OrHash =
407
485
  T.type_alias do
@@ -33,10 +33,12 @@ module FinchAPI
33
33
  T.nilable(
34
34
  FinchAPI::Sandbox::EmploymentUpdateParams::FlsaStatus::OrSymbol
35
35
  ),
36
+ highly_compensated_employee: T.nilable(T::Boolean),
36
37
  income: T.nilable(FinchAPI::Income::OrHash),
37
38
  income_history:
38
39
  T.nilable(T::Array[T.nilable(FinchAPI::Income::OrHash)]),
39
40
  is_active: T.nilable(T::Boolean),
41
+ key_employee: T.nilable(T::Boolean),
40
42
  last_name: T.nilable(String),
41
43
  latest_rehire_date: T.nilable(String),
42
44
  location: T.nilable(FinchAPI::Location::OrHash),
@@ -48,6 +50,8 @@ module FinchAPI
48
50
  source_id: T.nilable(String),
49
51
  start_date: T.nilable(String),
50
52
  title: T.nilable(String),
53
+ union_code: T.nilable(String),
54
+ union_local: T.nilable(String),
51
55
  request_options: FinchAPI::RequestOptions::OrHash
52
56
  ).returns(FinchAPI::Models::Sandbox::EmploymentUpdateResponse)
53
57
  end
@@ -71,6 +75,9 @@ module FinchAPI
71
75
  # The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
72
76
  # `unknown`.
73
77
  flsa_status: nil,
78
+ # IRS flag indicating whether the employee is classified as a Highly Compensated
79
+ # Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
80
+ highly_compensated_employee: nil,
74
81
  # The employee's income as reported by the provider. This may not always be
75
82
  # annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
76
83
  # depending on what information the provider returns.
@@ -79,6 +86,9 @@ module FinchAPI
79
86
  income_history: nil,
80
87
  # `true` if the individual an an active employee or contractor at the company.
81
88
  is_active: nil,
89
+ # IRS flag indicating whether the employee is classified as a Key Employee for
90
+ # top-heavy testing purposes. US-only.
91
+ key_employee: nil,
82
92
  # The legal last name of the individual.
83
93
  last_name: nil,
84
94
  latest_rehire_date: nil,
@@ -92,6 +102,11 @@ module FinchAPI
92
102
  start_date: nil,
93
103
  # The current title of the individual.
94
104
  title: nil,
105
+ # The code identifying the union the employee is a member of, as configured in the
106
+ # payroll system.
107
+ union_code: nil,
108
+ # The local chapter or local number within the employee's union.
109
+ union_local: nil,
95
110
  request_options: {}
96
111
  )
97
112
  end
@@ -26,6 +26,10 @@ module FinchAPI
26
26
  FinchAPI::Sandbox::IndividualUpdateParams::Gender::OrSymbol
27
27
  ),
28
28
  last_name: T.nilable(String),
29
+ marital_status:
30
+ T.nilable(
31
+ FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus::OrSymbol
32
+ ),
29
33
  middle_name: T.nilable(String),
30
34
  phone_numbers:
31
35
  T.nilable(
@@ -57,6 +61,9 @@ module FinchAPI
57
61
  gender: nil,
58
62
  # The legal last name of the individual.
59
63
  last_name: nil,
64
+ # The employee's marital status, used for beneficiary designation and spousal
65
+ # consent workflows.
66
+ marital_status: nil,
60
67
  # The legal middle name of the individual.
61
68
  middle_name: nil,
62
69
  phone_numbers: nil,
@@ -18,7 +18,9 @@ module FinchAPI
18
18
  end_date: String?,
19
19
  first_name: String?,
20
20
  flsa_status: FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::flsa_status?,
21
+ highly_compensated_employee: bool?,
21
22
  is_active: bool?,
23
+ key_employee: bool?,
22
24
  last_name: String?,
23
25
  latest_rehire_date: String?,
24
26
  location: FinchAPI::Location?,
@@ -26,6 +28,8 @@ module FinchAPI
26
28
  middle_name: String?,
27
29
  start_date: String?,
28
30
  title: String?,
31
+ union_code: String?,
32
+ union_local: String?,
29
33
  custom_fields: ::Array[FinchAPI::HRIS::EmploymentData::EmploymentDataResponseBody::CustomField]?,
30
34
  income: FinchAPI::Income?,
31
35
  income_history: ::Array[FinchAPI::Income?]?,
@@ -50,8 +54,12 @@ module FinchAPI
50
54
 
51
55
  attr_accessor flsa_status: FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::flsa_status?
52
56
 
57
+ attr_accessor highly_compensated_employee: bool?
58
+
53
59
  attr_accessor is_active: bool?
54
60
 
61
+ attr_accessor key_employee: bool?
62
+
55
63
  attr_accessor last_name: String?
56
64
 
57
65
  attr_accessor latest_rehire_date: String?
@@ -66,6 +74,10 @@ module FinchAPI
66
74
 
67
75
  attr_accessor title: String?
68
76
 
77
+ attr_accessor union_code: String?
78
+
79
+ attr_accessor union_local: String?
80
+
69
81
  attr_accessor custom_fields: ::Array[FinchAPI::HRIS::EmploymentData::EmploymentDataResponseBody::CustomField]?
70
82
 
71
83
  attr_accessor income: FinchAPI::Income?
@@ -85,7 +97,9 @@ module FinchAPI
85
97
  end_date: String?,
86
98
  first_name: String?,
87
99
  flsa_status: FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::flsa_status?,
100
+ highly_compensated_employee: bool?,
88
101
  is_active: bool?,
102
+ key_employee: bool?,
89
103
  last_name: String?,
90
104
  latest_rehire_date: String?,
91
105
  location: FinchAPI::Location?,
@@ -93,6 +107,8 @@ module FinchAPI
93
107
  middle_name: String?,
94
108
  start_date: String?,
95
109
  title: String?,
110
+ union_code: String?,
111
+ union_local: String?,
96
112
  ?custom_fields: ::Array[FinchAPI::HRIS::EmploymentData::EmploymentDataResponseBody::CustomField]?,
97
113
  ?income: FinchAPI::Income?,
98
114
  ?income_history: ::Array[FinchAPI::Income?]?,
@@ -109,7 +125,9 @@ module FinchAPI
109
125
  end_date: String?,
110
126
  first_name: String?,
111
127
  flsa_status: FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::flsa_status?,
128
+ highly_compensated_employee: bool?,
112
129
  is_active: bool?,
130
+ key_employee: bool?,
113
131
  last_name: String?,
114
132
  latest_rehire_date: String?,
115
133
  location: FinchAPI::Location?,
@@ -117,6 +135,8 @@ module FinchAPI
117
135
  middle_name: String?,
118
136
  start_date: String?,
119
137
  title: String?,
138
+ union_code: String?,
139
+ union_local: String?,
120
140
  custom_fields: ::Array[FinchAPI::HRIS::EmploymentData::EmploymentDataResponseBody::CustomField]?,
121
141
  income: FinchAPI::Income?,
122
142
  income_history: ::Array[FinchAPI::Income?]?,
@@ -16,6 +16,7 @@ module FinchAPI
16
16
  first_name: String?,
17
17
  gender: FinchAPI::Models::HRIS::Individual::IndividualResponseBody::gender?,
18
18
  last_name: String?,
19
+ marital_status: FinchAPI::Models::HRIS::Individual::IndividualResponseBody::marital_status?,
19
20
  middle_name: String?,
20
21
  phone_numbers: ::Array[FinchAPI::HRIS::Individual::IndividualResponseBody::PhoneNumber?]?,
21
22
  preferred_name: String?,
@@ -38,6 +39,8 @@ module FinchAPI
38
39
 
39
40
  attr_accessor last_name: String?
40
41
 
42
+ attr_accessor marital_status: FinchAPI::Models::HRIS::Individual::IndividualResponseBody::marital_status?
43
+
41
44
  attr_accessor middle_name: String?
42
45
 
43
46
  attr_accessor phone_numbers: ::Array[FinchAPI::HRIS::Individual::IndividualResponseBody::PhoneNumber?]?
@@ -59,6 +62,7 @@ module FinchAPI
59
62
  first_name: String?,
60
63
  gender: FinchAPI::Models::HRIS::Individual::IndividualResponseBody::gender?,
61
64
  last_name: String?,
65
+ marital_status: FinchAPI::Models::HRIS::Individual::IndividualResponseBody::marital_status?,
62
66
  middle_name: String?,
63
67
  phone_numbers: ::Array[FinchAPI::HRIS::Individual::IndividualResponseBody::PhoneNumber?]?,
64
68
  preferred_name: String?,
@@ -75,6 +79,7 @@ module FinchAPI
75
79
  first_name: String?,
76
80
  gender: FinchAPI::Models::HRIS::Individual::IndividualResponseBody::gender?,
77
81
  last_name: String?,
82
+ marital_status: FinchAPI::Models::HRIS::Individual::IndividualResponseBody::marital_status?,
78
83
  middle_name: String?,
79
84
  phone_numbers: ::Array[FinchAPI::HRIS::Individual::IndividualResponseBody::PhoneNumber?]?,
80
85
  preferred_name: String?,
@@ -122,6 +127,27 @@ module FinchAPI
122
127
  def self?.values: -> ::Array[FinchAPI::Models::HRIS::Individual::IndividualResponseBody::gender]
123
128
  end
124
129
 
130
+ type marital_status =
131
+ :single
132
+ | :married
133
+ | :divorced
134
+ | :widowed
135
+ | :domestic_partner
136
+ | :unknown
137
+
138
+ module MaritalStatus
139
+ extend FinchAPI::Internal::Type::Enum
140
+
141
+ SINGLE: :single
142
+ MARRIED: :married
143
+ DIVORCED: :divorced
144
+ WIDOWED: :widowed
145
+ DOMESTIC_PARTNER: :domestic_partner
146
+ UNKNOWN: :unknown
147
+
148
+ def self?.values: -> ::Array[FinchAPI::Models::HRIS::Individual::IndividualResponseBody::marital_status]
149
+ end
150
+
125
151
  type phone_number =
126
152
  {
127
153
  data: String?,
@@ -40,13 +40,16 @@ module FinchAPI
40
40
  first_name: String?,
41
41
  flsa_status: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::flsa_status?,
42
42
  gender: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::gender?,
43
+ highly_compensated_employee: bool?,
43
44
  income: FinchAPI::Income?,
44
45
  income_history: ::Array[FinchAPI::Income?]?,
45
46
  is_active: bool?,
47
+ key_employee: bool?,
46
48
  last_name: String?,
47
49
  latest_rehire_date: String?,
48
50
  location: FinchAPI::Location?,
49
51
  manager: FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager?,
52
+ marital_status: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::marital_status?,
50
53
  middle_name: String?,
51
54
  phone_numbers: ::Array[FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber?]?,
52
55
  preferred_name: String?,
@@ -54,7 +57,9 @@ module FinchAPI
54
57
  source_id: String?,
55
58
  ssn: String?,
56
59
  start_date: String?,
57
- title: String?
60
+ title: String?,
61
+ union_code: String?,
62
+ union_local: String?
58
63
  }
59
64
 
60
65
  class Body < FinchAPI::Internal::Type::BaseModel
@@ -84,12 +89,16 @@ module FinchAPI
84
89
 
85
90
  attr_accessor gender: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::gender?
86
91
 
92
+ attr_accessor highly_compensated_employee: bool?
93
+
87
94
  attr_accessor income: FinchAPI::Income?
88
95
 
89
96
  attr_accessor income_history: ::Array[FinchAPI::Income?]?
90
97
 
91
98
  attr_accessor is_active: bool?
92
99
 
100
+ attr_accessor key_employee: bool?
101
+
93
102
  attr_accessor last_name: String?
94
103
 
95
104
  attr_accessor latest_rehire_date: String?
@@ -98,6 +107,8 @@ module FinchAPI
98
107
 
99
108
  attr_accessor manager: FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager?
100
109
 
110
+ attr_accessor marital_status: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::marital_status?
111
+
101
112
  attr_accessor middle_name: String?
102
113
 
103
114
  attr_accessor phone_numbers: ::Array[FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber?]?
@@ -114,6 +125,10 @@ module FinchAPI
114
125
 
115
126
  attr_accessor title: String?
116
127
 
128
+ attr_accessor union_code: String?
129
+
130
+ attr_accessor union_local: String?
131
+
117
132
  def initialize: (
118
133
  ?class_code: String?,
119
134
  ?custom_fields: ::Array[FinchAPI::Sandbox::DirectoryCreateParams::Body::CustomField]?,
@@ -128,13 +143,16 @@ module FinchAPI
128
143
  ?first_name: String?,
129
144
  ?flsa_status: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::flsa_status?,
130
145
  ?gender: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::gender?,
146
+ ?highly_compensated_employee: bool?,
131
147
  ?income: FinchAPI::Income?,
132
148
  ?income_history: ::Array[FinchAPI::Income?]?,
133
149
  ?is_active: bool?,
150
+ ?key_employee: bool?,
134
151
  ?last_name: String?,
135
152
  ?latest_rehire_date: String?,
136
153
  ?location: FinchAPI::Location?,
137
154
  ?manager: FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager?,
155
+ ?marital_status: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::marital_status?,
138
156
  ?middle_name: String?,
139
157
  ?phone_numbers: ::Array[FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber?]?,
140
158
  ?preferred_name: String?,
@@ -142,7 +160,9 @@ module FinchAPI
142
160
  ?source_id: String?,
143
161
  ?ssn: String?,
144
162
  ?start_date: String?,
145
- ?title: String?
163
+ ?title: String?,
164
+ ?union_code: String?,
165
+ ?union_local: String?
146
166
  ) -> void
147
167
 
148
168
  def to_hash: -> {
@@ -159,13 +179,16 @@ module FinchAPI
159
179
  first_name: String?,
160
180
  flsa_status: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::flsa_status?,
161
181
  gender: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::gender?,
182
+ highly_compensated_employee: bool?,
162
183
  income: FinchAPI::Income?,
163
184
  income_history: ::Array[FinchAPI::Income?]?,
164
185
  is_active: bool?,
186
+ key_employee: bool?,
165
187
  last_name: String?,
166
188
  latest_rehire_date: String?,
167
189
  location: FinchAPI::Location?,
168
190
  manager: FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager?,
191
+ marital_status: FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::marital_status?,
169
192
  middle_name: String?,
170
193
  phone_numbers: ::Array[FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber?]?,
171
194
  preferred_name: String?,
@@ -173,7 +196,9 @@ module FinchAPI
173
196
  source_id: String?,
174
197
  ssn: String?,
175
198
  start_date: String?,
176
- title: String?
199
+ title: String?,
200
+ union_code: String?,
201
+ union_local: String?
177
202
  }
178
203
 
179
204
  type custom_field =
@@ -392,6 +417,27 @@ module FinchAPI
392
417
  def to_hash: -> { id: String }
393
418
  end
394
419
 
420
+ type marital_status =
421
+ :single
422
+ | :married
423
+ | :divorced
424
+ | :widowed
425
+ | :domestic_partner
426
+ | :unknown
427
+
428
+ module MaritalStatus
429
+ extend FinchAPI::Internal::Type::Enum
430
+
431
+ SINGLE: :single
432
+ MARRIED: :married
433
+ DIVORCED: :divorced
434
+ WIDOWED: :widowed
435
+ DOMESTIC_PARTNER: :domestic_partner
436
+ UNKNOWN: :unknown
437
+
438
+ def self?.values: -> ::Array[FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::marital_status]
439
+ end
440
+
395
441
  type phone_number =
396
442
  {
397
443
  data: String?,
@@ -12,9 +12,11 @@ module FinchAPI
12
12
  end_date: String?,
13
13
  first_name: String?,
14
14
  flsa_status: FinchAPI::Models::Sandbox::EmploymentUpdateParams::flsa_status?,
15
+ highly_compensated_employee: bool?,
15
16
  income: FinchAPI::Income?,
16
17
  income_history: ::Array[FinchAPI::Income?]?,
17
18
  is_active: bool?,
19
+ key_employee: bool?,
18
20
  last_name: String?,
19
21
  latest_rehire_date: String?,
20
22
  location: FinchAPI::Location?,
@@ -22,7 +24,9 @@ module FinchAPI
22
24
  middle_name: String?,
23
25
  source_id: String?,
24
26
  start_date: String?,
25
- title: String?
27
+ title: String?,
28
+ union_code: String?,
29
+ union_local: String?
26
30
  }
27
31
  & FinchAPI::Internal::Type::request_parameters
28
32
 
@@ -48,12 +52,16 @@ module FinchAPI
48
52
 
49
53
  attr_accessor flsa_status: FinchAPI::Models::Sandbox::EmploymentUpdateParams::flsa_status?
50
54
 
55
+ attr_accessor highly_compensated_employee: bool?
56
+
51
57
  attr_accessor income: FinchAPI::Income?
52
58
 
53
59
  attr_accessor income_history: ::Array[FinchAPI::Income?]?
54
60
 
55
61
  attr_accessor is_active: bool?
56
62
 
63
+ attr_accessor key_employee: bool?
64
+
57
65
  attr_accessor last_name: String?
58
66
 
59
67
  attr_accessor latest_rehire_date: String?
@@ -70,6 +78,10 @@ module FinchAPI
70
78
 
71
79
  attr_accessor title: String?
72
80
 
81
+ attr_accessor union_code: String?
82
+
83
+ attr_accessor union_local: String?
84
+
73
85
  def initialize: (
74
86
  individual_id: String,
75
87
  ?class_code: String?,
@@ -80,9 +92,11 @@ module FinchAPI
80
92
  ?end_date: String?,
81
93
  ?first_name: String?,
82
94
  ?flsa_status: FinchAPI::Models::Sandbox::EmploymentUpdateParams::flsa_status?,
95
+ ?highly_compensated_employee: bool?,
83
96
  ?income: FinchAPI::Income?,
84
97
  ?income_history: ::Array[FinchAPI::Income?]?,
85
98
  ?is_active: bool?,
99
+ ?key_employee: bool?,
86
100
  ?last_name: String?,
87
101
  ?latest_rehire_date: String?,
88
102
  ?location: FinchAPI::Location?,
@@ -91,6 +105,8 @@ module FinchAPI
91
105
  ?source_id: String?,
92
106
  ?start_date: String?,
93
107
  ?title: String?,
108
+ ?union_code: String?,
109
+ ?union_local: String?,
94
110
  ?request_options: FinchAPI::request_opts
95
111
  ) -> void
96
112
 
@@ -104,9 +120,11 @@ module FinchAPI
104
120
  end_date: String?,
105
121
  first_name: String?,
106
122
  flsa_status: FinchAPI::Models::Sandbox::EmploymentUpdateParams::flsa_status?,
123
+ highly_compensated_employee: bool?,
107
124
  income: FinchAPI::Income?,
108
125
  income_history: ::Array[FinchAPI::Income?]?,
109
126
  is_active: bool?,
127
+ key_employee: bool?,
110
128
  last_name: String?,
111
129
  latest_rehire_date: String?,
112
130
  location: FinchAPI::Location?,
@@ -115,6 +133,8 @@ module FinchAPI
115
133
  source_id: String?,
116
134
  start_date: String?,
117
135
  title: String?,
136
+ union_code: String?,
137
+ union_local: String?,
118
138
  request_options: FinchAPI::RequestOptions
119
139
  }
120
140