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
@@ -15,15 +15,19 @@ module FinchAPI
15
15
  required :rule_id, String
16
16
 
17
17
  # @!attribute entity_ids
18
- # The entity IDs to delete the rule for.
18
+ # The entity IDs to delete the rule for. Provide exactly one entity ID per
19
+ # request; a maximum of one is accepted.
19
20
  #
20
21
  # @return [Array<String>, nil]
21
22
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
22
23
 
23
24
  # @!method initialize(rule_id:, entity_ids: nil, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {FinchAPI::Models::HRIS::PayStatementItem::RuleDeleteParams} for more details.
27
+ #
24
28
  # @param rule_id [String]
25
29
  #
26
- # @param entity_ids [Array<String>] The entity IDs to delete the rule for.
30
+ # @param entity_ids [Array<String>] The entity IDs to delete the rule for. Provide exactly one entity ID per request
27
31
  #
28
32
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
29
33
  end
@@ -10,13 +10,17 @@ module FinchAPI
10
10
  include FinchAPI::Internal::Type::RequestParameters
11
11
 
12
12
  # @!attribute entity_ids
13
- # The entity IDs to retrieve rules for.
13
+ # The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
14
+ # a maximum of one is accepted.
14
15
  #
15
16
  # @return [Array<String>, nil]
16
17
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
17
18
 
18
19
  # @!method initialize(entity_ids: nil, request_options: {})
19
- # @param entity_ids [Array<String>] The entity IDs to retrieve rules for.
20
+ # Some parameter documentations has been truncated, see
21
+ # {FinchAPI::Models::HRIS::PayStatementItem::RuleListParams} for more details.
22
+ #
23
+ # @param entity_ids [Array<String>] The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
20
24
  #
21
25
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
22
26
  end
@@ -15,7 +15,8 @@ module FinchAPI
15
15
  required :rule_id, String
16
16
 
17
17
  # @!attribute entity_ids
18
- # The entity IDs to update the rule for.
18
+ # The entity IDs to update the rule for. Provide exactly one entity ID per
19
+ # request; a maximum of one is accepted.
19
20
  #
20
21
  # @return [Array<String>, nil]
21
22
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -26,9 +27,12 @@ module FinchAPI
26
27
  optional :optional_property, FinchAPI::Internal::Type::Unknown, api_name: :optionalProperty
27
28
 
28
29
  # @!method initialize(rule_id:, entity_ids: nil, optional_property: nil, request_options: {})
30
+ # Some parameter documentations has been truncated, see
31
+ # {FinchAPI::Models::HRIS::PayStatementItem::RuleUpdateParams} for more details.
32
+ #
29
33
  # @param rule_id [String]
30
34
  #
31
- # @param entity_ids [Array<String>] The entity IDs to update the rule for.
35
+ # @param entity_ids [Array<String>] The entity IDs to update the rule for. Provide exactly one entity ID per request
32
36
  #
33
37
  # @param optional_property [Object]
34
38
  #
@@ -24,7 +24,8 @@ module FinchAPI
24
24
  optional :end_date, Date
25
25
 
26
26
  # @!attribute entity_ids
27
- # The entity IDs to specify which entities' data to access.
27
+ # The entity IDs to specify which entities' data to access. Provide exactly one
28
+ # entity ID per request; a maximum of one is accepted.
28
29
  #
29
30
  # @return [Array<String>, nil]
30
31
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -56,7 +57,7 @@ module FinchAPI
56
57
  #
57
58
  # @param end_date [Date] The end date to retrieve pay statement items by via their last seen pay date in
58
59
  #
59
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
60
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
60
61
  #
61
62
  # @param name [String] Case-insensitive partial match search by pay statement item name.
62
63
  #
@@ -16,15 +16,19 @@ module FinchAPI
16
16
  -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatementRetrieveManyParams::Request] }
17
17
 
18
18
  # @!attribute entity_ids
19
- # The entity IDs to specify which entities' data to access.
19
+ # The entity IDs to specify which entities' data to access. Provide exactly one
20
+ # entity ID per request; a maximum of one is accepted.
20
21
  #
21
22
  # @return [Array<String>, nil]
22
23
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
23
24
 
24
25
  # @!method initialize(requests:, entity_ids: nil, request_options: {})
26
+ # Some parameter documentations has been truncated, see
27
+ # {FinchAPI::Models::HRIS::PayStatementRetrieveManyParams} for more details.
28
+ #
25
29
  # @param requests [Array<FinchAPI::Models::HRIS::PayStatementRetrieveManyParams::Request>] The array of batch requests. Maximum 10 payment_ids per request.
26
30
  #
27
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
31
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
28
32
  #
29
33
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
30
34
 
@@ -23,7 +23,8 @@ module FinchAPI
23
23
  required :start_date, Date
24
24
 
25
25
  # @!attribute entity_ids
26
- # The entity IDs to specify which entities' data to access.
26
+ # The entity IDs to specify which entities' data to access. Provide exactly one
27
+ # entity ID per request; a maximum of one is accepted.
27
28
  #
28
29
  # @return [Array<String>, nil]
29
30
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -36,7 +37,7 @@ module FinchAPI
36
37
  #
37
38
  # @param start_date [Date] The start date to retrieve payments by a company (inclusive) in `YYYY-MM-DD` for
38
39
  #
39
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
40
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
40
41
  #
41
42
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
42
43
  end
@@ -70,10 +70,7 @@ module FinchAPI
70
70
  -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Introspection::AuthenticationMethod] }
71
71
 
72
72
  # @!attribute company_id
73
- # @deprecated
74
- #
75
- # [DEPRECATED] Use `connection_id` to associate tokens with a Finch connection
76
- # instead of this company ID
73
+ # The Finch UUID of the company associated with the `access_token`.
77
74
  #
78
75
  # @return [String, nil]
79
76
  optional :company_id, String
@@ -153,7 +150,7 @@ module FinchAPI
153
150
  #
154
151
  # @param authentication_methods [Array<FinchAPI::Models::Introspection::AuthenticationMethod>]
155
152
  #
156
- # @param company_id [String] [DEPRECATED] Use `connection_id` to associate tokens with a Finch connection ins
153
+ # @param company_id [String] The Finch UUID of the company associated with the `access_token`.
157
154
  #
158
155
  # @param customer_email [String, nil] The email of your customer you provided to Finch when a connect session was crea
159
156
  #
@@ -9,7 +9,8 @@ module FinchAPI
9
9
  include FinchAPI::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute entity_ids
12
- # The entity IDs to specify which entities' data to access.
12
+ # The entity IDs to specify which entities' data to access. Provide exactly one
13
+ # entity ID per request; a maximum of one is accepted.
13
14
  #
14
15
  # @return [Array<String>, nil]
15
16
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -25,7 +26,10 @@ module FinchAPI
25
26
  optional :pay_frequencies, FinchAPI::Internal::Type::ArrayOf[String]
26
27
 
27
28
  # @!method initialize(entity_ids: nil, individual_id: nil, pay_frequencies: nil, request_options: {})
28
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
29
+ # Some parameter documentations has been truncated, see
30
+ # {FinchAPI::Models::Payroll::PayGroupListParams} for more details.
31
+ #
32
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
29
33
  #
30
34
  # @param individual_id [String]
31
35
  #
@@ -14,15 +14,19 @@ module FinchAPI
14
14
  required :pay_group_id, String
15
15
 
16
16
  # @!attribute entity_ids
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
  #
19
20
  # @return [Array<String>, nil]
20
21
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
21
22
 
22
23
  # @!method initialize(pay_group_id:, entity_ids: nil, request_options: {})
24
+ # Some parameter documentations has been truncated, see
25
+ # {FinchAPI::Models::Payroll::PayGroupRetrieveParams} for more details.
26
+ #
23
27
  # @param pay_group_id [String]
24
28
  #
25
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
29
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
26
30
  #
27
31
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
28
32
  end
@@ -25,9 +25,7 @@ module FinchAPI
25
25
  enum: -> { FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType }
26
26
 
27
27
  # @!attribute company_id
28
- # @deprecated
29
- #
30
- # [DEPRECATED] Use `connection_id` to associate a connection with an access token
28
+ # The Finch UUID of the company associated with the `access_token`.
31
29
  #
32
30
  # @return [String]
33
31
  required :company_id, String
@@ -67,7 +65,7 @@ module FinchAPI
67
65
  #
68
66
  # @param authentication_type [Symbol, FinchAPI::Models::Sandbox::ConnectionCreateResponse::AuthenticationType]
69
67
  #
70
- # @param company_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
68
+ # @param company_id [String] The Finch UUID of the company associated with the `access_token`.
71
69
  #
72
70
  # @param connection_id [String] The ID of the new connection
73
71
  #
@@ -26,9 +26,7 @@ module FinchAPI
26
26
  enum: -> { FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType }
27
27
 
28
28
  # @!attribute company_id
29
- # @deprecated
30
- #
31
- # [DEPRECATED] Use `connection_id` to associate a connection with an access token
29
+ # The Finch UUID of the company associated with the `access_token`.
32
30
  #
33
31
  # @return [String]
34
32
  required :company_id, String
@@ -63,7 +61,7 @@ module FinchAPI
63
61
  #
64
62
  # @param authentication_type [Symbol, FinchAPI::Models::Sandbox::Connections::AccountCreateResponse::AuthenticationType]
65
63
  #
66
- # @param company_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
64
+ # @param company_id [String] The Finch UUID of the company associated with the `access_token`.
67
65
  #
68
66
  # @param connection_id [String] The ID of the new connection
69
67
  #
@@ -21,9 +21,7 @@ module FinchAPI
21
21
  enum: -> { FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType }
22
22
 
23
23
  # @!attribute company_id
24
- # @deprecated
25
- #
26
- # [DEPRECATED] Use `connection_id` to associate a connection with an access token
24
+ # The Finch UUID of the company associated with the `access_token`.
27
25
  #
28
26
  # @return [String]
29
27
  required :company_id, String
@@ -56,7 +54,7 @@ module FinchAPI
56
54
  #
57
55
  # @param authentication_type [Symbol, FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse::AuthenticationType]
58
56
  #
59
- # @param company_id [String] [DEPRECATED] Use `connection_id` to associate a connection with an access token
57
+ # @param company_id [String] The Finch UUID of the company associated with the `access_token`.
60
58
  #
61
59
  # @param connection_id [String] The ID of the new connection
62
60
  #
@@ -122,6 +122,13 @@ module FinchAPI
122
122
  # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Gender, nil]
123
123
  optional :gender, enum: -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::Gender }, nil?: true
124
124
 
125
+ # @!attribute highly_compensated_employee
126
+ # IRS flag indicating whether the employee is classified as a Highly Compensated
127
+ # Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
128
+ #
129
+ # @return [Boolean, nil]
130
+ optional :highly_compensated_employee, FinchAPI::Internal::Type::Boolean, nil?: true
131
+
125
132
  # @!attribute income
126
133
  # The employee's income as reported by the provider. This may not always be
127
134
  # annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
@@ -144,6 +151,13 @@ module FinchAPI
144
151
  # @return [Boolean, nil]
145
152
  optional :is_active, FinchAPI::Internal::Type::Boolean, nil?: true
146
153
 
154
+ # @!attribute key_employee
155
+ # IRS flag indicating whether the employee is classified as a Key Employee for
156
+ # top-heavy testing purposes. US-only.
157
+ #
158
+ # @return [Boolean, nil]
159
+ optional :key_employee, FinchAPI::Internal::Type::Boolean, nil?: true
160
+
147
161
  # @!attribute last_name
148
162
  # The legal last name of the individual.
149
163
  #
@@ -166,6 +180,15 @@ module FinchAPI
166
180
  # @return [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Manager, nil]
167
181
  optional :manager, -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager }, nil?: true
168
182
 
183
+ # @!attribute marital_status
184
+ # The employee's marital status, used for beneficiary designation and spousal
185
+ # consent workflows.
186
+ #
187
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::MaritalStatus, nil]
188
+ optional :marital_status,
189
+ enum: -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::MaritalStatus },
190
+ nil?: true
191
+
169
192
  # @!attribute middle_name
170
193
  # The legal middle name of the individual.
171
194
  #
@@ -219,7 +242,20 @@ module FinchAPI
219
242
  # @return [String, nil]
220
243
  optional :title, String, nil?: true
221
244
 
222
- # @!method initialize(class_code: nil, custom_fields: nil, department: nil, dob: nil, emails: nil, employment: nil, employment_status: nil, encrypted_ssn: nil, end_date: nil, ethnicity: nil, first_name: nil, flsa_status: nil, gender: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, source_id: nil, ssn: nil, start_date: nil, title: nil)
245
+ # @!attribute union_code
246
+ # The code identifying the union the employee is a member of, as configured in the
247
+ # payroll system.
248
+ #
249
+ # @return [String, nil]
250
+ optional :union_code, String, nil?: true
251
+
252
+ # @!attribute union_local
253
+ # The local chapter or local number within the employee's union.
254
+ #
255
+ # @return [String, nil]
256
+ optional :union_local, String, nil?: true
257
+
258
+ # @!method initialize(class_code: nil, custom_fields: nil, department: nil, dob: nil, emails: nil, employment: nil, employment_status: nil, encrypted_ssn: nil, end_date: nil, ethnicity: nil, first_name: nil, flsa_status: nil, gender: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, marital_status: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, source_id: nil, ssn: nil, start_date: nil, title: nil, union_code: nil, union_local: nil)
223
259
  # Some parameter documentations has been truncated, see
224
260
  # {FinchAPI::Models::Sandbox::DirectoryCreateParams::Body} for more details.
225
261
  #
@@ -249,12 +285,16 @@ module FinchAPI
249
285
  #
250
286
  # @param gender [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Gender, nil] The gender of the individual.
251
287
  #
288
+ # @param highly_compensated_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Highly Compensated E
289
+ #
252
290
  # @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
253
291
  #
254
292
  # @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
255
293
  #
256
294
  # @param is_active [Boolean, nil] `true` if the individual an an active employee or contractor at the company.
257
295
  #
296
+ # @param key_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Key Employee for top
297
+ #
258
298
  # @param last_name [String, nil] The legal last name of the individual.
259
299
  #
260
300
  # @param latest_rehire_date [String, nil]
@@ -263,6 +303,8 @@ module FinchAPI
263
303
  #
264
304
  # @param manager [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Manager, nil] The manager object representing the manager of the individual within the org.
265
305
  #
306
+ # @param marital_status [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::MaritalStatus, nil] The employee's marital status, used for beneficiary designation and spousal cons
307
+ #
266
308
  # @param middle_name [String, nil] The legal middle name of the individual.
267
309
  #
268
310
  # @param phone_numbers [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::PhoneNumber, nil>, nil]
@@ -278,6 +320,10 @@ module FinchAPI
278
320
  # @param start_date [String, nil]
279
321
  #
280
322
  # @param title [String, nil] The current title of the individual.
323
+ #
324
+ # @param union_code [String, nil] The code identifying the union the employee is a member of, as configured in the
325
+ #
326
+ # @param union_local [String, nil] The local chapter or local number within the employee's union.
281
327
 
282
328
  class CustomField < FinchAPI::Internal::Type::BaseModel
283
329
  # @!attribute name
@@ -508,6 +554,24 @@ module FinchAPI
508
554
  # @param id [String] A stable Finch `id` (UUID v4) for an individual in the company.
509
555
  end
510
556
 
557
+ # The employee's marital status, used for beneficiary designation and spousal
558
+ # consent workflows.
559
+ #
560
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#marital_status
561
+ module MaritalStatus
562
+ extend FinchAPI::Internal::Type::Enum
563
+
564
+ SINGLE = :single
565
+ MARRIED = :married
566
+ DIVORCED = :divorced
567
+ WIDOWED = :widowed
568
+ DOMESTIC_PARTNER = :domestic_partner
569
+ UNKNOWN = :unknown
570
+
571
+ # @!method self.values
572
+ # @return [Array<Symbol>]
573
+ end
574
+
511
575
  class PhoneNumber < FinchAPI::Internal::Type::BaseModel
512
576
  # @!attribute data
513
577
  #
@@ -69,6 +69,13 @@ module FinchAPI
69
69
  # @return [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateParams::FlsaStatus, nil]
70
70
  optional :flsa_status, enum: -> { FinchAPI::Sandbox::EmploymentUpdateParams::FlsaStatus }, nil?: true
71
71
 
72
+ # @!attribute highly_compensated_employee
73
+ # IRS flag indicating whether the employee is classified as a Highly Compensated
74
+ # Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
75
+ #
76
+ # @return [Boolean, nil]
77
+ optional :highly_compensated_employee, FinchAPI::Internal::Type::Boolean, nil?: true
78
+
72
79
  # @!attribute income
73
80
  # The employee's income as reported by the provider. This may not always be
74
81
  # annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
@@ -91,6 +98,13 @@ module FinchAPI
91
98
  # @return [Boolean, nil]
92
99
  optional :is_active, FinchAPI::Internal::Type::Boolean, nil?: true
93
100
 
101
+ # @!attribute key_employee
102
+ # IRS flag indicating whether the employee is classified as a Key Employee for
103
+ # top-heavy testing purposes. US-only.
104
+ #
105
+ # @return [Boolean, nil]
106
+ optional :key_employee, FinchAPI::Internal::Type::Boolean, nil?: true
107
+
94
108
  # @!attribute last_name
95
109
  # The legal last name of the individual.
96
110
  #
@@ -136,7 +150,20 @@ module FinchAPI
136
150
  # @return [String, nil]
137
151
  optional :title, String, nil?: true
138
152
 
139
- # @!method initialize(individual_id:, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {})
153
+ # @!attribute union_code
154
+ # The code identifying the union the employee is a member of, as configured in the
155
+ # payroll system.
156
+ #
157
+ # @return [String, nil]
158
+ optional :union_code, String, nil?: true
159
+
160
+ # @!attribute union_local
161
+ # The local chapter or local number within the employee's union.
162
+ #
163
+ # @return [String, nil]
164
+ optional :union_local, String, nil?: true
165
+
166
+ # @!method initialize(individual_id:, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil, request_options: {})
140
167
  # Some parameter documentations has been truncated, see
141
168
  # {FinchAPI::Models::Sandbox::EmploymentUpdateParams} for more details.
142
169
  #
@@ -158,12 +185,16 @@ module FinchAPI
158
185
  #
159
186
  # @param flsa_status [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateParams::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
160
187
  #
188
+ # @param highly_compensated_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Highly Compensated E
189
+ #
161
190
  # @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
162
191
  #
163
192
  # @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
164
193
  #
165
194
  # @param is_active [Boolean, nil] `true` if the individual an an active employee or contractor at the company.
166
195
  #
196
+ # @param key_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Key Employee for top
197
+ #
167
198
  # @param last_name [String, nil] The legal last name of the individual.
168
199
  #
169
200
  # @param latest_rehire_date [String, nil]
@@ -180,6 +211,10 @@ module FinchAPI
180
211
  #
181
212
  # @param title [String, nil] The current title of the individual.
182
213
  #
214
+ # @param union_code [String, nil] The code identifying the union the employee is a member of, as configured in the
215
+ #
216
+ # @param union_local [String, nil] The local chapter or local number within the employee's union.
217
+ #
183
218
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
184
219
 
185
220
  class CustomField < FinchAPI::Internal::Type::BaseModel
@@ -67,6 +67,13 @@ module FinchAPI
67
67
  enum: -> { FinchAPI::Models::Sandbox::EmploymentUpdateResponse::FlsaStatus },
68
68
  nil?: true
69
69
 
70
+ # @!attribute highly_compensated_employee
71
+ # IRS flag indicating whether the employee is classified as a Highly Compensated
72
+ # Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
73
+ #
74
+ # @return [Boolean, nil]
75
+ optional :highly_compensated_employee, FinchAPI::Internal::Type::Boolean, nil?: true
76
+
70
77
  # @!attribute income
71
78
  # The employee's income as reported by the provider. This may not always be
72
79
  # annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
@@ -89,6 +96,13 @@ module FinchAPI
89
96
  # @return [Boolean, nil]
90
97
  optional :is_active, FinchAPI::Internal::Type::Boolean, nil?: true
91
98
 
99
+ # @!attribute key_employee
100
+ # IRS flag indicating whether the employee is classified as a Key Employee for
101
+ # top-heavy testing purposes. US-only.
102
+ #
103
+ # @return [Boolean, nil]
104
+ optional :key_employee, FinchAPI::Internal::Type::Boolean, nil?: true
105
+
92
106
  # @!attribute last_name
93
107
  # The legal last name of the individual.
94
108
  #
@@ -134,7 +148,20 @@ module FinchAPI
134
148
  # @return [String, nil]
135
149
  optional :title, String, nil?: true
136
150
 
137
- # @!method initialize(id: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil)
151
+ # @!attribute union_code
152
+ # The code identifying the union the employee is a member of, as configured in the
153
+ # payroll system.
154
+ #
155
+ # @return [String, nil]
156
+ optional :union_code, String, nil?: true
157
+
158
+ # @!attribute union_local
159
+ # The local chapter or local number within the employee's union.
160
+ #
161
+ # @return [String, nil]
162
+ optional :union_local, String, nil?: true
163
+
164
+ # @!method initialize(id: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil)
138
165
  # Some parameter documentations has been truncated, see
139
166
  # {FinchAPI::Models::Sandbox::EmploymentUpdateResponse} for more details.
140
167
  #
@@ -156,12 +183,16 @@ module FinchAPI
156
183
  #
157
184
  # @param flsa_status [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateResponse::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
158
185
  #
186
+ # @param highly_compensated_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Highly Compensated E
187
+ #
159
188
  # @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
160
189
  #
161
190
  # @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
162
191
  #
163
192
  # @param is_active [Boolean, nil] `true` if the individual an an active employee or contractor at the company.
164
193
  #
194
+ # @param key_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Key Employee for top
195
+ #
165
196
  # @param last_name [String, nil] The legal last name of the individual.
166
197
  #
167
198
  # @param latest_rehire_date [String, nil]
@@ -177,6 +208,10 @@ module FinchAPI
177
208
  # @param start_date [String, nil]
178
209
  #
179
210
  # @param title [String, nil] The current title of the individual.
211
+ #
212
+ # @param union_code [String, nil] The code identifying the union the employee is a member of, as configured in the
213
+ #
214
+ # @param union_local [String, nil] The local chapter or local number within the employee's union.
180
215
 
181
216
  class CustomField < FinchAPI::Internal::Type::BaseModel
182
217
  # @!attribute name
@@ -57,6 +57,15 @@ module FinchAPI
57
57
  # @return [String, nil]
58
58
  optional :last_name, String, nil?: true
59
59
 
60
+ # @!attribute marital_status
61
+ # The employee's marital status, used for beneficiary designation and spousal
62
+ # consent workflows.
63
+ #
64
+ # @return [Symbol, FinchAPI::Models::Sandbox::IndividualUpdateParams::MaritalStatus, nil]
65
+ optional :marital_status,
66
+ enum: -> { FinchAPI::Sandbox::IndividualUpdateParams::MaritalStatus },
67
+ nil?: true
68
+
60
69
  # @!attribute middle_name
61
70
  # The legal middle name of the individual.
62
71
  #
@@ -93,7 +102,7 @@ module FinchAPI
93
102
  # @return [String, nil]
94
103
  optional :ssn, String, nil?: true
95
104
 
96
- # @!method initialize(individual_id:, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil, request_options: {})
105
+ # @!method initialize(individual_id:, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, marital_status: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil, request_options: {})
97
106
  # Some parameter documentations has been truncated, see
98
107
  # {FinchAPI::Models::Sandbox::IndividualUpdateParams} for more details.
99
108
  #
@@ -113,6 +122,8 @@ module FinchAPI
113
122
  #
114
123
  # @param last_name [String, nil] The legal last name of the individual.
115
124
  #
125
+ # @param marital_status [Symbol, FinchAPI::Models::Sandbox::IndividualUpdateParams::MaritalStatus, nil] The employee's marital status, used for beneficiary designation and spousal cons
126
+ #
116
127
  # @param middle_name [String, nil] The legal middle name of the individual.
117
128
  #
118
129
  # @param phone_numbers [Array<FinchAPI::Models::Sandbox::IndividualUpdateParams::PhoneNumber, nil>, nil]
@@ -182,6 +193,22 @@ module FinchAPI
182
193
  # @return [Array<Symbol>]
183
194
  end
184
195
 
196
+ # The employee's marital status, used for beneficiary designation and spousal
197
+ # consent workflows.
198
+ module MaritalStatus
199
+ extend FinchAPI::Internal::Type::Enum
200
+
201
+ SINGLE = :single
202
+ MARRIED = :married
203
+ DIVORCED = :divorced
204
+ WIDOWED = :widowed
205
+ DOMESTIC_PARTNER = :domestic_partner
206
+ UNKNOWN = :unknown
207
+
208
+ # @!method self.values
209
+ # @return [Array<Symbol>]
210
+ end
211
+
185
212
  class PhoneNumber < FinchAPI::Internal::Type::BaseModel
186
213
  # @!attribute data
187
214
  #