finch-api 0.1.0.pre.alpha.59 → 0.1.0.pre.alpha.61

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 (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/finch_api/models/access_token_create_params.rb +8 -2
  5. data/lib/finch_api/models/account_update_event.rb +328 -8
  6. data/lib/finch_api/models/connect/session_new_params.rb +4 -2
  7. data/lib/finch_api/models/connect/session_reauthenticate_params.rb +4 -2
  8. data/lib/finch_api/models/hris/benefit_create_params.rb +3 -1
  9. data/lib/finch_api/models/hris/benefit_list_params.rb +3 -1
  10. data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +3 -1
  11. data/lib/finch_api/models/hris/benefit_register_params.rb +3 -1
  12. data/lib/finch_api/models/hris/benefit_retrieve_params.rb +3 -1
  13. data/lib/finch_api/models/hris/benefit_update_params.rb +3 -1
  14. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +3 -1
  15. data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +3 -1
  16. data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +3 -1
  17. data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +3 -1
  18. data/lib/finch_api/models/hris/company_retrieve_params.rb +3 -1
  19. data/lib/finch_api/models/hris/directory_list_individuals_params.rb +3 -1
  20. data/lib/finch_api/models/hris/directory_list_params.rb +3 -1
  21. data/lib/finch_api/models/hris/document_list_params.rb +3 -1
  22. data/lib/finch_api/models/hris/document_retreive_params.rb +3 -1
  23. data/lib/finch_api/models/hris/employment_data.rb +11 -1
  24. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +3 -1
  25. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +3 -1
  26. data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +3 -1
  27. data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +3 -1
  28. data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +3 -1
  29. data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +3 -1
  30. data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +3 -1
  31. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +3 -1
  32. data/lib/finch_api/models/hris/payment_list_params.rb +3 -1
  33. data/lib/finch_api/models/payroll/pay_group_list_params.rb +3 -1
  34. data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +3 -1
  35. data/lib/finch_api/models/provider.rb +1371 -4
  36. data/lib/finch_api/models/provider_list_response.rb +1387 -4
  37. data/lib/finch_api/models/sandbox/directory_create_params.rb +11 -1
  38. data/lib/finch_api/models/sandbox/employment_update_params.rb +11 -1
  39. data/lib/finch_api/models/sandbox/employment_update_response.rb +11 -1
  40. data/lib/finch_api/resources/access_tokens.rb +4 -1
  41. data/lib/finch_api/resources/connect/sessions.rb +2 -2
  42. data/lib/finch_api/resources/sandbox/employment.rb +3 -1
  43. data/lib/finch_api/version.rb +1 -1
  44. data/rbi/finch_api/models/access_token_create_params.rbi +8 -2
  45. data/rbi/finch_api/models/account_update_event.rbi +738 -15
  46. data/rbi/finch_api/models/connect/session_new_params.rbi +6 -2
  47. data/rbi/finch_api/models/connect/session_reauthenticate_params.rbi +6 -2
  48. data/rbi/finch_api/models/hris/benefit_create_params.rbi +6 -2
  49. data/rbi/finch_api/models/hris/benefit_list_params.rbi +6 -2
  50. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +6 -2
  51. data/rbi/finch_api/models/hris/benefit_register_params.rbi +6 -2
  52. data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +6 -2
  53. data/rbi/finch_api/models/hris/benefit_update_params.rbi +6 -2
  54. data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +6 -2
  55. data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +6 -2
  56. data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +6 -2
  57. data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +6 -2
  58. data/rbi/finch_api/models/hris/company_retrieve_params.rbi +6 -2
  59. data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +6 -2
  60. data/rbi/finch_api/models/hris/directory_list_params.rbi +6 -2
  61. data/rbi/finch_api/models/hris/document_list_params.rbi +6 -2
  62. data/rbi/finch_api/models/hris/document_retreive_params.rbi +6 -2
  63. data/rbi/finch_api/models/hris/employment_data.rbi +12 -0
  64. data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +6 -2
  65. data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +6 -2
  66. data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +6 -2
  67. data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +6 -2
  68. data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +6 -2
  69. data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +6 -2
  70. data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +6 -2
  71. data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +6 -2
  72. data/rbi/finch_api/models/hris/payment_list_params.rbi +6 -2
  73. data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +6 -2
  74. data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +6 -2
  75. data/rbi/finch_api/models/provider.rbi +3137 -6
  76. data/rbi/finch_api/models/provider_list_response.rbi +3139 -6
  77. data/rbi/finch_api/models/sandbox/directory_create_params.rbi +12 -0
  78. data/rbi/finch_api/models/sandbox/employment_update_params.rbi +12 -0
  79. data/rbi/finch_api/models/sandbox/employment_update_response.rbi +12 -0
  80. data/rbi/finch_api/resources/access_tokens.rbi +4 -1
  81. data/rbi/finch_api/resources/connect/sessions.rbi +6 -2
  82. data/rbi/finch_api/resources/hris/benefits/individuals.rbi +12 -4
  83. data/rbi/finch_api/resources/hris/benefits.rbi +18 -6
  84. data/rbi/finch_api/resources/hris/company.rbi +3 -1
  85. data/rbi/finch_api/resources/hris/directory.rbi +3 -1
  86. data/rbi/finch_api/resources/hris/documents.rbi +6 -2
  87. data/rbi/finch_api/resources/hris/employments.rbi +3 -1
  88. data/rbi/finch_api/resources/hris/individuals.rbi +3 -1
  89. data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +12 -4
  90. data/rbi/finch_api/resources/hris/pay_statement_item.rbi +3 -1
  91. data/rbi/finch_api/resources/hris/pay_statements.rbi +3 -1
  92. data/rbi/finch_api/resources/hris/payments.rbi +3 -1
  93. data/rbi/finch_api/resources/payroll/pay_groups.rbi +6 -2
  94. data/rbi/finch_api/resources/sandbox/employment.rbi +5 -0
  95. data/sig/finch_api/models/account_update_event.rbs +405 -17
  96. data/sig/finch_api/models/hris/employment_data.rbs +5 -0
  97. data/sig/finch_api/models/provider.rbs +1722 -6
  98. data/sig/finch_api/models/provider_list_response.rbs +1722 -6
  99. data/sig/finch_api/models/sandbox/directory_create_params.rbs +5 -0
  100. data/sig/finch_api/models/sandbox/employment_update_params.rbs +5 -0
  101. data/sig/finch_api/models/sandbox/employment_update_response.rbs +5 -0
  102. data/sig/finch_api/resources/sandbox/employment.rbs +1 -0
  103. metadata +2 -2
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
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
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
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
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
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
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -15,7 +15,9 @@ module FinchAPI
15
15
 
16
16
  # @!attribute entity_ids
17
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
+ # entity ID per request; a maximum of one is accepted. Required when the
19
+ # connection has more than one entity — omitting it returns a `400`
20
+ # `invalid_request_error`. Optional for single-entity connections.
19
21
  #
20
22
  # @return [Array<String>, nil]
21
23
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -17,6 +17,14 @@ module FinchAPI
17
17
  # @return [String]
18
18
  required :id, String
19
19
 
20
+ # @!attribute benefit_eligibility_class
21
+ # The employer defined benefit eligibility class that groups an employee into a
22
+ # set of eligible benefit plans, as stored by the provider. Null when not
23
+ # configured.
24
+ #
25
+ # @return [String, nil]
26
+ required :benefit_eligibility_class, String, nil?: true
27
+
20
28
  # @!attribute class_code
21
29
  # Worker's compensation classification code for this employee
22
30
  #
@@ -185,13 +193,15 @@ module FinchAPI
185
193
  # @return [String, nil]
186
194
  optional :work_id, String, nil?: true
187
195
 
188
- # @!method initialize(id:, class_code:, department:, employment:, employment_status:, end_date:, first_name:, flsa_status:, highly_compensated_employee:, is_active:, key_employee:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, start_date:, title:, union_code:, union_local:, custom_fields: nil, income: nil, income_history: nil, source_id: nil, work_id: nil)
196
+ # @!method initialize(id:, benefit_eligibility_class:, class_code:, department:, employment:, employment_status:, end_date:, first_name:, flsa_status:, highly_compensated_employee:, is_active:, key_employee:, last_name:, latest_rehire_date:, location:, manager:, middle_name:, start_date:, title:, union_code:, union_local:, custom_fields: nil, income: nil, income_history: nil, source_id: nil, work_id: nil)
189
197
  # Some parameter documentations has been truncated, see
190
198
  # {FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody} for more
191
199
  # details.
192
200
  #
193
201
  # @param id [String] A stable Finch `id` (UUID v4) for an individual in the company.
194
202
  #
203
+ # @param benefit_eligibility_class [String, nil] The employer defined benefit eligibility class that groups an employee into a se
204
+ #
195
205
  # @param class_code [String, nil] Worker's compensation classification code for this employee
196
206
  #
197
207
  # @param department [FinchAPI::Models::HRIS::EmploymentData::EmploymentDataResponseBody::Department, nil] The department object.
@@ -17,7 +17,9 @@ module FinchAPI
17
17
 
18
18
  # @!attribute entity_ids
19
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
+ # entity ID per request; a maximum of one is accepted. Required when the
21
+ # connection has more than one entity — omitting it returns a `400`
22
+ # `invalid_request_error`. Optional for single-entity connections.
21
23
  #
22
24
  # @return [Array<String>, nil]
23
25
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -17,7 +17,9 @@ module FinchAPI
17
17
 
18
18
  # @!attribute entity_ids
19
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
+ # entity ID per request; a maximum of one is accepted. Required when the
21
+ # connection has more than one entity — omitting it returns a `400`
22
+ # `invalid_request_error`. Optional for single-entity connections.
21
23
  #
22
24
  # @return [Array<String>, nil]
23
25
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -11,7 +11,9 @@ module FinchAPI
11
11
 
12
12
  # @!attribute entity_ids
13
13
  # The entity IDs to create the rule for. Provide exactly one entity ID per
14
- # request; a maximum of one is accepted.
14
+ # request; a maximum of one is accepted. Required when the connection has more
15
+ # than one entity — omitting it returns a `400` `invalid_request_error`. Optional
16
+ # for single-entity connections.
15
17
  #
16
18
  # @return [Array<String>, nil]
17
19
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -16,7 +16,9 @@ module FinchAPI
16
16
 
17
17
  # @!attribute entity_ids
18
18
  # The entity IDs to delete the rule for. Provide exactly one entity ID per
19
- # request; a maximum of one is accepted.
19
+ # request; a maximum of one is accepted. Required when the connection has more
20
+ # than one entity — omitting it returns a `400` `invalid_request_error`. Optional
21
+ # for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -11,7 +11,9 @@ module FinchAPI
11
11
 
12
12
  # @!attribute entity_ids
13
13
  # The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
14
- # a maximum of one is accepted.
14
+ # a maximum of one is accepted. Required when the connection has more than one
15
+ # entity — omitting it returns a `400` `invalid_request_error`. Optional for
16
+ # single-entity connections.
15
17
  #
16
18
  # @return [Array<String>, nil]
17
19
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -16,7 +16,9 @@ module FinchAPI
16
16
 
17
17
  # @!attribute entity_ids
18
18
  # The entity IDs to update the rule for. Provide exactly one entity ID per
19
- # request; a maximum of one is accepted.
19
+ # request; a maximum of one is accepted. Required when the connection has more
20
+ # than one entity — omitting it returns a `400` `invalid_request_error`. Optional
21
+ # for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -25,7 +25,9 @@ module FinchAPI
25
25
 
26
26
  # @!attribute entity_ids
27
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
+ # entity ID per request; a maximum of one is accepted. Required when the
29
+ # connection has more than one entity — omitting it returns a `400`
30
+ # `invalid_request_error`. Optional for single-entity connections.
29
31
  #
30
32
  # @return [Array<String>, nil]
31
33
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -17,7 +17,9 @@ module FinchAPI
17
17
 
18
18
  # @!attribute entity_ids
19
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
+ # entity ID per request; a maximum of one is accepted. Required when the
21
+ # connection has more than one entity — omitting it returns a `400`
22
+ # `invalid_request_error`. Optional for single-entity connections.
21
23
  #
22
24
  # @return [Array<String>, nil]
23
25
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -24,7 +24,9 @@ module FinchAPI
24
24
 
25
25
  # @!attribute entity_ids
26
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
+ # entity ID per request; a maximum of one is accepted. Required when the
28
+ # connection has more than one entity — omitting it returns a `400`
29
+ # `invalid_request_error`. Optional for single-entity connections.
28
30
  #
29
31
  # @return [Array<String>, nil]
30
32
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
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
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -15,7 +15,9 @@ module FinchAPI
15
15
 
16
16
  # @!attribute entity_ids
17
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
+ # entity ID per request; a maximum of one is accepted. Required when the
19
+ # connection has more than one entity — omitting it returns a `400`
20
+ # `invalid_request_error`. Optional for single-entity connections.
19
21
  #
20
22
  # @return [Array<String>, nil]
21
23
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]