finch-api 0.1.0.pre.alpha.48 → 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 (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/finch_api/models/base_webhook_event.rb +2 -5
  5. data/lib/finch_api/models/create_access_token_response.rb +2 -5
  6. data/lib/finch_api/models/hris/benefit_create_params.rb +3 -2
  7. data/lib/finch_api/models/hris/benefit_list_params.rb +6 -2
  8. data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +6 -2
  9. data/lib/finch_api/models/hris/benefit_register_params.rb +6 -2
  10. data/lib/finch_api/models/hris/benefit_retrieve_params.rb +6 -2
  11. data/lib/finch_api/models/hris/benefit_update_params.rb +6 -2
  12. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +6 -2
  13. data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +7 -2
  14. data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +3 -2
  15. data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +7 -2
  16. data/lib/finch_api/models/hris/company_retrieve_params.rb +6 -2
  17. data/lib/finch_api/models/hris/directory_list_individuals_params.rb +6 -2
  18. data/lib/finch_api/models/hris/directory_list_params.rb +6 -2
  19. data/lib/finch_api/models/hris/document_list_params.rb +3 -2
  20. data/lib/finch_api/models/hris/document_retreive_params.rb +6 -2
  21. data/lib/finch_api/models/hris/employment_data.rb +36 -1
  22. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +6 -2
  23. data/lib/finch_api/models/hris/individual.rb +30 -1
  24. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +6 -2
  25. data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +6 -2
  26. data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +6 -2
  27. data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +6 -2
  28. data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +6 -2
  29. data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +3 -2
  30. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +6 -2
  31. data/lib/finch_api/models/hris/payment_list_params.rb +3 -2
  32. data/lib/finch_api/models/introspection.rb +2 -5
  33. data/lib/finch_api/models/payroll/pay_group_list_params.rb +6 -2
  34. data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +6 -2
  35. data/lib/finch_api/models/sandbox/connection_create_response.rb +2 -4
  36. data/lib/finch_api/models/sandbox/connections/account_create_response.rb +2 -4
  37. data/lib/finch_api/models/sandbox/connections/account_update_response.rb +2 -4
  38. data/lib/finch_api/models/sandbox/directory_create_params.rb +65 -1
  39. data/lib/finch_api/models/sandbox/employment_update_params.rb +36 -1
  40. data/lib/finch_api/models/sandbox/employment_update_response.rb +36 -1
  41. data/lib/finch_api/models/sandbox/individual_update_params.rb +28 -1
  42. data/lib/finch_api/models/sandbox/individual_update_response.rb +30 -1
  43. data/lib/finch_api/resources/hris/benefits/individuals.rb +15 -4
  44. data/lib/finch_api/resources/hris/benefits.rb +21 -6
  45. data/lib/finch_api/resources/hris/company.rb +4 -1
  46. data/lib/finch_api/resources/hris/directory.rb +4 -1
  47. data/lib/finch_api/resources/hris/documents.rb +5 -2
  48. data/lib/finch_api/resources/hris/employments.rb +4 -1
  49. data/lib/finch_api/resources/hris/individuals.rb +4 -1
  50. data/lib/finch_api/resources/hris/pay_statement_item/rules.rb +13 -4
  51. data/lib/finch_api/resources/hris/pay_statement_item.rb +1 -1
  52. data/lib/finch_api/resources/hris/pay_statements.rb +4 -1
  53. data/lib/finch_api/resources/hris/payments.rb +1 -1
  54. data/lib/finch_api/resources/payroll/pay_groups.rb +8 -2
  55. data/lib/finch_api/resources/sandbox/employment.rb +9 -1
  56. data/lib/finch_api/resources/sandbox/individual.rb +3 -1
  57. data/lib/finch_api/version.rb +1 -1
  58. data/rbi/finch_api/models/base_webhook_event.rbi +2 -4
  59. data/rbi/finch_api/models/create_access_token_response.rbi +2 -4
  60. data/rbi/finch_api/models/hris/benefit_create_params.rbi +4 -2
  61. data/rbi/finch_api/models/hris/benefit_list_params.rbi +4 -2
  62. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +4 -2
  63. data/rbi/finch_api/models/hris/benefit_register_params.rbi +4 -2
  64. data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +4 -2
  65. data/rbi/finch_api/models/hris/benefit_update_params.rbi +4 -2
  66. data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +4 -2
  67. data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +4 -2
  68. data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +4 -2
  69. data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +4 -2
  70. data/rbi/finch_api/models/hris/company_retrieve_params.rbi +4 -2
  71. data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +4 -2
  72. data/rbi/finch_api/models/hris/directory_list_params.rbi +4 -2
  73. data/rbi/finch_api/models/hris/document_list_params.rbi +4 -2
  74. data/rbi/finch_api/models/hris/document_retreive_params.rbi +4 -2
  75. data/rbi/finch_api/models/hris/employment_data.rbi +38 -0
  76. data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +4 -2
  77. data/rbi/finch_api/models/hris/individual.rbi +78 -0
  78. data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +4 -2
  79. data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +4 -2
  80. data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +4 -2
  81. data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +4 -2
  82. data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +4 -2
  83. data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +4 -2
  84. data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +4 -2
  85. data/rbi/finch_api/models/hris/payment_list_params.rbi +4 -2
  86. data/rbi/finch_api/models/introspection.rbi +2 -4
  87. data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +4 -2
  88. data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +4 -2
  89. data/rbi/finch_api/models/sandbox/connection_create_response.rbi +2 -2
  90. data/rbi/finch_api/models/sandbox/connections/account_create_response.rbi +2 -2
  91. data/rbi/finch_api/models/sandbox/connections/account_update_response.rbi +2 -2
  92. data/rbi/finch_api/models/sandbox/directory_create_params.rbi +119 -3
  93. data/rbi/finch_api/models/sandbox/employment_update_params.rbi +38 -0
  94. data/rbi/finch_api/models/sandbox/employment_update_response.rbi +41 -3
  95. data/rbi/finch_api/models/sandbox/individual_update_params.rbi +78 -0
  96. data/rbi/finch_api/models/sandbox/individual_update_response.rbi +78 -0
  97. data/rbi/finch_api/resources/hris/benefits/individuals.rbi +8 -4
  98. data/rbi/finch_api/resources/hris/benefits.rbi +12 -6
  99. data/rbi/finch_api/resources/hris/company.rbi +2 -1
  100. data/rbi/finch_api/resources/hris/directory.rbi +2 -1
  101. data/rbi/finch_api/resources/hris/documents.rbi +4 -2
  102. data/rbi/finch_api/resources/hris/employments.rbi +2 -1
  103. data/rbi/finch_api/resources/hris/individuals.rbi +2 -1
  104. data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +8 -4
  105. data/rbi/finch_api/resources/hris/pay_statement_item.rbi +2 -1
  106. data/rbi/finch_api/resources/hris/pay_statements.rbi +2 -1
  107. data/rbi/finch_api/resources/hris/payments.rbi +2 -1
  108. data/rbi/finch_api/resources/payroll/pay_groups.rbi +4 -2
  109. data/rbi/finch_api/resources/sandbox/employment.rbi +15 -0
  110. data/rbi/finch_api/resources/sandbox/individual.rbi +7 -0
  111. data/sig/finch_api/models/hris/employment_data.rbs +20 -0
  112. data/sig/finch_api/models/hris/individual.rbs +26 -0
  113. data/sig/finch_api/models/sandbox/directory_create_params.rbs +49 -3
  114. data/sig/finch_api/models/sandbox/employment_update_params.rbs +21 -1
  115. data/sig/finch_api/models/sandbox/employment_update_response.rbs +23 -3
  116. data/sig/finch_api/models/sandbox/individual_update_params.rbs +26 -0
  117. data/sig/finch_api/models/sandbox/individual_update_response.rbs +26 -0
  118. data/sig/finch_api/resources/sandbox/employment.rbs +4 -0
  119. data/sig/finch_api/resources/sandbox/individual.rbs +1 -0
  120. metadata +2 -2
@@ -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
@@ -25,7 +25,8 @@ module FinchAPI
25
25
  def enroll_many(
26
26
  # Path param
27
27
  benefit_id,
28
- # Query param: The entity IDs to specify which entities' data to access.
28
+ # Query param: The entity IDs to specify which entities' data to access. Provide
29
+ # exactly one entity ID per request; a maximum of one is accepted.
29
30
  entity_ids: nil,
30
31
  # Body param: Array of the individual_id to enroll and a configuration object.
31
32
  individuals: nil,
@@ -45,7 +46,8 @@ module FinchAPI
45
46
  end
46
47
  def enrolled_ids(
47
48
  benefit_id,
48
- # The entity IDs to specify which entities' data to access.
49
+ # The entity IDs to specify which entities' data to access. Provide exactly one
50
+ # entity ID per request; a maximum of one is accepted.
49
51
  entity_ids: nil,
50
52
  request_options: {}
51
53
  )
@@ -66,7 +68,8 @@ module FinchAPI
66
68
  end
67
69
  def retrieve_many_benefits(
68
70
  benefit_id,
69
- # The entity IDs to specify which entities' data to access.
71
+ # The entity IDs to specify which entities' data to access. Provide exactly one
72
+ # entity ID per request; a maximum of one is accepted.
70
73
  entity_ids: nil,
71
74
  # comma-delimited list of stable Finch uuids for each individual. If empty,
72
75
  # defaults to all individuals
@@ -89,7 +92,8 @@ module FinchAPI
89
92
  def unenroll_many(
90
93
  # Path param
91
94
  benefit_id,
92
- # Query param: The entity IDs to specify which entities' data to access.
95
+ # Query param: The entity IDs to specify which entities' data to access. Provide
96
+ # exactly one entity ID per request; a maximum of one is accepted.
93
97
  entity_ids: nil,
94
98
  # Body param: Array of individual_ids to unenroll.
95
99
  individual_ids: nil,
@@ -23,7 +23,8 @@ module FinchAPI
23
23
  ).returns(FinchAPI::HRIS::CreateCompanyBenefitsResponse)
24
24
  end
25
25
  def create(
26
- # Query param: The entity IDs to specify which entities' data to access.
26
+ # Query param: The entity IDs to specify which entities' data to access. Provide
27
+ # exactly one entity ID per request; a maximum of one is accepted.
27
28
  entity_ids: nil,
28
29
  # Body param: The company match for this benefit.
29
30
  company_contribution: nil,
@@ -49,7 +50,8 @@ module FinchAPI
49
50
  end
50
51
  def retrieve(
51
52
  benefit_id,
52
- # The entity IDs to specify which entities' data to access.
53
+ # The entity IDs to specify which entities' data to access. Provide exactly one
54
+ # entity ID per request; a maximum of one is accepted.
53
55
  entity_ids: nil,
54
56
  request_options: {}
55
57
  )
@@ -67,7 +69,8 @@ module FinchAPI
67
69
  def update(
68
70
  # Path param
69
71
  benefit_id,
70
- # Query param: The entity IDs to specify which entities' data to access.
72
+ # Query param: The entity IDs to specify which entities' data to access. Provide
73
+ # exactly one entity ID per request; a maximum of one is accepted.
71
74
  entity_ids: nil,
72
75
  # Body param: Updated name or description.
73
76
  description: nil,
@@ -85,7 +88,8 @@ module FinchAPI
85
88
  )
86
89
  end
87
90
  def list(
88
- # The entity IDs to specify which entities' data to access.
91
+ # The entity IDs to specify which entities' data to access. Provide exactly one
92
+ # entity ID per request; a maximum of one is accepted.
89
93
  entity_ids: nil,
90
94
  request_options: {}
91
95
  )
@@ -101,7 +105,8 @@ module FinchAPI
101
105
  )
102
106
  end
103
107
  def list_supported_benefits(
104
- # The entity IDs to specify which entities' data to access.
108
+ # The entity IDs to specify which entities' data to access. Provide exactly one
109
+ # entity ID per request; a maximum of one is accepted.
105
110
  entity_ids: nil,
106
111
  request_options: {}
107
112
  )
@@ -119,7 +124,8 @@ module FinchAPI
119
124
  ).returns(FinchAPI::HRIS::RegisterCompanyBenefitResponse)
120
125
  end
121
126
  def register(
122
- # Query param: The entity IDs to specify which entities' data to access.
127
+ # Query param: The entity IDs to specify which entities' data to access. Provide
128
+ # exactly one entity ID per request; a maximum of one is accepted.
123
129
  entity_ids: nil,
124
130
  # Body param
125
131
  description: nil,
@@ -12,7 +12,8 @@ module FinchAPI
12
12
  ).returns(FinchAPI::HRIS::HRISCompany)
13
13
  end
14
14
  def retrieve(
15
- # The entity IDs to specify which entities' data to access.
15
+ # The entity IDs to specify which entities' data to access. Provide exactly one
16
+ # entity ID per request; a maximum of one is accepted.
16
17
  entity_ids: nil,
17
18
  request_options: {}
18
19
  )
@@ -18,7 +18,8 @@ module FinchAPI
18
18
  )
19
19
  end
20
20
  def list(
21
- # The entity IDs to specify which entities' data to access.
21
+ # The entity IDs to specify which entities' data to access. Provide exactly one
22
+ # entity ID per request; a maximum of one is accepted.
22
23
  entity_ids: nil,
23
24
  # Number of employees to return (defaults to 100, maximum 10000)
24
25
  limit: nil,
@@ -17,7 +17,8 @@ module FinchAPI
17
17
  ).returns(FinchAPI::Models::HRIS::DocumentListResponse)
18
18
  end
19
19
  def list(
20
- # The entity IDs to specify which entities' data to access.
20
+ # The entity IDs to specify which entities' data to access. Provide exactly one
21
+ # entity ID per request; a maximum of one is accepted.
21
22
  entity_ids: nil,
22
23
  # Comma-delimited list of stable Finch uuids for each individual. If empty,
23
24
  # defaults to all individuals
@@ -45,7 +46,8 @@ module FinchAPI
45
46
  def retreive(
46
47
  # The unique identifier of the document.
47
48
  document_id,
48
- # The entity IDs to specify which entities' data to access.
49
+ # The entity IDs to specify which entities' data to access. Provide exactly one
50
+ # entity ID per request; a maximum of one is accepted.
49
51
  entity_ids: nil,
50
52
  request_options: {}
51
53
  )
@@ -22,7 +22,8 @@ module FinchAPI
22
22
  def retrieve_many(
23
23
  # Body param: The array of batch requests. Maximum 10000 items per request.
24
24
  requests:,
25
- # Query param: The entity IDs to specify which entities' data to access.
25
+ # Query param: The entity IDs to specify which entities' data to access. Provide
26
+ # exactly one entity ID per request; a maximum of one is accepted.
26
27
  entity_ids: nil,
27
28
  request_options: {}
28
29
  )
@@ -26,7 +26,8 @@ module FinchAPI
26
26
  def retrieve_many(
27
27
  # Body param: The array of batch requests. Maximum 10000 items per request.
28
28
  requests:,
29
- # Query param: The entity IDs to specify which entities' data to access.
29
+ # Query param: The entity IDs to specify which entities' data to access. Provide
30
+ # exactly one entity ID per request; a maximum of one is accepted.
30
31
  entity_ids: nil,
31
32
  # Body param
32
33
  options: nil,
@@ -28,7 +28,8 @@ module FinchAPI
28
28
  )
29
29
  end
30
30
  def create(
31
- # Query param: The entity IDs to create the rule for.
31
+ # Query param: The entity IDs to create the rule for. Provide exactly one entity
32
+ # ID per request; a maximum of one is accepted.
32
33
  entity_ids: nil,
33
34
  # Body param: Specifies the fields to be applied when the condition is met.
34
35
  attributes: nil,
@@ -59,7 +60,8 @@ module FinchAPI
59
60
  def update(
60
61
  # Path param
61
62
  rule_id,
62
- # Query param: The entity IDs to update the rule for.
63
+ # Query param: The entity IDs to update the rule for. Provide exactly one entity
64
+ # ID per request; a maximum of one is accepted.
63
65
  entity_ids: nil,
64
66
  # Body param
65
67
  optional_property: nil,
@@ -79,7 +81,8 @@ module FinchAPI
79
81
  )
80
82
  end
81
83
  def list(
82
- # The entity IDs to retrieve rules for.
84
+ # The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
85
+ # a maximum of one is accepted.
83
86
  entity_ids: nil,
84
87
  request_options: {}
85
88
  )
@@ -97,7 +100,8 @@ module FinchAPI
97
100
  end
98
101
  def delete(
99
102
  rule_id,
100
- # The entity IDs to delete the rule for.
103
+ # The entity IDs to delete the rule for. Provide exactly one entity ID per
104
+ # request; a maximum of one is accepted.
101
105
  entity_ids: nil,
102
106
  request_options: {}
103
107
  )
@@ -34,7 +34,8 @@ module FinchAPI
34
34
  # The end date to retrieve pay statement items by via their last seen pay date in
35
35
  # `YYYY-MM-DD` format.
36
36
  end_date: nil,
37
- # The entity IDs to specify which entities' data to access.
37
+ # The entity IDs to specify which entities' data to access. Provide exactly one
38
+ # entity ID per request; a maximum of one is accepted.
38
39
  entity_ids: nil,
39
40
  # Case-insensitive partial match search by pay statement item name.
40
41
  name: nil,
@@ -25,7 +25,8 @@ module FinchAPI
25
25
  def retrieve_many(
26
26
  # Body param: The array of batch requests. Maximum 10 payment_ids per request.
27
27
  requests:,
28
- # Query param: The entity IDs to specify which entities' data to access.
28
+ # Query param: The entity IDs to specify which entities' data to access. Provide
29
+ # exactly one entity ID per request; a maximum of one is accepted.
29
30
  entity_ids: nil,
30
31
  request_options: {}
31
32
  )
@@ -20,7 +20,8 @@ module FinchAPI
20
20
  # The start date to retrieve payments by a company (inclusive) in `YYYY-MM-DD`
21
21
  # format. Filters payments by their **pay_date** field.
22
22
  start_date:,
23
- # The entity IDs to specify which entities' data to access.
23
+ # The entity IDs to specify which entities' data to access. Provide exactly one
24
+ # entity ID per request; a maximum of one is accepted.
24
25
  entity_ids: nil,
25
26
  request_options: {}
26
27
  )
@@ -14,7 +14,8 @@ module FinchAPI
14
14
  end
15
15
  def retrieve(
16
16
  pay_group_id,
17
- # The entity IDs to specify which entities' data to access.
17
+ # The entity IDs to specify which entities' data to access. Provide exactly one
18
+ # entity ID per request; a maximum of one is accepted.
18
19
  entity_ids: nil,
19
20
  request_options: {}
20
21
  )
@@ -34,7 +35,8 @@ module FinchAPI
34
35
  )
35
36
  end
36
37
  def list(
37
- # The entity IDs to specify which entities' data to access.
38
+ # The entity IDs to specify which entities' data to access. Provide exactly one
39
+ # entity ID per request; a maximum of one is accepted.
38
40
  entity_ids: nil,
39
41
  individual_id: nil,
40
42
  pay_frequencies: nil,
@@ -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?,