finch-api 0.1.0.pre.alpha.18 → 0.1.0.pre.alpha.20
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- data/lib/finch_api/errors.rb +22 -0
- data/lib/finch_api/internal/individuals_page.rb +1 -1
- data/lib/finch_api/internal/page.rb +1 -1
- data/lib/finch_api/internal/type/array_of.rb +14 -1
- data/lib/finch_api/internal/type/base_model.rb +84 -25
- data/lib/finch_api/internal/type/boolean.rb +15 -1
- data/lib/finch_api/internal/type/converter.rb +42 -34
- data/lib/finch_api/internal/type/enum.rb +25 -2
- data/lib/finch_api/internal/type/file_input.rb +13 -1
- data/lib/finch_api/internal/type/hash_of.rb +14 -1
- data/lib/finch_api/internal/type/union.rb +27 -7
- data/lib/finch_api/internal/type/unknown.rb +15 -1
- data/lib/finch_api/internal/util.rb +62 -10
- data/lib/finch_api/internal.rb +3 -0
- data/lib/finch_api/models/account_update_event.rb +110 -109
- data/lib/finch_api/models/base_webhook_event.rb +1 -1
- data/lib/finch_api/models/company_event.rb +2 -2
- data/lib/finch_api/models/connect/session_new_params.rb +12 -12
- data/lib/finch_api/models/connect/session_reauthenticate_params.rb +2 -2
- data/lib/finch_api/models/create_access_token_response.rb +7 -7
- data/lib/finch_api/models/directory_event.rb +4 -4
- data/lib/finch_api/models/employment_event.rb +4 -4
- data/lib/finch_api/models/hris/benefit_contribution.rb +3 -3
- data/lib/finch_api/models/hris/benefit_create_params.rb +11 -11
- data/lib/finch_api/models/hris/benefit_features_and_operations.rb +5 -120
- data/lib/finch_api/models/hris/benefit_type.rb +10 -10
- data/lib/finch_api/models/hris/benefits/individual_benefit.rb +11 -11
- data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +23 -23
- data/lib/finch_api/models/hris/benefits_support.rb +24 -24
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +11 -11
- data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +2 -2
- data/lib/finch_api/models/hris/company/pay_statement_item_list_response.rb +18 -18
- data/lib/finch_api/models/hris/company.rb +23 -23
- data/lib/finch_api/models/hris/company_benefit.rb +12 -12
- data/lib/finch_api/models/hris/document_list_params.rb +2 -2
- data/lib/finch_api/models/hris/document_list_response.rb +4 -4
- data/lib/finch_api/models/hris/document_response.rb +4 -4
- data/lib/finch_api/models/hris/document_retreive_response.rb +1 -5
- data/lib/finch_api/models/hris/employment_data.rb +89 -99
- data/lib/finch_api/models/hris/employment_data_response.rb +2 -2
- data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +4 -3
- data/lib/finch_api/models/hris/individual.rb +20 -26
- data/lib/finch_api/models/hris/individual_in_directory.rb +6 -6
- data/lib/finch_api/models/hris/individual_response.rb +2 -2
- data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +4 -4
- data/lib/finch_api/models/hris/pay_statement.rb +184 -182
- data/lib/finch_api/models/hris/pay_statement_data_sync_in_progress.rb +76 -0
- data/lib/finch_api/models/hris/pay_statement_response.rb +50 -8
- data/lib/finch_api/models/hris/pay_statement_response_body.rb +27 -9
- data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +2 -2
- data/lib/finch_api/models/hris/payment.rb +37 -37
- data/lib/finch_api/models/hris/support_per_benefit_type.rb +4 -4
- data/lib/finch_api/models/hris/supported_benefit.rb +10 -9
- data/lib/finch_api/models/hris/w42005.rb +12 -12
- data/lib/finch_api/models/hris/w42020.rb +10 -10
- data/lib/finch_api/models/income.rb +8 -8
- data/lib/finch_api/models/individual_event.rb +4 -4
- data/lib/finch_api/models/introspection.rb +23 -23
- data/lib/finch_api/models/job_completion_event.rb +4 -4
- data/lib/finch_api/models/jobs/automated_async_job.rb +10 -10
- data/lib/finch_api/models/jobs/automated_create_params.rb +4 -4
- data/lib/finch_api/models/jobs/automated_list_response.rb +2 -2
- data/lib/finch_api/models/jobs/manual_async_job.rb +3 -3
- data/lib/finch_api/models/money.rb +4 -4
- data/lib/finch_api/models/operation_support_matrix.rb +9 -9
- data/lib/finch_api/models/pay_statement_event.rb +4 -4
- data/lib/finch_api/models/payment_event.rb +4 -4
- data/lib/finch_api/models/payroll/pay_group_list_response.rb +12 -12
- data/lib/finch_api/models/payroll/pay_group_retrieve_response.rb +5 -5
- data/lib/finch_api/models/provider.rb +104 -104
- data/lib/finch_api/models/sandbox/company_update_params.rb +21 -21
- data/lib/finch_api/models/sandbox/company_update_response.rb +2 -2
- data/lib/finch_api/models/sandbox/connection_create_params.rb +2 -2
- data/lib/finch_api/models/sandbox/connections/account_create_params.rb +2 -2
- data/lib/finch_api/models/sandbox/connections/account_update_params.rb +2 -2
- data/lib/finch_api/models/sandbox/directory_create_params.rb +57 -53
- data/lib/finch_api/models/sandbox/employment_update_params.rb +32 -28
- data/lib/finch_api/models/sandbox/employment_update_response.rb +17 -14
- data/lib/finch_api/models/sandbox/individual_update_params.rb +16 -16
- data/lib/finch_api/models/sandbox/individual_update_response.rb +2 -2
- data/lib/finch_api/models/sandbox/job_create_params.rb +2 -2
- data/lib/finch_api/models/sandbox/jobs/sandbox_job_configuration.rb +6 -6
- data/lib/finch_api/models/sandbox/payment_create_params.rb +160 -367
- data/lib/finch_api/models/webhook_event.rb +1 -16
- data/lib/finch_api/models.rb +30 -19
- data/lib/finch_api/resources/access_tokens.rb +1 -1
- data/lib/finch_api/resources/account.rb +2 -2
- data/lib/finch_api/resources/connect/sessions.rb +5 -5
- data/lib/finch_api/resources/hris/benefits/individuals.rb +4 -4
- data/lib/finch_api/resources/hris/benefits.rb +9 -9
- data/lib/finch_api/resources/hris/company/pay_statement_item/rules.rb +3 -3
- data/lib/finch_api/resources/hris/company/pay_statement_item.rb +1 -1
- data/lib/finch_api/resources/hris/company.rb +1 -1
- data/lib/finch_api/resources/hris/directory.rb +1 -1
- data/lib/finch_api/resources/hris/documents.rb +2 -2
- data/lib/finch_api/resources/hris/employments.rb +2 -2
- data/lib/finch_api/resources/hris/individuals.rb +3 -3
- data/lib/finch_api/resources/hris/pay_statements.rb +2 -2
- data/lib/finch_api/resources/hris/payments.rb +1 -1
- data/lib/finch_api/resources/jobs/automated.rb +3 -3
- data/lib/finch_api/resources/jobs/manual.rb +1 -1
- data/lib/finch_api/resources/providers.rb +1 -1
- data/lib/finch_api/resources/sandbox/company.rb +4 -4
- data/lib/finch_api/resources/sandbox/connections/accounts.rb +2 -2
- data/lib/finch_api/resources/sandbox/connections.rb +1 -1
- data/lib/finch_api/resources/sandbox/directory.rb +1 -1
- data/lib/finch_api/resources/sandbox/employment.rb +9 -9
- data/lib/finch_api/resources/sandbox/individual.rb +5 -5
- data/lib/finch_api/resources/sandbox/jobs/configuration.rb +4 -4
- data/lib/finch_api/resources/sandbox/jobs.rb +1 -1
- data/lib/finch_api/resources/sandbox/payment.rb +6 -3
- data/lib/finch_api/version.rb +1 -1
- data/lib/finch_api.rb +4 -2
- data/rbi/finch_api/errors.rbi +16 -0
- data/rbi/finch_api/internal/type/array_of.rbi +6 -0
- data/rbi/finch_api/internal/type/base_model.rbi +5 -0
- data/rbi/finch_api/internal/type/boolean.rbi +8 -0
- data/rbi/finch_api/internal/type/converter.rbi +15 -15
- data/rbi/finch_api/internal/type/enum.rbi +5 -0
- data/rbi/finch_api/internal/type/file_input.rbi +5 -0
- data/rbi/finch_api/internal/type/hash_of.rbi +6 -0
- data/rbi/finch_api/internal/type/union.rbi +10 -0
- data/rbi/finch_api/internal/type/unknown.rbi +8 -0
- data/rbi/finch_api/internal/util.rbi +36 -0
- data/rbi/finch_api/internal.rbi +3 -0
- data/rbi/finch_api/models/connect/session_new_params.rbi +4 -4
- data/rbi/finch_api/models/hris/benefit_features_and_operations.rbi +4 -296
- data/rbi/finch_api/models/hris/benefit_type.rbi +16 -16
- data/rbi/finch_api/models/hris/company/pay_statement_item_list_response.rbi +18 -33
- data/rbi/finch_api/models/hris/employment_data.rbi +123 -140
- data/rbi/finch_api/models/hris/employment_data_response.rbi +2 -13
- data/rbi/finch_api/models/hris/individual_response.rbi +2 -13
- data/rbi/finch_api/models/hris/pay_statement.rbi +275 -307
- data/rbi/finch_api/models/hris/pay_statement_data_sync_in_progress.rbi +188 -0
- data/rbi/finch_api/models/hris/pay_statement_response.rbi +84 -20
- data/rbi/finch_api/models/hris/pay_statement_response_body.rbi +45 -17
- data/rbi/finch_api/models/hris/payment.rbi +27 -30
- data/rbi/finch_api/models/hris/supported_benefit.rbi +12 -8
- data/rbi/finch_api/models/income.rbi +3 -3
- data/rbi/finch_api/models/money.rbi +4 -7
- data/rbi/finch_api/models/payroll/pay_group_list_response.rbi +25 -43
- data/rbi/finch_api/models/payroll/pay_group_retrieve_response.rbi +14 -14
- data/rbi/finch_api/models/sandbox/directory_create_params.rbi +20 -26
- data/rbi/finch_api/models/sandbox/employment_update_params.rbi +20 -26
- data/rbi/finch_api/models/sandbox/employment_update_response.rbi +20 -26
- data/rbi/finch_api/models/sandbox/payment_create_params.rbi +463 -727
- data/rbi/finch_api/resources/connect/sessions.rbi +2 -2
- data/rbi/finch_api/resources/hris/benefits.rbi +1 -3
- data/rbi/finch_api/resources/hris/documents.rbi +1 -1
- data/rbi/finch_api/resources/sandbox/employment.rbi +8 -5
- data/rbi/finch_api/resources/sandbox/payment.rbi +3 -2
- data/sig/finch_api/errors.rbs +9 -0
- data/sig/finch_api/internal/type/array_of.rbs +3 -0
- data/sig/finch_api/internal/type/base_model.rbs +2 -0
- data/sig/finch_api/internal/type/boolean.rbs +3 -0
- data/sig/finch_api/internal/type/converter.rbs +7 -1
- data/sig/finch_api/internal/type/enum.rbs +2 -0
- data/sig/finch_api/internal/type/file_input.rbs +2 -0
- data/sig/finch_api/internal/type/hash_of.rbs +3 -0
- data/sig/finch_api/internal/type/union.rbs +2 -0
- data/sig/finch_api/internal/type/unknown.rbs +3 -0
- data/sig/finch_api/internal/util.rbs +12 -0
- data/sig/finch_api/internal.rbs +2 -0
- data/sig/finch_api/models/access_token_create_params.rbs +8 -0
- data/sig/finch_api/models/account_disconnect_params.rbs +2 -0
- data/sig/finch_api/models/account_introspect_params.rbs +2 -0
- data/sig/finch_api/models/account_update_event.rbs +230 -12
- data/sig/finch_api/models/base_webhook_event.rbs +6 -0
- data/sig/finch_api/models/company_event.rbs +11 -6
- data/sig/finch_api/models/connect/session_new_params.rbs +26 -8
- data/sig/finch_api/models/connect/session_new_response.rbs +2 -0
- data/sig/finch_api/models/connect/session_reauthenticate_params.rbs +12 -4
- data/sig/finch_api/models/connect/session_reauthenticate_response.rbs +2 -0
- data/sig/finch_api/models/create_access_token_response.rbs +21 -8
- data/sig/finch_api/models/directory_event.rbs +13 -6
- data/sig/finch_api/models/disconnect_response.rbs +2 -0
- data/sig/finch_api/models/employment_event.rbs +13 -6
- data/sig/finch_api/models/hris/benefit_contribution.rbs +12 -4
- data/sig/finch_api/models/hris/benefit_create_params.rbs +21 -6
- data/sig/finch_api/models/hris/benefit_features_and_operations.rbs +9 -78
- data/sig/finch_api/models/hris/benefit_list_params.rbs +2 -0
- data/sig/finch_api/models/hris/benefit_list_supported_benefits_params.rbs +2 -0
- data/sig/finch_api/models/hris/benefit_retrieve_params.rbs +2 -0
- data/sig/finch_api/models/hris/benefit_type.rbs +21 -21
- data/sig/finch_api/models/hris/benefit_update_params.rbs +5 -0
- data/sig/finch_api/models/hris/benefits/enrolled_individual_benefit_response.rbs +2 -0
- data/sig/finch_api/models/hris/benefits/individual_benefit.rbs +18 -4
- data/sig/finch_api/models/hris/benefits/individual_enroll_many_params.rbs +47 -18
- data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbs +2 -0
- data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_response.rbs +5 -0
- data/sig/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbs +5 -0
- data/sig/finch_api/models/hris/benefits/individual_unenroll_many_params.rbs +5 -0
- data/sig/finch_api/models/hris/benefits/unenrolled_individual_benefit_response.rbs +2 -0
- data/sig/finch_api/models/hris/benefits_support.rbs +15 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbs +23 -6
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbs +20 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbs +2 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbs +21 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbs +2 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbs +20 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbs +5 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbs +20 -0
- data/sig/finch_api/models/hris/company/pay_statement_item_list_params.rbs +15 -6
- data/sig/finch_api/models/hris/company/pay_statement_item_list_response.rbs +23 -20
- data/sig/finch_api/models/hris/company.rbs +44 -12
- data/sig/finch_api/models/hris/company_benefit.rbs +21 -6
- data/sig/finch_api/models/hris/company_retrieve_params.rbs +2 -0
- data/sig/finch_api/models/hris/create_company_benefits_response.rbs +2 -0
- data/sig/finch_api/models/hris/directory_list_individuals_params.rbs +6 -0
- data/sig/finch_api/models/hris/directory_list_params.rbs +6 -0
- data/sig/finch_api/models/hris/document_list_params.rbs +14 -6
- data/sig/finch_api/models/hris/document_list_response.rbs +5 -0
- data/sig/finch_api/models/hris/document_response.rbs +14 -6
- data/sig/finch_api/models/hris/document_retreive_params.rbs +2 -0
- data/sig/finch_api/models/hris/employment_data.rbs +91 -49
- data/sig/finch_api/models/hris/employment_data_response.rbs +6 -0
- data/sig/finch_api/models/hris/employment_retrieve_many_params.rbs +7 -0
- data/sig/finch_api/models/hris/individual.rbs +49 -16
- data/sig/finch_api/models/hris/individual_in_directory.rbs +14 -0
- data/sig/finch_api/models/hris/individual_response.rbs +6 -0
- data/sig/finch_api/models/hris/individual_retrieve_many_params.rbs +10 -0
- data/sig/finch_api/models/hris/pay_statement.rbs +179 -133
- data/sig/finch_api/models/hris/pay_statement_data_sync_in_progress.rbs +78 -0
- data/sig/finch_api/models/hris/pay_statement_response.rbs +51 -13
- data/sig/finch_api/models/hris/pay_statement_response_body.rbs +24 -11
- data/sig/finch_api/models/hris/pay_statement_retrieve_many_params.rbs +11 -0
- data/sig/finch_api/models/hris/payment.rbs +44 -29
- data/sig/finch_api/models/hris/payment_list_params.rbs +6 -0
- data/sig/finch_api/models/hris/support_per_benefit_type.rbs +5 -0
- data/sig/finch_api/models/hris/supported_benefit.rbs +22 -12
- data/sig/finch_api/models/hris/update_company_benefit_response.rbs +2 -0
- data/sig/finch_api/models/hris/w42005.rbs +30 -16
- data/sig/finch_api/models/hris/w42020.rbs +27 -10
- data/sig/finch_api/models/income.rbs +14 -7
- data/sig/finch_api/models/individual_event.rbs +13 -6
- data/sig/finch_api/models/introspection.rbs +51 -14
- data/sig/finch_api/models/job_completion_event.rbs +13 -6
- data/sig/finch_api/models/jobs/automated_async_job.rbs +22 -8
- data/sig/finch_api/models/jobs/automated_create_params.rbs +8 -0
- data/sig/finch_api/models/jobs/automated_create_response.rbs +7 -0
- data/sig/finch_api/models/jobs/automated_list_params.rbs +6 -0
- data/sig/finch_api/models/jobs/automated_list_response.rbs +18 -0
- data/sig/finch_api/models/jobs/automated_retrieve_params.rbs +2 -0
- data/sig/finch_api/models/jobs/manual_async_job.rbs +10 -4
- data/sig/finch_api/models/jobs/manual_retrieve_params.rbs +2 -0
- data/sig/finch_api/models/location.rbs +11 -0
- data/sig/finch_api/models/money.rbs +3 -3
- data/sig/finch_api/models/operation_support_matrix.rbs +7 -0
- data/sig/finch_api/models/paging.rbs +2 -0
- data/sig/finch_api/models/pay_statement_event.rbs +13 -6
- data/sig/finch_api/models/payment_event.rbs +13 -6
- data/sig/finch_api/models/payroll/pay_group_list_params.rbs +6 -0
- data/sig/finch_api/models/payroll/pay_group_list_response.rbs +22 -24
- data/sig/finch_api/models/payroll/pay_group_retrieve_params.rbs +2 -0
- data/sig/finch_api/models/payroll/pay_group_retrieve_response.rbs +17 -10
- data/sig/finch_api/models/provider.rbs +227 -6
- data/sig/finch_api/models/provider_list_params.rbs +2 -0
- data/sig/finch_api/models/request_forwarding_forward_params.rbs +9 -0
- data/sig/finch_api/models/request_forwarding_forward_response.rbs +15 -0
- data/sig/finch_api/models/sandbox/company_update_params.rbs +44 -12
- data/sig/finch_api/models/sandbox/company_update_response.rbs +31 -0
- data/sig/finch_api/models/sandbox/connection_create_params.rbs +8 -0
- data/sig/finch_api/models/sandbox/connection_create_response.rbs +11 -0
- data/sig/finch_api/models/sandbox/connections/account_create_params.rbs +8 -0
- data/sig/finch_api/models/sandbox/connections/account_create_response.rbs +10 -0
- data/sig/finch_api/models/sandbox/connections/account_update_params.rbs +5 -0
- data/sig/finch_api/models/sandbox/connections/account_update_response.rbs +9 -0
- data/sig/finch_api/models/sandbox/directory_create_params.rbs +90 -40
- data/sig/finch_api/models/sandbox/employment_update_params.rbs +47 -20
- data/sig/finch_api/models/sandbox/employment_update_response.rbs +39 -12
- data/sig/finch_api/models/sandbox/individual_update_params.rbs +34 -8
- data/sig/finch_api/models/sandbox/individual_update_response.rbs +26 -0
- data/sig/finch_api/models/sandbox/job_create_params.rbs +5 -0
- data/sig/finch_api/models/sandbox/job_create_response.rbs +7 -0
- data/sig/finch_api/models/sandbox/jobs/configuration_retrieve_params.rbs +2 -0
- data/sig/finch_api/models/sandbox/jobs/configuration_update_params.rbs +2 -0
- data/sig/finch_api/models/sandbox/jobs/sandbox_job_configuration.rbs +13 -8
- data/sig/finch_api/models/sandbox/payment_create_params.rbs +287 -228
- data/sig/finch_api/models/sandbox/payment_create_response.rbs +2 -0
- data/sig/finch_api/resources/connect/sessions.rbs +2 -2
- data/sig/finch_api/resources/hris/benefits.rbs +1 -1
- data/sig/finch_api/resources/hris/company/pay_statement_item.rbs +1 -1
- data/sig/finch_api/resources/hris/documents.rbs +1 -1
- data/sig/finch_api/resources/sandbox/employment.rbs +2 -2
- data/sig/finch_api/resources/sandbox/payment.rbs +2 -2
- metadata +5 -5
- data/lib/finch_api/models/hris/benefit_list_supported_benefits_response.rb +0 -110
- data/rbi/finch_api/models/hris/benefit_list_supported_benefits_response.rbi +0 -290
- data/sig/finch_api/models/hris/benefit_list_supported_benefits_response.rbs +0 -79
@@ -24,22 +24,7 @@ module FinchAPI
|
|
24
24
|
variant -> { FinchAPI::PayStatementEvent }
|
25
25
|
|
26
26
|
# @!method self.variants
|
27
|
-
# @return [Array(FinchAPI::AccountUpdateEvent, FinchAPI::CompanyEvent, FinchAPI::JobCompletionEvent, FinchAPI::DirectoryEvent, FinchAPI::EmploymentEvent, FinchAPI::IndividualEvent, FinchAPI::PaymentEvent, FinchAPI::PayStatementEvent)]
|
28
|
-
|
29
|
-
define_sorbet_constant!(:Variants) do
|
30
|
-
T.type_alias do
|
31
|
-
T.any(
|
32
|
-
FinchAPI::AccountUpdateEvent,
|
33
|
-
FinchAPI::CompanyEvent,
|
34
|
-
FinchAPI::JobCompletionEvent,
|
35
|
-
FinchAPI::DirectoryEvent,
|
36
|
-
FinchAPI::EmploymentEvent,
|
37
|
-
FinchAPI::IndividualEvent,
|
38
|
-
FinchAPI::PaymentEvent,
|
39
|
-
FinchAPI::PayStatementEvent
|
40
|
-
)
|
41
|
-
end
|
42
|
-
end
|
27
|
+
# @return [Array(FinchAPI::Models::AccountUpdateEvent, FinchAPI::Models::CompanyEvent, FinchAPI::Models::JobCompletionEvent, FinchAPI::Models::DirectoryEvent, FinchAPI::Models::EmploymentEvent, FinchAPI::Models::IndividualEvent, FinchAPI::Models::PaymentEvent, FinchAPI::Models::PayStatementEvent)]
|
43
28
|
end
|
44
29
|
end
|
45
30
|
end
|
data/lib/finch_api/models.rb
CHANGED
@@ -5,29 +5,40 @@ module FinchAPI
|
|
5
5
|
cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, FinchAPI::Internal::AnyHash) } }
|
6
6
|
end
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
8
|
+
FinchAPI::Internal::Util.walk_namespaces(FinchAPI::Models).each do |mod|
|
9
|
+
case mod
|
10
|
+
in FinchAPI::Internal::Type::Enum | FinchAPI::Internal::Type::Union
|
11
|
+
mod.constants.each do |name|
|
12
|
+
case mod.const_get(name)
|
13
|
+
in true | false
|
14
|
+
mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T::Boolean } }
|
15
|
+
mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
|
16
|
+
in Integer
|
17
|
+
mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { Integer } }
|
18
|
+
mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
|
19
|
+
in Float
|
20
|
+
mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { Float } }
|
21
|
+
mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
|
22
|
+
in Symbol
|
23
|
+
mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { Symbol } }
|
24
|
+
mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
|
25
|
+
else
|
26
|
+
end
|
27
27
|
end
|
28
|
+
else
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
32
|
+
FinchAPI::Internal::Util.walk_namespaces(FinchAPI::Models)
|
33
|
+
.lazy
|
34
|
+
.grep(FinchAPI::Internal::Type::Union)
|
35
|
+
.each do |mod|
|
36
|
+
const = :Variants
|
37
|
+
next if mod.sorbet_constant_defined?(const)
|
38
|
+
|
39
|
+
mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
|
40
|
+
end
|
41
|
+
|
31
42
|
AccessTokenCreateParams = FinchAPI::Models::AccessTokenCreateParams
|
32
43
|
|
33
44
|
AccountDisconnectParams = FinchAPI::Models::AccountDisconnectParams
|
@@ -13,7 +13,7 @@ module FinchAPI
|
|
13
13
|
# @param redirect_uri [String]
|
14
14
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
15
15
|
#
|
16
|
-
# @return [FinchAPI::CreateAccessTokenResponse]
|
16
|
+
# @return [FinchAPI::Models::CreateAccessTokenResponse]
|
17
17
|
#
|
18
18
|
# @see FinchAPI::Models::AccessTokenCreateParams
|
19
19
|
def create(params)
|
@@ -9,7 +9,7 @@ module FinchAPI
|
|
9
9
|
#
|
10
10
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
11
11
|
#
|
12
|
-
# @return [FinchAPI::DisconnectResponse]
|
12
|
+
# @return [FinchAPI::Models::DisconnectResponse]
|
13
13
|
#
|
14
14
|
# @see FinchAPI::Models::AccountDisconnectParams
|
15
15
|
def disconnect(params = {})
|
@@ -27,7 +27,7 @@ module FinchAPI
|
|
27
27
|
#
|
28
28
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
29
29
|
#
|
30
|
-
# @return [FinchAPI::Introspection]
|
30
|
+
# @return [FinchAPI::Models::Introspection]
|
31
31
|
#
|
32
32
|
# @see FinchAPI::Models::AccountIntrospectParams
|
33
33
|
def introspect(params = {})
|
@@ -15,19 +15,19 @@ module FinchAPI
|
|
15
15
|
#
|
16
16
|
# @param customer_name [String]
|
17
17
|
#
|
18
|
-
# @param products [Array<Symbol, FinchAPI::Connect::SessionNewParams::Product>]
|
18
|
+
# @param products [Array<Symbol, FinchAPI::Models::Connect::SessionNewParams::Product>]
|
19
19
|
#
|
20
20
|
# @param customer_email [String, nil]
|
21
21
|
#
|
22
|
-
# @param integration [FinchAPI::Connect::SessionNewParams::Integration, nil]
|
22
|
+
# @param integration [FinchAPI::Models::Connect::SessionNewParams::Integration, nil]
|
23
23
|
#
|
24
24
|
# @param manual [Boolean, nil]
|
25
25
|
#
|
26
|
-
# @param minutes_to_expire [Float, nil] The number of minutes until the session expires (defaults to
|
26
|
+
# @param minutes_to_expire [Float, nil] The number of minutes until the session expires (defaults to 129,600, which is 9
|
27
27
|
#
|
28
28
|
# @param redirect_uri [String, nil]
|
29
29
|
#
|
30
|
-
# @param sandbox [Symbol, FinchAPI::Connect::SessionNewParams::Sandbox, nil]
|
30
|
+
# @param sandbox [Symbol, FinchAPI::Models::Connect::SessionNewParams::Sandbox, nil]
|
31
31
|
#
|
32
32
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
33
33
|
#
|
@@ -56,7 +56,7 @@ module FinchAPI
|
|
56
56
|
#
|
57
57
|
# @param minutes_to_expire [Integer, nil] The number of minutes until the session expires (defaults to 43,200, which is 30
|
58
58
|
#
|
59
|
-
# @param products [Array<Symbol, FinchAPI::Connect::SessionReauthenticateParams::Product>, nil] The products to request access to (optional for reauthentication)
|
59
|
+
# @param products [Array<Symbol, FinchAPI::Models::Connect::SessionReauthenticateParams::Product>, nil] The products to request access to (optional for reauthentication)
|
60
60
|
#
|
61
61
|
# @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
|
62
62
|
#
|
@@ -14,11 +14,11 @@ module FinchAPI
|
|
14
14
|
#
|
15
15
|
# @param benefit_id [String]
|
16
16
|
#
|
17
|
-
# @param individuals [Array<FinchAPI::HRIS::Benefits::IndividualEnrollManyParams::Individual>] Array of the individual_id to enroll and a configuration object.
|
17
|
+
# @param individuals [Array<FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual>] Array of the individual_id to enroll and a configuration object.
|
18
18
|
#
|
19
19
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
20
20
|
#
|
21
|
-
# @return [FinchAPI::HRIS::Benefits::EnrolledIndividualBenefitResponse]
|
21
|
+
# @return [FinchAPI::Models::HRIS::Benefits::EnrolledIndividualBenefitResponse]
|
22
22
|
#
|
23
23
|
# @see FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams
|
24
24
|
def enroll_many(benefit_id, params = {})
|
@@ -65,7 +65,7 @@ module FinchAPI
|
|
65
65
|
#
|
66
66
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
67
67
|
#
|
68
|
-
# @return [FinchAPI::Internal::SinglePage<FinchAPI::HRIS::Benefits::IndividualBenefit>]
|
68
|
+
# @return [FinchAPI::Internal::SinglePage<FinchAPI::Models::HRIS::Benefits::IndividualBenefit>]
|
69
69
|
#
|
70
70
|
# @see FinchAPI::Models::HRIS::Benefits::IndividualRetrieveManyBenefitsParams
|
71
71
|
def retrieve_many_benefits(benefit_id, params = {})
|
@@ -90,7 +90,7 @@ module FinchAPI
|
|
90
90
|
#
|
91
91
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
92
92
|
#
|
93
|
-
# @return [FinchAPI::HRIS::Benefits::UnenrolledIndividualBenefitResponse]
|
93
|
+
# @return [FinchAPI::Models::HRIS::Benefits::UnenrolledIndividualBenefitResponse]
|
94
94
|
#
|
95
95
|
# @see FinchAPI::Models::HRIS::Benefits::IndividualUnenrollManyParams
|
96
96
|
def unenroll_many(benefit_id, params = {})
|
@@ -15,17 +15,17 @@ module FinchAPI
|
|
15
15
|
#
|
16
16
|
# @overload create(company_contribution: nil, description: nil, frequency: nil, type: nil, request_options: {})
|
17
17
|
#
|
18
|
-
# @param company_contribution [FinchAPI::HRIS::BenefitCreateParams::CompanyContribution, nil] The company match for this benefit.
|
18
|
+
# @param company_contribution [FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution, nil] The company match for this benefit.
|
19
19
|
#
|
20
20
|
# @param description [String] Name of the benefit as it appears in the provider and pay statements. Recommend
|
21
21
|
#
|
22
|
-
# @param frequency [Symbol, FinchAPI::HRIS::BenefitFrequency, nil] The frequency of the benefit deduction/contribution.
|
22
|
+
# @param frequency [Symbol, FinchAPI::Models::HRIS::BenefitFrequency, nil] The frequency of the benefit deduction/contribution.
|
23
23
|
#
|
24
|
-
# @param type [Symbol, FinchAPI::HRIS::BenefitType, nil] Type of benefit.
|
24
|
+
# @param type [Symbol, FinchAPI::Models::HRIS::BenefitType, nil] Type of benefit.
|
25
25
|
#
|
26
26
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
27
27
|
#
|
28
|
-
# @return [FinchAPI::HRIS::CreateCompanyBenefitsResponse]
|
28
|
+
# @return [FinchAPI::Models::HRIS::CreateCompanyBenefitsResponse]
|
29
29
|
#
|
30
30
|
# @see FinchAPI::Models::HRIS::BenefitCreateParams
|
31
31
|
def create(params = {})
|
@@ -46,7 +46,7 @@ module FinchAPI
|
|
46
46
|
# @param benefit_id [String]
|
47
47
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
48
48
|
#
|
49
|
-
# @return [FinchAPI::HRIS::CompanyBenefit]
|
49
|
+
# @return [FinchAPI::Models::HRIS::CompanyBenefit]
|
50
50
|
#
|
51
51
|
# @see FinchAPI::Models::HRIS::BenefitRetrieveParams
|
52
52
|
def retrieve(benefit_id, params = {})
|
@@ -68,7 +68,7 @@ module FinchAPI
|
|
68
68
|
#
|
69
69
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
70
70
|
#
|
71
|
-
# @return [FinchAPI::HRIS::UpdateCompanyBenefitResponse]
|
71
|
+
# @return [FinchAPI::Models::HRIS::UpdateCompanyBenefitResponse]
|
72
72
|
#
|
73
73
|
# @see FinchAPI::Models::HRIS::BenefitUpdateParams
|
74
74
|
def update(benefit_id, params = {})
|
@@ -88,7 +88,7 @@ module FinchAPI
|
|
88
88
|
#
|
89
89
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
90
90
|
#
|
91
|
-
# @return [FinchAPI::Internal::SinglePage<FinchAPI::HRIS::CompanyBenefit>]
|
91
|
+
# @return [FinchAPI::Internal::SinglePage<FinchAPI::Models::HRIS::CompanyBenefit>]
|
92
92
|
#
|
93
93
|
# @see FinchAPI::Models::HRIS::BenefitListParams
|
94
94
|
def list(params = {})
|
@@ -107,7 +107,7 @@ module FinchAPI
|
|
107
107
|
#
|
108
108
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
109
109
|
#
|
110
|
-
# @return [FinchAPI::Internal::SinglePage<FinchAPI::Models::HRIS::
|
110
|
+
# @return [FinchAPI::Internal::SinglePage<FinchAPI::Models::HRIS::SupportedBenefit>]
|
111
111
|
#
|
112
112
|
# @see FinchAPI::Models::HRIS::BenefitListSupportedBenefitsParams
|
113
113
|
def list_supported_benefits(params = {})
|
@@ -115,7 +115,7 @@ module FinchAPI
|
|
115
115
|
method: :get,
|
116
116
|
path: "employer/benefits/meta",
|
117
117
|
page: FinchAPI::Internal::SinglePage,
|
118
|
-
model: FinchAPI::
|
118
|
+
model: FinchAPI::HRIS::SupportedBenefit,
|
119
119
|
options: params[:request_options]
|
120
120
|
)
|
121
121
|
end
|
@@ -15,15 +15,15 @@ module FinchAPI
|
|
15
15
|
#
|
16
16
|
# @overload create(attributes: nil, conditions: nil, effective_end_date: nil, effective_start_date: nil, entity_type: nil, request_options: {})
|
17
17
|
#
|
18
|
-
# @param attributes [FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Attributes] Specifies the fields to be applied when the condition is met.
|
18
|
+
# @param attributes [FinchAPI::Models::HRIS::Company::PayStatementItem::RuleCreateParams::Attributes] Specifies the fields to be applied when the condition is met.
|
19
19
|
#
|
20
|
-
# @param conditions [Array<FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::Condition>]
|
20
|
+
# @param conditions [Array<FinchAPI::Models::HRIS::Company::PayStatementItem::RuleCreateParams::Condition>]
|
21
21
|
#
|
22
22
|
# @param effective_end_date [String, nil] Specifies when the rules should stop applying rules based on the date.
|
23
23
|
#
|
24
24
|
# @param effective_start_date [String, nil] Specifies when the rule should begin applying based on the date.
|
25
25
|
#
|
26
|
-
# @param entity_type [Symbol, FinchAPI::HRIS::Company::PayStatementItem::RuleCreateParams::EntityType] The entity type to which the rule is applied.
|
26
|
+
# @param entity_type [Symbol, FinchAPI::Models::HRIS::Company::PayStatementItem::RuleCreateParams::EntityType] The entity type to which the rule is applied.
|
27
27
|
#
|
28
28
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
29
29
|
#
|
@@ -17,7 +17,7 @@ module FinchAPI
|
|
17
17
|
#
|
18
18
|
# @overload list(categories: nil, end_date: nil, name: nil, start_date: nil, type: nil, request_options: {})
|
19
19
|
#
|
20
|
-
# @param categories [Array<Symbol, FinchAPI::HRIS::Company::PayStatementItemListParams::Category>] Comma-delimited list of pay statement item categories to filter on. If empty, de
|
20
|
+
# @param categories [Array<Symbol, FinchAPI::Models::HRIS::Company::PayStatementItemListParams::Category>] Comma-delimited list of pay statement item categories to filter on. If empty, de
|
21
21
|
#
|
22
22
|
# @param end_date [Date] The end date to retrieve pay statement items by via their last seen pay date in
|
23
23
|
#
|
@@ -13,7 +13,7 @@ module FinchAPI
|
|
13
13
|
#
|
14
14
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
15
15
|
#
|
16
|
-
# @return [FinchAPI::HRIS::HRISCompany]
|
16
|
+
# @return [FinchAPI::Models::HRIS::HRISCompany]
|
17
17
|
#
|
18
18
|
# @see FinchAPI::Models::HRIS::CompanyRetrieveParams
|
19
19
|
def retrieve(params = {})
|
@@ -14,7 +14,7 @@ module FinchAPI
|
|
14
14
|
#
|
15
15
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
16
16
|
#
|
17
|
-
# @return [FinchAPI::Internal::IndividualsPage<FinchAPI::HRIS::IndividualInDirectory>]
|
17
|
+
# @return [FinchAPI::Internal::IndividualsPage<FinchAPI::Models::HRIS::IndividualInDirectory>]
|
18
18
|
#
|
19
19
|
# @see FinchAPI::Models::HRIS::DirectoryListParams
|
20
20
|
def list(params = {})
|
@@ -18,7 +18,7 @@ module FinchAPI
|
|
18
18
|
#
|
19
19
|
# @param offset [Integer] Index to start from (defaults to 0)
|
20
20
|
#
|
21
|
-
# @param types [Array<Symbol, FinchAPI::HRIS::DocumentListParams::Type>] Comma-delimited list of document types to filter on. If empty, defaults to all t
|
21
|
+
# @param types [Array<Symbol, FinchAPI::Models::HRIS::DocumentListParams::Type>] Comma-delimited list of document types to filter on. If empty, defaults to all t
|
22
22
|
#
|
23
23
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
24
24
|
#
|
@@ -45,7 +45,7 @@ module FinchAPI
|
|
45
45
|
#
|
46
46
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
47
47
|
#
|
48
|
-
# @return [FinchAPI::HRIS::W42020, FinchAPI::HRIS::W42005]
|
48
|
+
# @return [FinchAPI::Models::HRIS::W42020, FinchAPI::Models::HRIS::W42005]
|
49
49
|
#
|
50
50
|
# @see FinchAPI::Models::HRIS::DocumentRetreiveParams
|
51
51
|
def retreive(document_id, params = {})
|
@@ -8,11 +8,11 @@ module FinchAPI
|
|
8
8
|
#
|
9
9
|
# @overload retrieve_many(requests:, request_options: {})
|
10
10
|
#
|
11
|
-
# @param requests [Array<FinchAPI::HRIS::EmploymentRetrieveManyParams::Request>] The array of batch requests.
|
11
|
+
# @param requests [Array<FinchAPI::Models::HRIS::EmploymentRetrieveManyParams::Request>] The array of batch requests.
|
12
12
|
#
|
13
13
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
14
14
|
#
|
15
|
-
# @return [FinchAPI::Internal::ResponsesPage<FinchAPI::HRIS::EmploymentDataResponse>]
|
15
|
+
# @return [FinchAPI::Internal::ResponsesPage<FinchAPI::Models::HRIS::EmploymentDataResponse>]
|
16
16
|
#
|
17
17
|
# @see FinchAPI::Models::HRIS::EmploymentRetrieveManyParams
|
18
18
|
def retrieve_many(params)
|
@@ -8,11 +8,11 @@ module FinchAPI
|
|
8
8
|
#
|
9
9
|
# @overload retrieve_many(options: nil, requests: nil, request_options: {})
|
10
10
|
#
|
11
|
-
# @param options [FinchAPI::HRIS::IndividualRetrieveManyParams::Options, nil]
|
12
|
-
# @param requests [Array<FinchAPI::HRIS::IndividualRetrieveManyParams::Request>]
|
11
|
+
# @param options [FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Options, nil]
|
12
|
+
# @param requests [Array<FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Request>]
|
13
13
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
14
14
|
#
|
15
|
-
# @return [FinchAPI::Internal::ResponsesPage<FinchAPI::HRIS::IndividualResponse>]
|
15
|
+
# @return [FinchAPI::Internal::ResponsesPage<FinchAPI::Models::HRIS::IndividualResponse>]
|
16
16
|
#
|
17
17
|
# @see FinchAPI::Models::HRIS::IndividualRetrieveManyParams
|
18
18
|
def retrieve_many(params = {})
|
@@ -11,11 +11,11 @@ module FinchAPI
|
|
11
11
|
#
|
12
12
|
# @overload retrieve_many(requests:, request_options: {})
|
13
13
|
#
|
14
|
-
# @param requests [Array<FinchAPI::HRIS::PayStatementRetrieveManyParams::Request>] The array of batch requests.
|
14
|
+
# @param requests [Array<FinchAPI::Models::HRIS::PayStatementRetrieveManyParams::Request>] The array of batch requests.
|
15
15
|
#
|
16
16
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
17
17
|
#
|
18
|
-
# @return [FinchAPI::Internal::ResponsesPage<FinchAPI::HRIS::PayStatementResponse>]
|
18
|
+
# @return [FinchAPI::Internal::ResponsesPage<FinchAPI::Models::HRIS::PayStatementResponse>]
|
19
19
|
#
|
20
20
|
# @see FinchAPI::Models::HRIS::PayStatementRetrieveManyParams
|
21
21
|
def retrieve_many(params)
|
@@ -17,7 +17,7 @@ module FinchAPI
|
|
17
17
|
#
|
18
18
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
19
19
|
#
|
20
|
-
# @return [FinchAPI::Internal::SinglePage<FinchAPI::HRIS::Payment>]
|
20
|
+
# @return [FinchAPI::Internal::SinglePage<FinchAPI::Models::HRIS::Payment>]
|
21
21
|
#
|
22
22
|
# @see FinchAPI::Models::HRIS::PaymentListParams
|
23
23
|
def list(params)
|
@@ -21,9 +21,9 @@ module FinchAPI
|
|
21
21
|
#
|
22
22
|
# @overload create(type:, params:, request_options: {})
|
23
23
|
#
|
24
|
-
# @param type [Symbol, FinchAPI::Jobs::AutomatedCreateParams::Type] The type of job to start.
|
24
|
+
# @param type [Symbol, FinchAPI::Models::Jobs::AutomatedCreateParams::Type] The type of job to start.
|
25
25
|
#
|
26
|
-
# @param params [FinchAPI::Jobs::AutomatedCreateParams::Params]
|
26
|
+
# @param params [FinchAPI::Models::Jobs::AutomatedCreateParams::Params]
|
27
27
|
#
|
28
28
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
29
29
|
#
|
@@ -48,7 +48,7 @@ module FinchAPI
|
|
48
48
|
# @param job_id [String]
|
49
49
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
50
50
|
#
|
51
|
-
# @return [FinchAPI::Jobs::AutomatedAsyncJob]
|
51
|
+
# @return [FinchAPI::Models::Jobs::AutomatedAsyncJob]
|
52
52
|
#
|
53
53
|
# @see FinchAPI::Models::Jobs::AutomatedRetrieveParams
|
54
54
|
def retrieve(job_id, params = {})
|
@@ -12,7 +12,7 @@ module FinchAPI
|
|
12
12
|
# @param job_id [String]
|
13
13
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
14
14
|
#
|
15
|
-
# @return [FinchAPI::Jobs::ManualAsyncJob]
|
15
|
+
# @return [FinchAPI::Models::Jobs::ManualAsyncJob]
|
16
16
|
#
|
17
17
|
# @see FinchAPI::Models::Jobs::ManualRetrieveParams
|
18
18
|
def retrieve(job_id, params = {})
|
@@ -9,7 +9,7 @@ module FinchAPI
|
|
9
9
|
#
|
10
10
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
11
11
|
#
|
12
|
-
# @return [FinchAPI::Internal::SinglePage<FinchAPI::Provider>]
|
12
|
+
# @return [FinchAPI::Internal::SinglePage<FinchAPI::Models::Provider>]
|
13
13
|
#
|
14
14
|
# @see FinchAPI::Models::ProviderListParams
|
15
15
|
def list(params = {})
|
@@ -11,17 +11,17 @@ module FinchAPI
|
|
11
11
|
#
|
12
12
|
# @overload update(accounts:, departments:, ein:, entity:, legal_name:, locations:, primary_email:, primary_phone_number:, request_options: {})
|
13
13
|
#
|
14
|
-
# @param accounts [Array<FinchAPI::Sandbox::CompanyUpdateParams::Account>, nil] An array of bank account objects associated with the payroll/HRIS system.
|
14
|
+
# @param accounts [Array<FinchAPI::Models::Sandbox::CompanyUpdateParams::Account>, nil] An array of bank account objects associated with the payroll/HRIS system.
|
15
15
|
#
|
16
|
-
# @param departments [Array<FinchAPI::Sandbox::CompanyUpdateParams::Department, nil>, nil] The array of company departments.
|
16
|
+
# @param departments [Array<FinchAPI::Models::Sandbox::CompanyUpdateParams::Department, nil>, nil] The array of company departments.
|
17
17
|
#
|
18
18
|
# @param ein [String, nil] The employer identification number.
|
19
19
|
#
|
20
|
-
# @param entity [FinchAPI::Sandbox::CompanyUpdateParams::Entity, nil] The entity type object.
|
20
|
+
# @param entity [FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity, nil] The entity type object.
|
21
21
|
#
|
22
22
|
# @param legal_name [String, nil] The legal name of the company.
|
23
23
|
#
|
24
|
-
# @param locations [Array<FinchAPI::Location, nil>, nil]
|
24
|
+
# @param locations [Array<FinchAPI::Models::Location, nil>, nil]
|
25
25
|
#
|
26
26
|
# @param primary_email [String, nil] The email of the main administrator on the account.
|
27
27
|
#
|
@@ -16,7 +16,7 @@ module FinchAPI
|
|
16
16
|
#
|
17
17
|
# @param provider_id [String] The provider associated with the `access_token`
|
18
18
|
#
|
19
|
-
# @param authentication_type [Symbol, FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType]
|
19
|
+
# @param authentication_type [Symbol, FinchAPI::Models::Sandbox::Connections::AccountCreateParams::AuthenticationType]
|
20
20
|
#
|
21
21
|
# @param products [Array<String>] Optional, defaults to Organization products (`company`, `directory`, `employment
|
22
22
|
#
|
@@ -41,7 +41,7 @@ module FinchAPI
|
|
41
41
|
#
|
42
42
|
# @overload update(connection_status: nil, request_options: {})
|
43
43
|
#
|
44
|
-
# @param connection_status [Symbol, FinchAPI::ConnectionStatusType]
|
44
|
+
# @param connection_status [Symbol, FinchAPI::Models::ConnectionStatusType]
|
45
45
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
46
46
|
#
|
47
47
|
# @return [FinchAPI::Models::Sandbox::Connections::AccountUpdateResponse]
|
@@ -16,7 +16,7 @@ module FinchAPI
|
|
16
16
|
#
|
17
17
|
# @param provider_id [String] The provider associated with the connection
|
18
18
|
#
|
19
|
-
# @param authentication_type [Symbol, FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType]
|
19
|
+
# @param authentication_type [Symbol, FinchAPI::Models::Sandbox::ConnectionCreateParams::AuthenticationType]
|
20
20
|
#
|
21
21
|
# @param employee_size [Integer] Optional: the size of the employer to be created with this connection. Defaults
|
22
22
|
#
|
@@ -11,7 +11,7 @@ module FinchAPI
|
|
11
11
|
#
|
12
12
|
# @overload create(body: nil, request_options: {})
|
13
13
|
#
|
14
|
-
# @param body [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body>] Array of individuals to create. Takes all combined fields from `/individual` and
|
14
|
+
# @param body [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body>] Array of individuals to create. Takes all combined fields from `/individual` and
|
15
15
|
#
|
16
16
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
17
17
|
#
|
@@ -15,21 +15,21 @@ module FinchAPI
|
|
15
15
|
#
|
16
16
|
# @param class_code [String, nil] Worker's compensation classification code for this employee
|
17
17
|
#
|
18
|
-
# @param custom_fields [Array<FinchAPI::Sandbox::EmploymentUpdateParams::CustomField
|
18
|
+
# @param custom_fields [Array<FinchAPI::Models::Sandbox::EmploymentUpdateParams::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
|
19
19
|
#
|
20
|
-
# @param department [FinchAPI::Sandbox::EmploymentUpdateParams::Department, nil] The department object.
|
20
|
+
# @param department [FinchAPI::Models::Sandbox::EmploymentUpdateParams::Department, nil] The department object.
|
21
21
|
#
|
22
|
-
# @param employment [FinchAPI::Sandbox::EmploymentUpdateParams::Employment, nil] The employment object.
|
22
|
+
# @param employment [FinchAPI::Models::Sandbox::EmploymentUpdateParams::Employment, nil] The employment object.
|
23
23
|
#
|
24
|
-
# @param employment_status [Symbol, FinchAPI::Sandbox::EmploymentUpdateParams::EmploymentStatus, nil] The detailed employment status of the individual.
|
24
|
+
# @param employment_status [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateParams::EmploymentStatus, nil] The detailed employment status of the individual. Available options: `active`, `
|
25
25
|
#
|
26
26
|
# @param end_date [String, nil]
|
27
27
|
#
|
28
28
|
# @param first_name [String, nil] The legal first name of the individual.
|
29
29
|
#
|
30
|
-
# @param income [FinchAPI::Income, nil] The employee's income as reported by the provider. This may not always be annual
|
30
|
+
# @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
|
31
31
|
#
|
32
|
-
# @param income_history [Array<FinchAPI::Income, nil>, nil] The array of income history.
|
32
|
+
# @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
|
33
33
|
#
|
34
34
|
# @param is_active [Boolean, nil] `true` if the individual an an active employee or contractor at the company.
|
35
35
|
#
|
@@ -37,13 +37,13 @@ module FinchAPI
|
|
37
37
|
#
|
38
38
|
# @param latest_rehire_date [String, nil]
|
39
39
|
#
|
40
|
-
# @param location [FinchAPI::Location, nil]
|
40
|
+
# @param location [FinchAPI::Models::Location, nil]
|
41
41
|
#
|
42
|
-
# @param manager [FinchAPI::Sandbox::EmploymentUpdateParams::Manager, nil] The manager object representing the manager of the individual within the org.
|
42
|
+
# @param manager [FinchAPI::Models::Sandbox::EmploymentUpdateParams::Manager, nil] The manager object representing the manager of the individual within the org.
|
43
43
|
#
|
44
44
|
# @param middle_name [String, nil] The legal middle name of the individual.
|
45
45
|
#
|
46
|
-
# @param source_id [String] The source system's unique employment identifier for this individual
|
46
|
+
# @param source_id [String, nil] The source system's unique employment identifier for this individual
|
47
47
|
#
|
48
48
|
# @param start_date [String, nil]
|
49
49
|
#
|
@@ -15,25 +15,25 @@ module FinchAPI
|
|
15
15
|
#
|
16
16
|
# @param dob [String, nil]
|
17
17
|
#
|
18
|
-
# @param emails [Array<FinchAPI::Sandbox::IndividualUpdateParams::Email>, nil]
|
18
|
+
# @param emails [Array<FinchAPI::Models::Sandbox::IndividualUpdateParams::Email>, nil]
|
19
19
|
#
|
20
20
|
# @param encrypted_ssn [String, nil] Social Security Number of the individual in **encrypted** format. This field is
|
21
21
|
#
|
22
|
-
# @param ethnicity [Symbol, FinchAPI::Sandbox::IndividualUpdateParams::Ethnicity, nil] The EEOC-defined ethnicity of the individual.
|
22
|
+
# @param ethnicity [Symbol, FinchAPI::Models::Sandbox::IndividualUpdateParams::Ethnicity, nil] The EEOC-defined ethnicity of the individual.
|
23
23
|
#
|
24
24
|
# @param first_name [String, nil] The legal first name of the individual.
|
25
25
|
#
|
26
|
-
# @param gender [Symbol, FinchAPI::Sandbox::IndividualUpdateParams::Gender, nil] The gender of the individual.
|
26
|
+
# @param gender [Symbol, FinchAPI::Models::Sandbox::IndividualUpdateParams::Gender, nil] The gender of the individual.
|
27
27
|
#
|
28
28
|
# @param last_name [String, nil] The legal last name of the individual.
|
29
29
|
#
|
30
30
|
# @param middle_name [String, nil] The legal middle name of the individual.
|
31
31
|
#
|
32
|
-
# @param phone_numbers [Array<FinchAPI::Sandbox::IndividualUpdateParams::PhoneNumber, nil>, nil]
|
32
|
+
# @param phone_numbers [Array<FinchAPI::Models::Sandbox::IndividualUpdateParams::PhoneNumber, nil>, nil]
|
33
33
|
#
|
34
34
|
# @param preferred_name [String, nil] The preferred name of the individual.
|
35
35
|
#
|
36
|
-
# @param residence [FinchAPI::Location, nil]
|
36
|
+
# @param residence [FinchAPI::Models::Location, nil]
|
37
37
|
#
|
38
38
|
# @param ssn [String, nil] Social Security Number of the individual. This field is only available with the
|
39
39
|
#
|
@@ -11,7 +11,7 @@ module FinchAPI
|
|
11
11
|
#
|
12
12
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
13
13
|
#
|
14
|
-
# @return [Array<FinchAPI::Sandbox::Jobs::SandboxJobConfiguration>]
|
14
|
+
# @return [Array<FinchAPI::Models::Sandbox::Jobs::SandboxJobConfiguration>]
|
15
15
|
#
|
16
16
|
# @see FinchAPI::Models::Sandbox::Jobs::ConfigurationRetrieveParams
|
17
17
|
def retrieve(params = {})
|
@@ -27,11 +27,11 @@ module FinchAPI
|
|
27
27
|
#
|
28
28
|
# @overload update(completion_status:, type:, request_options: {})
|
29
29
|
#
|
30
|
-
# @param completion_status [Symbol, FinchAPI::Sandbox::Jobs::SandboxJobConfiguration::CompletionStatus]
|
31
|
-
# @param type [Symbol, FinchAPI::Sandbox::Jobs::SandboxJobConfiguration::Type]
|
30
|
+
# @param completion_status [Symbol, FinchAPI::Models::Sandbox::Jobs::SandboxJobConfiguration::CompletionStatus]
|
31
|
+
# @param type [Symbol, FinchAPI::Models::Sandbox::Jobs::SandboxJobConfiguration::Type]
|
32
32
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
33
33
|
#
|
34
|
-
# @return [FinchAPI::Sandbox::Jobs::SandboxJobConfiguration]
|
34
|
+
# @return [FinchAPI::Models::Sandbox::Jobs::SandboxJobConfiguration]
|
35
35
|
#
|
36
36
|
# @see FinchAPI::Models::Sandbox::Jobs::ConfigurationUpdateParams
|
37
37
|
def update(params)
|
@@ -11,7 +11,7 @@ module FinchAPI
|
|
11
11
|
#
|
12
12
|
# @overload create(type:, request_options: {})
|
13
13
|
#
|
14
|
-
# @param type [Symbol, FinchAPI::Sandbox::JobCreateParams::Type] The type of job to start. Currently the only supported type is `data_sync_all`
|
14
|
+
# @param type [Symbol, FinchAPI::Models::Sandbox::JobCreateParams::Type] The type of job to start. Currently the only supported type is `data_sync_all`
|
15
15
|
#
|
16
16
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
17
17
|
#
|
@@ -8,9 +8,12 @@ module FinchAPI
|
|
8
8
|
#
|
9
9
|
# @overload create(end_date: nil, pay_statements: nil, start_date: nil, request_options: {})
|
10
10
|
#
|
11
|
-
# @param end_date [
|
12
|
-
#
|
13
|
-
# @param
|
11
|
+
# @param end_date [Date]
|
12
|
+
#
|
13
|
+
# @param pay_statements [Array<FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement>] Array of pay statements to include in the payment.
|
14
|
+
#
|
15
|
+
# @param start_date [Date]
|
16
|
+
#
|
14
17
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
15
18
|
#
|
16
19
|
# @return [FinchAPI::Models::Sandbox::PaymentCreateResponse]
|
data/lib/finch_api/version.rb
CHANGED