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
@@ -3,7 +3,7 @@ module FinchAPI
|
|
3
3
|
type account_update_event =
|
4
4
|
{
|
5
5
|
data: FinchAPI::AccountUpdateEvent::Data,
|
6
|
-
event_type: FinchAPI::AccountUpdateEvent::event_type
|
6
|
+
event_type: FinchAPI::Models::AccountUpdateEvent::event_type
|
7
7
|
}
|
8
8
|
|
9
9
|
class AccountUpdateEvent < FinchAPI::Models::BaseWebhookEvent
|
@@ -13,17 +13,22 @@ module FinchAPI
|
|
13
13
|
FinchAPI::AccountUpdateEvent::Data _
|
14
14
|
) -> FinchAPI::AccountUpdateEvent::Data
|
15
15
|
|
16
|
-
def event_type: -> FinchAPI::AccountUpdateEvent::event_type?
|
16
|
+
def event_type: -> FinchAPI::Models::AccountUpdateEvent::event_type?
|
17
17
|
|
18
18
|
def event_type=: (
|
19
|
-
FinchAPI::AccountUpdateEvent::event_type _
|
20
|
-
) -> FinchAPI::AccountUpdateEvent::event_type
|
19
|
+
FinchAPI::Models::AccountUpdateEvent::event_type _
|
20
|
+
) -> FinchAPI::Models::AccountUpdateEvent::event_type
|
21
21
|
|
22
22
|
def initialize: (
|
23
23
|
?data: FinchAPI::AccountUpdateEvent::Data,
|
24
|
-
?event_type: FinchAPI::AccountUpdateEvent::event_type
|
24
|
+
?event_type: FinchAPI::Models::AccountUpdateEvent::event_type
|
25
25
|
) -> void
|
26
26
|
|
27
|
+
def to_hash: -> {
|
28
|
+
data: FinchAPI::AccountUpdateEvent::Data,
|
29
|
+
event_type: FinchAPI::Models::AccountUpdateEvent::event_type
|
30
|
+
}
|
31
|
+
|
27
32
|
type data =
|
28
33
|
{
|
29
34
|
authentication_method: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod,
|
@@ -40,11 +45,16 @@ module FinchAPI
|
|
40
45
|
status: FinchAPI::Models::connection_status_type
|
41
46
|
) -> void
|
42
47
|
|
48
|
+
def to_hash: -> {
|
49
|
+
authentication_method: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod,
|
50
|
+
status: FinchAPI::Models::connection_status_type
|
51
|
+
}
|
52
|
+
|
43
53
|
type authentication_method =
|
44
54
|
{
|
45
55
|
benefits_support: FinchAPI::HRIS::BenefitsSupport?,
|
46
56
|
supported_fields: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields?,
|
47
|
-
type: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
57
|
+
type: FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
48
58
|
}
|
49
59
|
|
50
60
|
class AuthenticationMethod < FinchAPI::Internal::Type::BaseModel
|
@@ -52,18 +62,24 @@ module FinchAPI
|
|
52
62
|
|
53
63
|
attr_accessor supported_fields: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields?
|
54
64
|
|
55
|
-
attr_reader type: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::type_?
|
65
|
+
attr_reader type: FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::type_?
|
56
66
|
|
57
67
|
def type=: (
|
58
|
-
FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
59
|
-
) -> FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
68
|
+
FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
69
|
+
) -> FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
60
70
|
|
61
71
|
def initialize: (
|
62
72
|
?benefits_support: FinchAPI::HRIS::BenefitsSupport?,
|
63
73
|
?supported_fields: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields?,
|
64
|
-
?type: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
74
|
+
?type: FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
65
75
|
) -> void
|
66
76
|
|
77
|
+
def to_hash: -> {
|
78
|
+
benefits_support: FinchAPI::HRIS::BenefitsSupport?,
|
79
|
+
supported_fields: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields?,
|
80
|
+
type: FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::type_
|
81
|
+
}
|
82
|
+
|
67
83
|
type supported_fields =
|
68
84
|
{
|
69
85
|
company: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company,
|
@@ -128,6 +144,16 @@ module FinchAPI
|
|
128
144
|
?payment: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment
|
129
145
|
) -> void
|
130
146
|
|
147
|
+
def to_hash: -> {
|
148
|
+
company: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company,
|
149
|
+
directory: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory,
|
150
|
+
employment: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment,
|
151
|
+
individual: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual,
|
152
|
+
pay_group: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayGroup,
|
153
|
+
pay_statement: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement,
|
154
|
+
payment: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment
|
155
|
+
}
|
156
|
+
|
131
157
|
type company =
|
132
158
|
{
|
133
159
|
id: bool,
|
@@ -198,6 +224,18 @@ module FinchAPI
|
|
198
224
|
?primary_phone_number: bool
|
199
225
|
) -> void
|
200
226
|
|
227
|
+
def to_hash: -> {
|
228
|
+
id: bool,
|
229
|
+
accounts: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Accounts,
|
230
|
+
departments: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments,
|
231
|
+
ein: bool,
|
232
|
+
entity: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Entity,
|
233
|
+
legal_name: bool,
|
234
|
+
locations: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Locations,
|
235
|
+
primary_email: bool,
|
236
|
+
primary_phone_number: bool
|
237
|
+
}
|
238
|
+
|
201
239
|
type accounts =
|
202
240
|
{
|
203
241
|
account_name: bool,
|
@@ -235,6 +273,14 @@ module FinchAPI
|
|
235
273
|
?institution_name: bool,
|
236
274
|
?routing_number: bool
|
237
275
|
) -> void
|
276
|
+
|
277
|
+
def to_hash: -> {
|
278
|
+
account_name: bool,
|
279
|
+
account_number: bool,
|
280
|
+
account_type: bool,
|
281
|
+
institution_name: bool,
|
282
|
+
routing_number: bool
|
283
|
+
}
|
238
284
|
end
|
239
285
|
|
240
286
|
type departments =
|
@@ -259,6 +305,11 @@ module FinchAPI
|
|
259
305
|
?parent: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments::Parent
|
260
306
|
) -> void
|
261
307
|
|
308
|
+
def to_hash: -> {
|
309
|
+
name: bool,
|
310
|
+
parent: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company::Departments::Parent
|
311
|
+
}
|
312
|
+
|
262
313
|
type parent = { name: bool }
|
263
314
|
|
264
315
|
class Parent < FinchAPI::Internal::Type::BaseModel
|
@@ -267,6 +318,8 @@ module FinchAPI
|
|
267
318
|
def name=: (bool) -> bool
|
268
319
|
|
269
320
|
def initialize: (?name: bool) -> void
|
321
|
+
|
322
|
+
def to_hash: -> { name: bool }
|
270
323
|
end
|
271
324
|
end
|
272
325
|
|
@@ -282,6 +335,8 @@ module FinchAPI
|
|
282
335
|
def type=: (bool) -> bool
|
283
336
|
|
284
337
|
def initialize: (?subtype: bool, ?type: bool) -> void
|
338
|
+
|
339
|
+
def to_hash: -> { subtype: bool, type: bool }
|
285
340
|
end
|
286
341
|
|
287
342
|
type locations =
|
@@ -327,6 +382,15 @@ module FinchAPI
|
|
327
382
|
?postal_code: bool,
|
328
383
|
?state: bool
|
329
384
|
) -> void
|
385
|
+
|
386
|
+
def to_hash: -> {
|
387
|
+
city: bool,
|
388
|
+
country: bool,
|
389
|
+
:line1 => bool,
|
390
|
+
:line2 => bool,
|
391
|
+
postal_code: bool,
|
392
|
+
state: bool
|
393
|
+
}
|
330
394
|
end
|
331
395
|
end
|
332
396
|
|
@@ -354,6 +418,11 @@ module FinchAPI
|
|
354
418
|
?paging: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Paging
|
355
419
|
) -> void
|
356
420
|
|
421
|
+
def to_hash: -> {
|
422
|
+
individuals: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals,
|
423
|
+
paging: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Paging
|
424
|
+
}
|
425
|
+
|
357
426
|
type individuals =
|
358
427
|
{
|
359
428
|
id: bool,
|
@@ -406,6 +475,16 @@ module FinchAPI
|
|
406
475
|
?middle_name: bool
|
407
476
|
) -> void
|
408
477
|
|
478
|
+
def to_hash: -> {
|
479
|
+
id: bool,
|
480
|
+
department: bool,
|
481
|
+
first_name: bool,
|
482
|
+
is_active: bool,
|
483
|
+
last_name: bool,
|
484
|
+
manager: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory::Individuals::Manager,
|
485
|
+
middle_name: bool
|
486
|
+
}
|
487
|
+
|
409
488
|
type manager = { id: bool }
|
410
489
|
|
411
490
|
class Manager < FinchAPI::Internal::Type::BaseModel
|
@@ -414,6 +493,8 @@ module FinchAPI
|
|
414
493
|
def id=: (bool) -> bool
|
415
494
|
|
416
495
|
def initialize: (?id: bool) -> void
|
496
|
+
|
497
|
+
def to_hash: -> { id: bool }
|
417
498
|
end
|
418
499
|
end
|
419
500
|
|
@@ -429,6 +510,8 @@ module FinchAPI
|
|
429
510
|
def offset=: (bool) -> bool
|
430
511
|
|
431
512
|
def initialize: (?count: bool, ?offset: bool) -> void
|
513
|
+
|
514
|
+
def to_hash: -> { count: bool, offset: bool }
|
432
515
|
end
|
433
516
|
end
|
434
517
|
|
@@ -552,6 +635,26 @@ module FinchAPI
|
|
552
635
|
?title: bool
|
553
636
|
) -> void
|
554
637
|
|
638
|
+
def to_hash: -> {
|
639
|
+
id: bool,
|
640
|
+
class_code: bool,
|
641
|
+
custom_fields: bool,
|
642
|
+
department: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Department,
|
643
|
+
employment: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Employment,
|
644
|
+
employment_status: bool,
|
645
|
+
end_date: bool,
|
646
|
+
first_name: bool,
|
647
|
+
income: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Income,
|
648
|
+
income_history: bool,
|
649
|
+
is_active: bool,
|
650
|
+
last_name: bool,
|
651
|
+
location: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Location,
|
652
|
+
manager: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager,
|
653
|
+
middle_name: bool,
|
654
|
+
start_date: bool,
|
655
|
+
title: bool
|
656
|
+
}
|
657
|
+
|
555
658
|
type department = { name: bool }
|
556
659
|
|
557
660
|
class Department < FinchAPI::Internal::Type::BaseModel
|
@@ -560,6 +663,8 @@ module FinchAPI
|
|
560
663
|
def name=: (bool) -> bool
|
561
664
|
|
562
665
|
def initialize: (?name: bool) -> void
|
666
|
+
|
667
|
+
def to_hash: -> { name: bool }
|
563
668
|
end
|
564
669
|
|
565
670
|
type employment = { subtype: bool, type: bool }
|
@@ -574,6 +679,8 @@ module FinchAPI
|
|
574
679
|
def type=: (bool) -> bool
|
575
680
|
|
576
681
|
def initialize: (?subtype: bool, ?type: bool) -> void
|
682
|
+
|
683
|
+
def to_hash: -> { subtype: bool, type: bool }
|
577
684
|
end
|
578
685
|
|
579
686
|
type income = { amount: bool, currency: bool, unit: bool }
|
@@ -596,6 +703,8 @@ module FinchAPI
|
|
596
703
|
?currency: bool,
|
597
704
|
?unit: bool
|
598
705
|
) -> void
|
706
|
+
|
707
|
+
def to_hash: -> { amount: bool, currency: bool, unit: bool }
|
599
708
|
end
|
600
709
|
|
601
710
|
type location =
|
@@ -641,6 +750,15 @@ module FinchAPI
|
|
641
750
|
?postal_code: bool,
|
642
751
|
?state: bool
|
643
752
|
) -> void
|
753
|
+
|
754
|
+
def to_hash: -> {
|
755
|
+
city: bool,
|
756
|
+
country: bool,
|
757
|
+
:line1 => bool,
|
758
|
+
:line2 => bool,
|
759
|
+
postal_code: bool,
|
760
|
+
state: bool
|
761
|
+
}
|
644
762
|
end
|
645
763
|
|
646
764
|
type manager = { id: bool }
|
@@ -651,6 +769,8 @@ module FinchAPI
|
|
651
769
|
def id=: (bool) -> bool
|
652
770
|
|
653
771
|
def initialize: (?id: bool) -> void
|
772
|
+
|
773
|
+
def to_hash: -> { id: bool }
|
654
774
|
end
|
655
775
|
end
|
656
776
|
|
@@ -746,6 +866,22 @@ module FinchAPI
|
|
746
866
|
?ssn: bool
|
747
867
|
) -> void
|
748
868
|
|
869
|
+
def to_hash: -> {
|
870
|
+
id: bool,
|
871
|
+
dob: bool,
|
872
|
+
emails: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Emails,
|
873
|
+
encrypted_ssn: bool,
|
874
|
+
ethnicity: bool,
|
875
|
+
first_name: bool,
|
876
|
+
gender: bool,
|
877
|
+
last_name: bool,
|
878
|
+
middle_name: bool,
|
879
|
+
phone_numbers: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::PhoneNumbers,
|
880
|
+
preferred_name: bool,
|
881
|
+
residence: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Individual::Residence,
|
882
|
+
ssn: bool
|
883
|
+
}
|
884
|
+
|
749
885
|
type emails = { data: bool, type: bool }
|
750
886
|
|
751
887
|
class Emails < FinchAPI::Internal::Type::BaseModel
|
@@ -758,6 +894,8 @@ module FinchAPI
|
|
758
894
|
def type=: (bool) -> bool
|
759
895
|
|
760
896
|
def initialize: (?data: bool, ?type: bool) -> void
|
897
|
+
|
898
|
+
def to_hash: -> { data: bool, type: bool }
|
761
899
|
end
|
762
900
|
|
763
901
|
type phone_numbers = { data: bool, type: bool }
|
@@ -772,6 +910,8 @@ module FinchAPI
|
|
772
910
|
def type=: (bool) -> bool
|
773
911
|
|
774
912
|
def initialize: (?data: bool, ?type: bool) -> void
|
913
|
+
|
914
|
+
def to_hash: -> { data: bool, type: bool }
|
775
915
|
end
|
776
916
|
|
777
917
|
type residence =
|
@@ -817,6 +957,15 @@ module FinchAPI
|
|
817
957
|
?postal_code: bool,
|
818
958
|
?state: bool
|
819
959
|
) -> void
|
960
|
+
|
961
|
+
def to_hash: -> {
|
962
|
+
city: bool,
|
963
|
+
country: bool,
|
964
|
+
:line1 => bool,
|
965
|
+
:line2 => bool,
|
966
|
+
postal_code: bool,
|
967
|
+
state: bool
|
968
|
+
}
|
820
969
|
end
|
821
970
|
end
|
822
971
|
|
@@ -851,6 +1000,13 @@ module FinchAPI
|
|
851
1000
|
?name: bool,
|
852
1001
|
?pay_frequencies: bool
|
853
1002
|
) -> void
|
1003
|
+
|
1004
|
+
def to_hash: -> {
|
1005
|
+
id: bool,
|
1006
|
+
individual_ids: bool,
|
1007
|
+
name: bool,
|
1008
|
+
pay_frequencies: bool
|
1009
|
+
}
|
854
1010
|
end
|
855
1011
|
|
856
1012
|
type pay_statement =
|
@@ -877,6 +1033,11 @@ module FinchAPI
|
|
877
1033
|
?pay_statements: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements
|
878
1034
|
) -> void
|
879
1035
|
|
1036
|
+
def to_hash: -> {
|
1037
|
+
paging: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::Paging,
|
1038
|
+
pay_statements: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements
|
1039
|
+
}
|
1040
|
+
|
880
1041
|
type paging = { count: bool, offset: bool }
|
881
1042
|
|
882
1043
|
class Paging < FinchAPI::Internal::Type::BaseModel
|
@@ -885,6 +1046,8 @@ module FinchAPI
|
|
885
1046
|
attr_accessor offset: bool
|
886
1047
|
|
887
1048
|
def initialize: (count: bool, offset: bool) -> void
|
1049
|
+
|
1050
|
+
def to_hash: -> { count: bool, offset: bool }
|
888
1051
|
end
|
889
1052
|
|
890
1053
|
type pay_statements =
|
@@ -963,6 +1126,19 @@ module FinchAPI
|
|
963
1126
|
?type: bool
|
964
1127
|
) -> void
|
965
1128
|
|
1129
|
+
def to_hash: -> {
|
1130
|
+
earnings: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Earnings,
|
1131
|
+
employee_deductions: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployeeDeductions,
|
1132
|
+
employer_contributions: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::EmployerContributions,
|
1133
|
+
gross_pay: bool,
|
1134
|
+
individual_id: bool,
|
1135
|
+
net_pay: bool,
|
1136
|
+
payment_method: bool,
|
1137
|
+
taxes: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement::PayStatements::Taxes,
|
1138
|
+
total_hours: bool,
|
1139
|
+
type: bool
|
1140
|
+
}
|
1141
|
+
|
966
1142
|
type earnings =
|
967
1143
|
{ amount: bool, currency: bool, name: bool, type: bool }
|
968
1144
|
|
@@ -989,6 +1165,13 @@ module FinchAPI
|
|
989
1165
|
?name: bool,
|
990
1166
|
?type: bool
|
991
1167
|
) -> void
|
1168
|
+
|
1169
|
+
def to_hash: -> {
|
1170
|
+
amount: bool,
|
1171
|
+
currency: bool,
|
1172
|
+
name: bool,
|
1173
|
+
type: bool
|
1174
|
+
}
|
992
1175
|
end
|
993
1176
|
|
994
1177
|
type employee_deductions =
|
@@ -1028,6 +1211,14 @@ module FinchAPI
|
|
1028
1211
|
?pre_tax: bool,
|
1029
1212
|
?type: bool
|
1030
1213
|
) -> void
|
1214
|
+
|
1215
|
+
def to_hash: -> {
|
1216
|
+
amount: bool,
|
1217
|
+
currency: bool,
|
1218
|
+
name: bool,
|
1219
|
+
pre_tax: bool,
|
1220
|
+
type: bool
|
1221
|
+
}
|
1031
1222
|
end
|
1032
1223
|
|
1033
1224
|
type employer_contributions =
|
@@ -1051,6 +1242,8 @@ module FinchAPI
|
|
1051
1242
|
?currency: bool,
|
1052
1243
|
?name: bool
|
1053
1244
|
) -> void
|
1245
|
+
|
1246
|
+
def to_hash: -> { amount: bool, currency: bool, name: bool }
|
1054
1247
|
end
|
1055
1248
|
|
1056
1249
|
type taxes =
|
@@ -1090,6 +1283,14 @@ module FinchAPI
|
|
1090
1283
|
?name: bool,
|
1091
1284
|
?type: bool
|
1092
1285
|
) -> void
|
1286
|
+
|
1287
|
+
def to_hash: -> {
|
1288
|
+
amount: bool,
|
1289
|
+
currency: bool,
|
1290
|
+
employer: bool,
|
1291
|
+
name: bool,
|
1292
|
+
type: bool
|
1293
|
+
}
|
1093
1294
|
end
|
1094
1295
|
end
|
1095
1296
|
end
|
@@ -1176,6 +1377,21 @@ module FinchAPI
|
|
1176
1377
|
?pay_period: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment::PayPeriod
|
1177
1378
|
) -> void
|
1178
1379
|
|
1380
|
+
def to_hash: -> {
|
1381
|
+
id: bool,
|
1382
|
+
company_debit: bool,
|
1383
|
+
debit_date: bool,
|
1384
|
+
employee_taxes: bool,
|
1385
|
+
employer_taxes: bool,
|
1386
|
+
gross_pay: bool,
|
1387
|
+
individual_ids: bool,
|
1388
|
+
net_pay: bool,
|
1389
|
+
pay_date: bool,
|
1390
|
+
pay_frequencies: bool,
|
1391
|
+
pay_group_ids: bool,
|
1392
|
+
pay_period: FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment::PayPeriod
|
1393
|
+
}
|
1394
|
+
|
1179
1395
|
type pay_period = { end_date: bool, start_date: bool }
|
1180
1396
|
|
1181
1397
|
class PayPeriod < FinchAPI::Internal::Type::BaseModel
|
@@ -1188,6 +1404,8 @@ module FinchAPI
|
|
1188
1404
|
def start_date=: (bool) -> bool
|
1189
1405
|
|
1190
1406
|
def initialize: (?end_date: bool, ?start_date: bool) -> void
|
1407
|
+
|
1408
|
+
def to_hash: -> { end_date: bool, start_date: bool }
|
1191
1409
|
end
|
1192
1410
|
end
|
1193
1411
|
end
|
@@ -1204,7 +1422,7 @@ module FinchAPI
|
|
1204
1422
|
API_CREDENTIAL: :api_credential
|
1205
1423
|
OAUTH: :oauth
|
1206
1424
|
|
1207
|
-
def self?.values: -> ::Array[FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::type_]
|
1425
|
+
def self?.values: -> ::Array[FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::type_]
|
1208
1426
|
end
|
1209
1427
|
end
|
1210
1428
|
end
|
@@ -1216,7 +1434,7 @@ module FinchAPI
|
|
1216
1434
|
|
1217
1435
|
ACCOUNT_UPDATED: :"account.updated"
|
1218
1436
|
|
1219
|
-
def self?.values: -> ::Array[FinchAPI::AccountUpdateEvent::event_type]
|
1437
|
+
def self?.values: -> ::Array[FinchAPI::Models::AccountUpdateEvent::event_type]
|
1220
1438
|
end
|
1221
1439
|
end
|
1222
1440
|
end
|
@@ -3,7 +3,7 @@ module FinchAPI
|
|
3
3
|
type company_event =
|
4
4
|
{
|
5
5
|
data: ::Hash[Symbol, top]?,
|
6
|
-
event_type: FinchAPI::CompanyEvent::event_type
|
6
|
+
event_type: FinchAPI::Models::CompanyEvent::event_type
|
7
7
|
}
|
8
8
|
|
9
9
|
class CompanyEvent < FinchAPI::Models::BaseWebhookEvent
|
@@ -11,17 +11,22 @@ module FinchAPI
|
|
11
11
|
|
12
12
|
def data=: (::Hash[Symbol, top]? _) -> ::Hash[Symbol, top]?
|
13
13
|
|
14
|
-
def event_type: -> FinchAPI::CompanyEvent::event_type?
|
14
|
+
def event_type: -> FinchAPI::Models::CompanyEvent::event_type?
|
15
15
|
|
16
16
|
def event_type=: (
|
17
|
-
FinchAPI::CompanyEvent::event_type _
|
18
|
-
) -> FinchAPI::CompanyEvent::event_type
|
17
|
+
FinchAPI::Models::CompanyEvent::event_type _
|
18
|
+
) -> FinchAPI::Models::CompanyEvent::event_type
|
19
19
|
|
20
20
|
def initialize: (
|
21
21
|
?data: ::Hash[Symbol, top]?,
|
22
|
-
?event_type: FinchAPI::CompanyEvent::event_type
|
22
|
+
?event_type: FinchAPI::Models::CompanyEvent::event_type
|
23
23
|
) -> void
|
24
24
|
|
25
|
+
def to_hash: -> {
|
26
|
+
data: ::Hash[Symbol, top]?,
|
27
|
+
event_type: FinchAPI::Models::CompanyEvent::event_type
|
28
|
+
}
|
29
|
+
|
25
30
|
type event_type = :"company.updated"
|
26
31
|
|
27
32
|
module EventType
|
@@ -29,7 +34,7 @@ module FinchAPI
|
|
29
34
|
|
30
35
|
COMPANY_UPDATED: :"company.updated"
|
31
36
|
|
32
|
-
def self?.values: -> ::Array[FinchAPI::CompanyEvent::event_type]
|
37
|
+
def self?.values: -> ::Array[FinchAPI::Models::CompanyEvent::event_type]
|
33
38
|
end
|
34
39
|
end
|
35
40
|
end
|
@@ -5,7 +5,7 @@ module FinchAPI
|
|
5
5
|
{
|
6
6
|
customer_id: String,
|
7
7
|
customer_name: String,
|
8
|
-
products: ::Array[FinchAPI::Connect::SessionNewParams::product],
|
8
|
+
products: ::Array[FinchAPI::Models::Connect::SessionNewParams::product],
|
9
9
|
customer_email: String?,
|
10
10
|
integration: FinchAPI::Connect::SessionNewParams::Integration?,
|
11
11
|
manual: bool?,
|
@@ -23,7 +23,7 @@ module FinchAPI
|
|
23
23
|
|
24
24
|
attr_accessor customer_name: String
|
25
25
|
|
26
|
-
attr_accessor products: ::Array[FinchAPI::Connect::SessionNewParams::product]
|
26
|
+
attr_accessor products: ::Array[FinchAPI::Models::Connect::SessionNewParams::product]
|
27
27
|
|
28
28
|
attr_accessor customer_email: String?
|
29
29
|
|
@@ -40,7 +40,7 @@ module FinchAPI
|
|
40
40
|
def initialize: (
|
41
41
|
customer_id: String,
|
42
42
|
customer_name: String,
|
43
|
-
products: ::Array[FinchAPI::Connect::SessionNewParams::product],
|
43
|
+
products: ::Array[FinchAPI::Models::Connect::SessionNewParams::product],
|
44
44
|
?customer_email: String?,
|
45
45
|
?integration: FinchAPI::Connect::SessionNewParams::Integration?,
|
46
46
|
?manual: bool?,
|
@@ -50,6 +50,19 @@ module FinchAPI
|
|
50
50
|
?request_options: FinchAPI::request_opts
|
51
51
|
) -> void
|
52
52
|
|
53
|
+
def to_hash: -> {
|
54
|
+
customer_id: String,
|
55
|
+
customer_name: String,
|
56
|
+
products: ::Array[FinchAPI::Models::Connect::SessionNewParams::product],
|
57
|
+
customer_email: String?,
|
58
|
+
integration: FinchAPI::Connect::SessionNewParams::Integration?,
|
59
|
+
manual: bool?,
|
60
|
+
minutes_to_expire: Float?,
|
61
|
+
redirect_uri: String?,
|
62
|
+
sandbox: FinchAPI::Models::Connect::SessionNewParams::sandbox?,
|
63
|
+
request_options: FinchAPI::RequestOptions
|
64
|
+
}
|
65
|
+
|
53
66
|
type product =
|
54
67
|
:company
|
55
68
|
| :directory
|
@@ -76,25 +89,30 @@ module FinchAPI
|
|
76
89
|
DEDUCTION: :deduction
|
77
90
|
DOCUMENTS: :documents
|
78
91
|
|
79
|
-
def self?.values: -> ::Array[FinchAPI::Connect::SessionNewParams::product]
|
92
|
+
def self?.values: -> ::Array[FinchAPI::Models::Connect::SessionNewParams::product]
|
80
93
|
end
|
81
94
|
|
82
95
|
type integration =
|
83
96
|
{
|
84
|
-
auth_method: FinchAPI::Connect::SessionNewParams::Integration::auth_method?,
|
97
|
+
auth_method: FinchAPI::Models::Connect::SessionNewParams::Integration::auth_method?,
|
85
98
|
provider: String?
|
86
99
|
}
|
87
100
|
|
88
101
|
class Integration < FinchAPI::Internal::Type::BaseModel
|
89
|
-
attr_accessor auth_method: FinchAPI::Connect::SessionNewParams::Integration::auth_method?
|
102
|
+
attr_accessor auth_method: FinchAPI::Models::Connect::SessionNewParams::Integration::auth_method?
|
90
103
|
|
91
104
|
attr_accessor provider: String?
|
92
105
|
|
93
106
|
def initialize: (
|
94
|
-
?auth_method: FinchAPI::Connect::SessionNewParams::Integration::auth_method?,
|
107
|
+
?auth_method: FinchAPI::Models::Connect::SessionNewParams::Integration::auth_method?,
|
95
108
|
?provider: String?
|
96
109
|
) -> void
|
97
110
|
|
111
|
+
def to_hash: -> {
|
112
|
+
auth_method: FinchAPI::Models::Connect::SessionNewParams::Integration::auth_method?,
|
113
|
+
provider: String?
|
114
|
+
}
|
115
|
+
|
98
116
|
type auth_method = :assisted | :credential | :oauth | :api_token
|
99
117
|
|
100
118
|
module AuthMethod
|
@@ -105,7 +123,7 @@ module FinchAPI
|
|
105
123
|
OAUTH: :oauth
|
106
124
|
API_TOKEN: :api_token
|
107
125
|
|
108
|
-
def self?.values: -> ::Array[FinchAPI::Connect::SessionNewParams::Integration::auth_method]
|
126
|
+
def self?.values: -> ::Array[FinchAPI::Models::Connect::SessionNewParams::Integration::auth_method]
|
109
127
|
end
|
110
128
|
end
|
111
129
|
|