fern_gusto 0.0.6.pre.alpha6
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 +7 -0
- data/lib/base_gusto.rb +175 -0
- data/lib/core/file_utilities.rb +27 -0
- data/lib/environment.rb +9 -0
- data/lib/fern_gusto/ach_transactions/client.rb +119 -0
- data/lib/fern_gusto/admins/types/admin.rb +82 -0
- data/lib/fern_gusto/companies/attachments/client.rb +335 -0
- data/lib/fern_gusto/companies/attachments/types/attachments_create_request_category.rb +15 -0
- data/lib/fern_gusto/companies/attachments/types/attachments_get_download_url_response.rb +56 -0
- data/lib/fern_gusto/companies/bank_accounts/client.rb +435 -0
- data/lib/fern_gusto/companies/bank_accounts/types/bank_accounts_create_request_account_type.rb +15 -0
- data/lib/fern_gusto/companies/benefits/client.rb +862 -0
- data/lib/fern_gusto/companies/client.rb +1104 -0
- data/lib/fern_gusto/companies/departments/client.rb +587 -0
- data/lib/fern_gusto/companies/departments/types/departments_add_people_request_contractors_item.rb +59 -0
- data/lib/fern_gusto/companies/departments/types/departments_add_people_request_employees_item.rb +59 -0
- data/lib/fern_gusto/companies/departments/types/departments_remove_people_request_contractors_item.rb +59 -0
- data/lib/fern_gusto/companies/departments/types/departments_remove_people_request_employees_item.rb +59 -0
- data/lib/fern_gusto/companies/employees/client.rb +376 -0
- data/lib/fern_gusto/companies/external_payrolls/client.rb +605 -0
- data/lib/fern_gusto/companies/external_payrolls/types/external_payrolls_update_request_external_payroll_items_item.rb +98 -0
- data/lib/fern_gusto/companies/external_payrolls/types/external_payrolls_update_request_external_payroll_items_item_benefits_item.rb +79 -0
- data/lib/fern_gusto/companies/external_payrolls/types/external_payrolls_update_request_external_payroll_items_item_earnings_item.rb +87 -0
- data/lib/fern_gusto/companies/external_payrolls/types/external_payrolls_update_request_external_payroll_items_item_earnings_item_earning_type.rb +15 -0
- data/lib/fern_gusto/companies/external_payrolls/types/external_payrolls_update_request_external_payroll_items_item_taxes_item.rb +69 -0
- data/lib/fern_gusto/companies/external_payrolls/types/external_payrolls_update_tax_liabilities_request_liability_selections_item.rb +80 -0
- data/lib/fern_gusto/companies/federal_tax_details/client.rb +212 -0
- data/lib/fern_gusto/companies/federal_tax_details/types/federal_tax_details_update_request_tax_payer_type.rb +25 -0
- data/lib/fern_gusto/companies/forms/client.rb +345 -0
- data/lib/fern_gusto/companies/industry_selection/client.rb +207 -0
- data/lib/fern_gusto/companies/locations/client.rb +417 -0
- data/lib/fern_gusto/companies/pay_schedules/client.rb +377 -0
- data/lib/fern_gusto/companies/payment_configs/client.rb +198 -0
- data/lib/fern_gusto/companies/payment_configs/types/payment_configs_update_request_payment_speed.rb +19 -0
- data/lib/fern_gusto/companies/signatories/client.rb +513 -0
- data/lib/fern_gusto/companies/signatories/types/signatories_create_request_home_address.rb +89 -0
- data/lib/fern_gusto/companies/signatories/types/signatories_update_request_home_address.rb +88 -0
- data/lib/fern_gusto/companies/tax_requirements/client.rb +367 -0
- data/lib/fern_gusto/companies/tax_requirements/types/tax_requirements_list_response_item.rb +75 -0
- data/lib/fern_gusto/companies/tax_requirements/types/tax_requirements_update_state_request_requirement_sets_item.rb +88 -0
- data/lib/fern_gusto/companies/tax_requirements/types/tax_requirements_update_state_request_requirement_sets_item_requirements_item.rb +70 -0
- data/lib/fern_gusto/companies/types/companies_accept_terms_response.rb +56 -0
- data/lib/fern_gusto/companies/types/companies_create_request_company.rb +83 -0
- data/lib/fern_gusto/companies/types/companies_create_request_user.rb +81 -0
- data/lib/fern_gusto/companies/types/companies_create_response.rb +82 -0
- data/lib/fern_gusto/companies/types/companies_get_custom_fields_response.rb +59 -0
- data/lib/fern_gusto/companies/types/companies_migrate_to_embedded_payroll_response.rb +68 -0
- data/lib/fern_gusto/companies/types/companies_retrieve_terms_response.rb +56 -0
- data/lib/fern_gusto/companies/types/company.rb +223 -0
- data/lib/fern_gusto/companies/types/company_company_status.rb +21 -0
- data/lib/fern_gusto/companies/types/company_compensations.rb +85 -0
- data/lib/fern_gusto/companies/types/company_compensations_fixed_item.rb +55 -0
- data/lib/fern_gusto/companies/types/company_compensations_hourly_item.rb +65 -0
- data/lib/fern_gusto/companies/types/company_compensations_paid_time_off_item.rb +55 -0
- data/lib/fern_gusto/companies/types/company_entity_type.rb +23 -0
- data/lib/fern_gusto/companies/types/company_funding_type.rb +15 -0
- data/lib/fern_gusto/companies/types/company_onboarding_status.rb +77 -0
- data/lib/fern_gusto/companies/types/company_onboarding_status_onboarding_steps_item.rb +97 -0
- data/lib/fern_gusto/companies/types/company_pay_schedule_type.rb +15 -0
- data/lib/fern_gusto/companies/types/company_primary_payroll_admin.rb +80 -0
- data/lib/fern_gusto/companies/types/company_primary_signatory.rb +100 -0
- data/lib/fern_gusto/companies/types/company_primary_signatory_home_address.rb +93 -0
- data/lib/fern_gusto/companies/types/company_tier.rb +20 -0
- data/lib/fern_gusto/company_attachment/types/company_attachment.rb +81 -0
- data/lib/fern_gusto/company_attachment/types/company_attachment_category.rb +13 -0
- data/lib/fern_gusto/company_bank_accounts/types/company_bank_account.rb +157 -0
- data/lib/fern_gusto/company_bank_accounts/types/company_bank_account_account_type.rb +13 -0
- data/lib/fern_gusto/company_bank_accounts/types/company_bank_account_plaid_status.rb +14 -0
- data/lib/fern_gusto/company_bank_accounts/types/company_bank_account_verification_status.rb +19 -0
- data/lib/fern_gusto/company_bank_accounts/types/company_bank_account_verification_type.rb +17 -0
- data/lib/fern_gusto/company_benefits/types/benefit_summary.rb +104 -0
- data/lib/fern_gusto/company_benefits/types/benefit_summary_employees.rb +113 -0
- data/lib/fern_gusto/company_benefits/types/benefit_summary_employees_payroll_benefits.rb +107 -0
- data/lib/fern_gusto/company_benefits/types/benefit_summary_employees_payroll_benefits_pay_period.rb +67 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements.rb +156 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_catch_up.rb +86 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_catch_up_default_value.rb +67 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_company_contribution_annual_maximum.rb +88 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_company_contribution_annual_maximum_default_value.rb +68 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_contribution.rb +86 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_contribution_default_value.rb +67 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_coverage_amount.rb +87 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_coverage_amount_default_value.rb +67 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_coverage_salary_multiplier.rb +88 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_coverage_salary_multiplier_default_value.rb +67 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_deduct_as_percentage.rb +88 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_deduct_as_percentage_default_value.rb +67 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_employee_deduction.rb +88 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_employee_deduction_default_value.rb +67 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_limit_option.rb +86 -0
- data/lib/fern_gusto/company_benefits/types/benefit_type_requirements_limit_option_default_value.rb +67 -0
- data/lib/fern_gusto/contractor/types/contractor_onboarding_info.rb +78 -0
- data/lib/fern_gusto/contractor/types/contractor_onboarding_status_onboarding_status.rb +14 -0
- data/lib/fern_gusto/contractor/types/contractor_onboarding_status_onboarding_steps_item.rb +88 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_for_group.rb +145 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_for_group_payment_method.rb +15 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_for_group_status.rb +16 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_for_group_wage_type.rb +13 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_group.rb +127 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_group_minimal.rb +116 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_group_minimal_status.rb +16 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_group_minimal_totals.rb +74 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_group_status.rb +16 -0
- data/lib/fern_gusto/contractor_payment_groups/types/contractor_payment_group_totals.rb +74 -0
- data/lib/fern_gusto/contractor_payment_method/types/contractor_bank_account.rb +94 -0
- data/lib/fern_gusto/contractor_payment_method/types/contractor_bank_account_account_type.rb +13 -0
- data/lib/fern_gusto/contractor_payment_method/types/contractor_payment_method.rb +96 -0
- data/lib/fern_gusto/contractor_payment_method/types/contractor_payment_method_split_by.rb +15 -0
- data/lib/fern_gusto/contractor_payment_method/types/contractor_payment_method_type.rb +14 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment.rb +146 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_payment_method.rb +15 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_status.rb +13 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_summary.rb +81 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_summary_by_dates.rb +81 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_summary_by_dates_contractor_payments_item.rb +93 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_summary_by_dates_total.rb +67 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_summary_contractor_payments_item.rb +86 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_summary_total.rb +67 -0
- data/lib/fern_gusto/contractor_payments/types/contractor_payment_wage_type.rb +13 -0
- data/lib/fern_gusto/contractors/client.rb +1025 -0
- data/lib/fern_gusto/contractors/documents/client.rb +269 -0
- data/lib/fern_gusto/contractors/documents/types/documents_sign_request_fields_item.rb +67 -0
- data/lib/fern_gusto/contractors/forms/client.rb +343 -0
- data/lib/fern_gusto/contractors/payment_groups/client.rb +569 -0
- data/lib/fern_gusto/contractors/payment_groups/types/payment_groups_create_request_contractor_payments_item.rb +102 -0
- data/lib/fern_gusto/contractors/payment_groups/types/payment_groups_create_request_contractor_payments_item_payment_method.rb +15 -0
- data/lib/fern_gusto/contractors/payment_groups/types/payment_groups_preview_request_contractor_payments_item.rb +102 -0
- data/lib/fern_gusto/contractors/payment_groups/types/payment_groups_preview_request_contractor_payments_item_payment_method.rb +15 -0
- data/lib/fern_gusto/contractors/payment_method/client.rb +369 -0
- data/lib/fern_gusto/contractors/payment_method/types/payment_method_create_bank_account_request_account_type.rb +14 -0
- data/lib/fern_gusto/contractors/payment_method/types/payment_method_update_request_type.rb +17 -0
- data/lib/fern_gusto/contractors/payments/client.rb +558 -0
- data/lib/fern_gusto/contractors/payments/types/payments_create_request_payment_method.rb +15 -0
- data/lib/fern_gusto/contractors/payments/types/payments_list_response.rb +62 -0
- data/lib/fern_gusto/contractors/types/contractor.rb +227 -0
- data/lib/fern_gusto/contractors/types/contractor_address.rb +94 -0
- data/lib/fern_gusto/contractors/types/contractor_onboarding_status.rb +18 -0
- data/lib/fern_gusto/contractors/types/contractor_type.rb +13 -0
- data/lib/fern_gusto/contractors/types/contractor_wage_type.rb +13 -0
- data/lib/fern_gusto/custom_fields/types/company_custom_field.rb +88 -0
- data/lib/fern_gusto/custom_fields/types/custom_field_type.rb +16 -0
- data/lib/fern_gusto/custom_fields/types/employee_custom_field.rb +104 -0
- data/lib/fern_gusto/documents/types/document.rb +167 -0
- data/lib/fern_gusto/documents/types/document_fields_item.rb +114 -0
- data/lib/fern_gusto/documents/types/document_pages_item.rb +65 -0
- data/lib/fern_gusto/documents/types/document_recipient_type.rb +15 -0
- data/lib/fern_gusto/documents/types/document_signed.rb +137 -0
- data/lib/fern_gusto/documents/types/document_signed_recipient_type.rb +15 -0
- data/lib/fern_gusto/earning_types/types/earning_type.rb +66 -0
- data/lib/fern_gusto/employee_employments/types/unprocessed_termination_pay_period.rb +101 -0
- data/lib/fern_gusto/employee_payment_method/types/employee_bank_account.rb +94 -0
- data/lib/fern_gusto/employee_payment_method/types/employee_bank_account_account_type.rb +13 -0
- data/lib/fern_gusto/employee_payment_method/types/employee_payment_method_info.rb +96 -0
- data/lib/fern_gusto/employee_payment_method/types/employee_payment_method_split_by.rb +15 -0
- data/lib/fern_gusto/employee_payment_method/types/employee_payment_method_type.rb +14 -0
- data/lib/fern_gusto/employee_tax_setup/types/employee_federal_tax.rb +144 -0
- data/lib/fern_gusto/employee_tax_setup/types/employee_federal_tax_w4data_type.rb +13 -0
- data/lib/fern_gusto/employee_tax_setup/types/employee_state_tax.rb +90 -0
- data/lib/fern_gusto/employee_tax_setup/types/employee_state_tax_answer.rb +74 -0
- data/lib/fern_gusto/employee_tax_setup/types/employee_state_tax_input_question_format.rb +69 -0
- data/lib/fern_gusto/employee_tax_setup/types/employee_state_tax_input_question_format_options_item.rb +67 -0
- data/lib/fern_gusto/employee_tax_setup/types/employee_state_tax_question.rb +96 -0
- data/lib/fern_gusto/employees/adresses/client.rb +885 -0
- data/lib/fern_gusto/employees/benefits/client.rb +656 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_create_request_contribution.rb +93 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_create_request_contribution_type.rb +23 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_create_request_contribution_value.rb +67 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_create_request_contribution_value_item.rb +80 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_create_request_deduction_reduces_taxable_income.rb +18 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_update_request_contribution.rb +93 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_update_request_contribution_type.rb +23 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_update_request_contribution_value.rb +67 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_update_request_contribution_value_item.rb +80 -0
- data/lib/fern_gusto/employees/benefits/types/benefits_update_request_deduction_reduces_taxable_income.rb +18 -0
- data/lib/fern_gusto/employees/client.rb +822 -0
- data/lib/fern_gusto/employees/employments/client.rb +799 -0
- data/lib/fern_gusto/employees/employments/types/employments_get_history_response_item.rb +95 -0
- data/lib/fern_gusto/employees/employments/types/employments_get_history_response_item_employment_status.rb +20 -0
- data/lib/fern_gusto/employees/forms/client.rb +433 -0
- data/lib/fern_gusto/employees/forms/types/forms_generate_w2response.rb +132 -0
- data/lib/fern_gusto/employees/garnishments/client.rb +558 -0
- data/lib/fern_gusto/employees/garnishments/types/garnishments_create_request_garnishment_type.rb +20 -0
- data/lib/fern_gusto/employees/jobs_and_compensations/client.rb +938 -0
- data/lib/fern_gusto/employees/jobs_and_compensations/types/jobs_and_compensations_create_compensation_request_minimum_wages_item.rb +62 -0
- data/lib/fern_gusto/employees/jobs_and_compensations/types/jobs_and_compensations_create_compensation_request_payment_unit.rb +19 -0
- data/lib/fern_gusto/employees/jobs_and_compensations/types/jobs_and_compensations_update_compensation_request_minimum_wages_item.rb +62 -0
- data/lib/fern_gusto/employees/jobs_and_compensations/types/jobs_and_compensations_update_compensation_request_payment_unit.rb +19 -0
- data/lib/fern_gusto/employees/payment_method/client.rb +484 -0
- data/lib/fern_gusto/employees/payment_method/types/payment_method_create_bank_account_request_account_type.rb +14 -0
- data/lib/fern_gusto/employees/payment_method/types/payment_method_update_bank_account_request_account_type.rb +14 -0
- data/lib/fern_gusto/employees/payment_method/types/payment_method_update_request_split_by.rb +17 -0
- data/lib/fern_gusto/employees/payment_method/types/payment_method_update_request_splits_item.rb +83 -0
- data/lib/fern_gusto/employees/payment_method/types/payment_method_update_request_type.rb +16 -0
- data/lib/fern_gusto/employees/tax_setup/client.rb +422 -0
- data/lib/fern_gusto/employees/tax_setup/types/tax_setup_update_state_taxes_request_states_item.rb +73 -0
- data/lib/fern_gusto/employees/tax_setup/types/tax_setup_update_state_taxes_request_states_item_questions_item.rb +73 -0
- data/lib/fern_gusto/employees/tax_setup/types/tax_setup_update_state_taxes_request_states_item_questions_item_answers_item.rb +77 -0
- data/lib/fern_gusto/employees/types/employee.rb +281 -0
- data/lib/fern_gusto/employees/types/employee_current_employment_status.rb +20 -0
- data/lib/fern_gusto/employees/types/employee_onboarding_info.rb +77 -0
- data/lib/fern_gusto/employees/types/employee_onboarding_status.rb +19 -0
- data/lib/fern_gusto/employees/types/employee_onboarding_status_onboarding_steps_item.rb +88 -0
- data/lib/fern_gusto/employees/types/employee_payment_method.rb +13 -0
- data/lib/fern_gusto/employees/types/employees_get_custom_fields_response.rb +59 -0
- data/lib/fern_gusto/employees/types/employees_get_request_include.rb +12 -0
- data/lib/fern_gusto/events/client.rb +144 -0
- data/lib/fern_gusto/events/types/events_list_request_sort_order.rb +12 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll.rb +158 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_applicable_benefits_item.rb +73 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_applicable_earnings_item.rb +87 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_applicable_taxes_item.rb +85 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_basic.rb +101 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_basic_status.rb +16 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_external_payroll_items_item.rb +93 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_external_payroll_items_item_benefits_item.rb +74 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_external_payroll_items_item_earnings_item.rb +81 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_external_payroll_items_item_taxes_item.rb +67 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_metadata.rb +56 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_status.rb +16 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_tax_suggestions.rb +72 -0
- data/lib/fern_gusto/external_payrolls/types/external_payroll_tax_suggestions_tax_suggestions.rb +68 -0
- data/lib/fern_gusto/external_payrolls/types/tax_liabilities_selections.rb +86 -0
- data/lib/fern_gusto/external_payrolls/types/tax_liabilities_selections_possible_liabilities.rb +75 -0
- data/lib/fern_gusto/federal_tax_details/types/federal_tax_details.rb +140 -0
- data/lib/fern_gusto/flows/client.rb +113 -0
- data/lib/fern_gusto/flows/types/flow.rb +66 -0
- data/lib/fern_gusto/flows/types/flows_create_request_entity_type.rb +14 -0
- data/lib/fern_gusto/forms/types/form.rb +123 -0
- data/lib/fern_gusto/forms/types/form1099.rb +126 -0
- data/lib/fern_gusto/generated_documents/client.rb +106 -0
- data/lib/fern_gusto/holiday_pay_policies/client.rb +599 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_add_employees_request_employees_item.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb +198 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_christmas_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_columbus_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_independence_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_juneteenth.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_labor_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_memorial_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_mlk_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_new_years_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_presidents_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_thanksgiving.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays_veterans_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_remove_employees_request_employees_item.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays.rb +198 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_christmas_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_columbus_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_independence_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_juneteenth.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_labor_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_memorial_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_mlk_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_new_years_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_presidents_day.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_thanksgiving.rb +57 -0
- data/lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_update_request_federal_holidays_veterans_day.rb +57 -0
- data/lib/fern_gusto/industry/types/industry.rb +87 -0
- data/lib/fern_gusto/invoices/client.rb +132 -0
- data/lib/fern_gusto/jobs_and_compensations/types/compensation.rb +120 -0
- data/lib/fern_gusto/jobs_and_compensations/types/compensation_payment_unit.rb +17 -0
- data/lib/fern_gusto/jobs_and_compensations/types/job.rb +161 -0
- data/lib/fern_gusto/locations/types/company_address.rb +103 -0
- data/lib/fern_gusto/locations/types/location.rb +171 -0
- data/lib/fern_gusto/notifications/client.rb +120 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule.rb +151 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment.rb +103 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_department.rb +65 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_employee.rb +65 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_employee_change.rb +105 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_pay_period.rb +80 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_preview.rb +71 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_preview_type.rb +15 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_transition_pay_period.rb +68 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_assignment_type.rb +15 -0
- data/lib/fern_gusto/pay_schedules/types/pay_schedule_frequency.rb +17 -0
- data/lib/fern_gusto/payment_configs/types/payment_configs.rb +79 -0
- data/lib/fern_gusto/payroll/client.rb +1644 -0
- data/lib/fern_gusto/payroll/earning_types/client.rb +350 -0
- data/lib/fern_gusto/payroll/earning_types/types/earning_types_get_response.rb +74 -0
- data/lib/fern_gusto/payroll/external_payrolls/client.rb +199 -0
- data/lib/fern_gusto/payroll/pay_schedules/client.rb +584 -0
- data/lib/fern_gusto/payroll/pay_schedules/types/pay_schedules_create_request_frequency.rb +17 -0
- data/lib/fern_gusto/payroll/pay_schedules/types/pay_schedules_preview_request_frequency.rb +16 -0
- data/lib/fern_gusto/payroll/pay_schedules/types/pay_schedules_preview_response.rb +72 -0
- data/lib/fern_gusto/payroll/pay_schedules/types/pay_schedules_preview_response_pay_periods_item.rb +83 -0
- data/lib/fern_gusto/payroll/pay_schedules/types/pay_schedules_update_request_frequency.rb +17 -0
- data/lib/fern_gusto/payroll/types/payroll_create_request_off_cycle_reason.rb +15 -0
- data/lib/fern_gusto/payroll/types/payroll_create_request_withholding_pay_period.rb +18 -0
- data/lib/fern_gusto/payroll/types/payroll_get_request_include_item.rb +14 -0
- data/lib/fern_gusto/payroll/types/payroll_list_request_include_item.rb +13 -0
- data/lib/fern_gusto/payroll/types/payroll_list_request_payroll_types_item.rb +13 -0
- data/lib/fern_gusto/payroll/types/payroll_list_request_processing_statuses_item.rb +12 -0
- data/lib/fern_gusto/payroll/types/payroll_list_request_sort_order.rb +12 -0
- data/lib/fern_gusto/payroll/types/payroll_skip_payroll_request_payroll_type.rb +15 -0
- data/lib/fern_gusto/payroll/types/payroll_submit_request_submission_blockers_item.rb +67 -0
- data/lib/fern_gusto/payroll/types/payroll_update_request_employee_compensations_item.rb +133 -0
- data/lib/fern_gusto/payroll/types/payroll_update_request_employee_compensations_item_fixed_compensations_item.rb +79 -0
- data/lib/fern_gusto/payroll/types/payroll_update_request_employee_compensations_item_hourly_compensations_item.rb +79 -0
- data/lib/fern_gusto/payroll/types/payroll_update_request_employee_compensations_item_paid_time_off_item.rb +85 -0
- data/lib/fern_gusto/payroll/types/payroll_update_request_employee_compensations_item_payment_method.rb +13 -0
- data/lib/fern_gusto/payrolls/types/employee_pay_stub.rb +94 -0
- data/lib/fern_gusto/payrolls/types/paid_time_off.rb +123 -0
- data/lib/fern_gusto/payrolls/types/paid_time_off_name.rb +14 -0
- data/lib/fern_gusto/payrolls/types/pay_period.rb +86 -0
- data/lib/fern_gusto/payrolls/types/pay_period_payroll.rb +107 -0
- data/lib/fern_gusto/payrolls/types/pay_period_payroll_payroll_type.rb +13 -0
- data/lib/fern_gusto/payrolls/types/payroll.rb +285 -0
- data/lib/fern_gusto/payrolls/types/payroll_minimal.rb +250 -0
- data/lib/fern_gusto/payrolls/types/payroll_prepared.rb +250 -0
- data/lib/fern_gusto/recovery_cases/client.rb +198 -0
- data/lib/fern_gusto/reports/client.rb +306 -0
- data/lib/fern_gusto/reports/types/reports_create_request_columns_item.rb +91 -0
- data/lib/fern_gusto/reports/types/reports_create_request_employment_status.rb +18 -0
- data/lib/fern_gusto/reports/types/reports_create_request_employment_type.rb +16 -0
- data/lib/fern_gusto/reports/types/reports_create_request_file_type.rb +13 -0
- data/lib/fern_gusto/reports/types/reports_create_request_groupings_item.rb +14 -0
- data/lib/fern_gusto/reports/types/reports_create_request_payment_method.rb +13 -0
- data/lib/fern_gusto/signatories/types/signatory.rb +175 -0
- data/lib/fern_gusto/signatories/types/signatory_home_address.rb +93 -0
- data/lib/fern_gusto/signatories/types/signatory_identity_verification_status.rb +28 -0
- data/lib/fern_gusto/terminations/types/termination.rb +109 -0
- data/lib/fern_gusto/time_off_policies/client.rb +863 -0
- data/lib/fern_gusto/time_off_policies/types/time_off_policies_add_employees_request_employees_item.rb +67 -0
- data/lib/fern_gusto/time_off_policies/types/time_off_policies_create_request_accrual_method.rb +19 -0
- data/lib/fern_gusto/time_off_policies/types/time_off_policies_remove_employees_request_employees_item.rb +57 -0
- data/lib/fern_gusto/time_off_policies/types/time_off_policies_update_balance_request_employees_item.rb +67 -0
- data/lib/fern_gusto/time_off_policies/types/time_off_policies_update_request_accrual_method.rb +19 -0
- data/lib/fern_gusto/time_off_requests/types/time_off_request.rb +141 -0
- data/lib/fern_gusto/time_off_requests/types/time_off_request_approver.rb +66 -0
- data/lib/fern_gusto/time_off_requests/types/time_off_request_employee.rb +66 -0
- data/lib/fern_gusto/time_off_requests/types/time_off_request_initiator.rb +66 -0
- data/lib/fern_gusto/time_off_requests/types/time_off_request_request_type.rb +13 -0
- data/lib/fern_gusto/time_off_requests/types/time_off_request_status.rb +14 -0
- data/lib/fern_gusto/token/client.rb +270 -0
- data/lib/fern_gusto/token/types/token_get_info_response.rb +85 -0
- data/lib/fern_gusto/token/types/token_get_info_response_resource.rb +64 -0
- data/lib/fern_gusto/token/types/token_get_info_response_resource_owner.rb +65 -0
- data/lib/fern_gusto/token/types/token_get_info_response_resource_owner_type.rb +13 -0
- data/lib/fern_gusto/token/types/token_get_system_access_token_response.rb +77 -0
- data/lib/fern_gusto/types/accruing_time_off_hour.rb +64 -0
- data/lib/fern_gusto/types/ach_transaction.rb +162 -0
- data/lib/fern_gusto/types/ach_transaction_payment_direction.rb +11 -0
- data/lib/fern_gusto/types/ach_transaction_payment_event_type.rb +11 -0
- data/lib/fern_gusto/types/ach_transaction_payment_status.rb +13 -0
- data/lib/fern_gusto/types/ach_transaction_recipient_type.rb +11 -0
- data/lib/fern_gusto/types/address.rb +111 -0
- data/lib/fern_gusto/types/authentication.rb +96 -0
- data/lib/fern_gusto/types/child_support_data.rb +58 -0
- data/lib/fern_gusto/types/child_support_data_agencies_item.rb +104 -0
- data/lib/fern_gusto/types/child_support_data_agencies_item_fips_codes_item.rb +67 -0
- data/lib/fern_gusto/types/child_support_data_agencies_item_required_attributes_item.rb +70 -0
- data/lib/fern_gusto/types/child_support_data_agencies_item_required_attributes_item_key.rb +14 -0
- data/lib/fern_gusto/types/company_benefit.rb +135 -0
- data/lib/fern_gusto/types/company_benefit_with_employee_benefits.rb +148 -0
- data/lib/fern_gusto/types/company_benefit_with_employee_benefits_employee_benefits_item.rb +115 -0
- data/lib/fern_gusto/types/company_benefit_with_employee_benefits_employee_benefits_item_contribution.rb +91 -0
- data/lib/fern_gusto/types/company_benefit_with_employee_benefits_employee_benefits_item_contribution_value.rb +61 -0
- data/lib/fern_gusto/types/company_benefit_with_employee_benefits_employee_benefits_item_contribution_value_tiers.rb +60 -0
- data/lib/fern_gusto/types/company_benefit_with_employee_benefits_employee_benefits_item_contribution_value_tiers_tiers_item.rb +86 -0
- data/lib/fern_gusto/types/contractor_address_info.rb +118 -0
- data/lib/fern_gusto/types/contractor_body.rb +200 -0
- data/lib/fern_gusto/types/contractor_body_type.rb +11 -0
- data/lib/fern_gusto/types/contractor_body_wage_type.rb +11 -0
- data/lib/fern_gusto/types/contractor_payment_receipt.rb +161 -0
- data/lib/fern_gusto/types/contractor_payment_receipt_contractor_payments_item.rb +120 -0
- data/lib/fern_gusto/types/contractor_payment_receipt_licensee.rb +92 -0
- data/lib/fern_gusto/types/contractor_payment_receipt_totals.rb +54 -0
- data/lib/fern_gusto/types/create_report.rb +77 -0
- data/lib/fern_gusto/types/department.rb +103 -0
- data/lib/fern_gusto/types/department_contractors_item.rb +53 -0
- data/lib/fern_gusto/types/department_employees_item.rb +53 -0
- data/lib/fern_gusto/types/document_pdf.rb +63 -0
- data/lib/fern_gusto/types/employee_address.rb +139 -0
- data/lib/fern_gusto/types/employee_benefit.rb +220 -0
- data/lib/fern_gusto/types/employee_benefit_base_object.rb +199 -0
- data/lib/fern_gusto/types/employee_benefit_base_object_contribution.rb +89 -0
- data/lib/fern_gusto/types/employee_benefit_base_object_contribution_value.rb +61 -0
- data/lib/fern_gusto/types/employee_benefit_base_object_contribution_value_tiers.rb +59 -0
- data/lib/fern_gusto/types/employee_benefit_base_object_contribution_value_tiers_tiers_item.rb +85 -0
- data/lib/fern_gusto/types/employee_benefit_base_object_deduction_reduces_taxable_income.rb +14 -0
- data/lib/fern_gusto/types/employee_benefit_for_company_benefit.rb +220 -0
- data/lib/fern_gusto/types/employee_work_address.rb +137 -0
- data/lib/fern_gusto/types/entity_error_object.rb +102 -0
- data/lib/fern_gusto/types/entity_error_object_errors_item.rb +89 -0
- data/lib/fern_gusto/types/event.rb +99 -0
- data/lib/fern_gusto/types/flsa_status_type.rb +23 -0
- data/lib/fern_gusto/types/form_pdf.rb +63 -0
- data/lib/fern_gusto/types/garnishment.rb +172 -0
- data/lib/fern_gusto/types/garnishment_child_support.rb +113 -0
- data/lib/fern_gusto/types/garnishment_child_support_payment_period.rb +14 -0
- data/lib/fern_gusto/types/garnishment_garnishment_type.rb +16 -0
- data/lib/fern_gusto/types/generated_document.rb +70 -0
- data/lib/fern_gusto/types/gross_up_pay.rb +53 -0
- data/lib/fern_gusto/types/historical_employee_body.rb +156 -0
- data/lib/fern_gusto/types/historical_employee_body_employee_state_taxes.rb +80 -0
- data/lib/fern_gusto/types/historical_employee_body_home_address.rb +84 -0
- data/lib/fern_gusto/types/historical_employee_body_job.rb +53 -0
- data/lib/fern_gusto/types/historical_employee_body_termination.rb +53 -0
- data/lib/fern_gusto/types/historical_employee_body_work_address.rb +53 -0
- data/lib/fern_gusto/types/holiday_pay_policy.rb +88 -0
- data/lib/fern_gusto/types/holiday_pay_policy_employees_item.rb +53 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item.rb +179 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_columbus_day.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_independence_day.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_juneteenth.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_labor_day.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_memorial_day.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_mlk_day.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_new_years_day.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_presidents_day.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_thanksgiving.rb +72 -0
- data/lib/fern_gusto/types/holiday_pay_policy_federal_holidays_item_veterans_day.rb +72 -0
- data/lib/fern_gusto/types/invoice_data.rb +58 -0
- data/lib/fern_gusto/types/invoice_data_active_companies_item.rb +91 -0
- data/lib/fern_gusto/types/minimum_wage.rb +96 -0
- data/lib/fern_gusto/types/notification.rb +125 -0
- data/lib/fern_gusto/types/notification_resources_item.rb +85 -0
- data/lib/fern_gusto/types/off_cycle_reason_type.rb +19 -0
- data/lib/fern_gusto/types/paid_holidays.rb +61 -0
- data/lib/fern_gusto/types/paid_holidays_schema.rb +77 -0
- data/lib/fern_gusto/types/pay_schedule_assignment_body.rb +111 -0
- data/lib/fern_gusto/types/pay_schedule_assignment_body_departments_item.rb +65 -0
- data/lib/fern_gusto/types/pay_schedule_assignment_body_employees_item.rb +64 -0
- data/lib/fern_gusto/types/pay_schedule_assignment_body_type.rb +13 -0
- data/lib/fern_gusto/types/payment_method_bank_account.rb +87 -0
- data/lib/fern_gusto/types/payroll_blocker.rb +63 -0
- data/lib/fern_gusto/types/payroll_blockers_error.rb +60 -0
- data/lib/fern_gusto/types/payroll_blockers_error_errors_item.rb +83 -0
- data/lib/fern_gusto/types/payroll_blockers_error_errors_item_metadata.rb +54 -0
- data/lib/fern_gusto/types/payroll_check.rb +84 -0
- data/lib/fern_gusto/types/payroll_company_taxes_type.rb +6 -0
- data/lib/fern_gusto/types/payroll_company_taxes_type_item.rb +70 -0
- data/lib/fern_gusto/types/payroll_credit_blockers_type.rb +6 -0
- data/lib/fern_gusto/types/payroll_credit_blockers_type_item.rb +89 -0
- data/lib/fern_gusto/types/payroll_credit_blockers_type_item_status.rb +13 -0
- data/lib/fern_gusto/types/payroll_credit_blockers_type_item_unblock_options_item.rb +72 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type.rb +6 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item.rb +216 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item_benefits_item.rb +79 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item_deductions_item.rb +65 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item_fixed_compensations_item.rb +74 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item_hourly_compensations_item.rb +92 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item_paid_time_off_item.rb +76 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item_payment_method.rb +11 -0
- data/lib/fern_gusto/types/payroll_employee_compensations_type_item_taxes_item.rb +70 -0
- data/lib/fern_gusto/types/payroll_fixed_compensation_types_type.rb +6 -0
- data/lib/fern_gusto/types/payroll_fixed_compensation_types_type_item.rb +54 -0
- data/lib/fern_gusto/types/payroll_pay_period_type.rb +70 -0
- data/lib/fern_gusto/types/payroll_payment_speed_changed_type.rb +86 -0
- data/lib/fern_gusto/types/payroll_payroll_status_meta_type.rb +92 -0
- data/lib/fern_gusto/types/payroll_processing_request.rb +68 -0
- data/lib/fern_gusto/types/payroll_processing_request_status.rb +14 -0
- data/lib/fern_gusto/types/payroll_receipt.rb +177 -0
- data/lib/fern_gusto/types/payroll_receipt_employee_compensations_item.rb +116 -0
- data/lib/fern_gusto/types/payroll_receipt_licensee.rb +92 -0
- data/lib/fern_gusto/types/payroll_receipt_taxes_item.rb +63 -0
- data/lib/fern_gusto/types/payroll_receipt_totals.rb +85 -0
- data/lib/fern_gusto/types/payroll_reversal.rb +91 -0
- data/lib/fern_gusto/types/payroll_submission_blockers_type.rb +6 -0
- data/lib/fern_gusto/types/payroll_submission_blockers_type_item.rb +89 -0
- data/lib/fern_gusto/types/payroll_submission_blockers_type_item_status.rb +11 -0
- data/lib/fern_gusto/types/payroll_submission_blockers_type_item_unblock_options_item.rb +72 -0
- data/lib/fern_gusto/types/payroll_totals_type.rb +199 -0
- data/lib/fern_gusto/types/payroll_withholding_pay_period_type.rb +17 -0
- data/lib/fern_gusto/types/recovery_case.rb +131 -0
- data/lib/fern_gusto/types/recovery_case_status.rb +14 -0
- data/lib/fern_gusto/types/rehire.rb +116 -0
- data/lib/fern_gusto/types/rehire_body.rb +91 -0
- data/lib/fern_gusto/types/rehire_body_employment_status.rb +16 -0
- data/lib/fern_gusto/types/rehire_employment_status.rb +16 -0
- data/lib/fern_gusto/types/report.rb +72 -0
- data/lib/fern_gusto/types/report_template.rb +77 -0
- data/lib/fern_gusto/types/supported_benefit.rb +122 -0
- data/lib/fern_gusto/types/tax_requirement.rb +111 -0
- data/lib/fern_gusto/types/tax_requirement_applicable_if_item.rb +69 -0
- data/lib/fern_gusto/types/tax_requirement_applicable_if_item_value.rb +72 -0
- data/lib/fern_gusto/types/tax_requirement_effective_from.rb +5 -0
- data/lib/fern_gusto/types/tax_requirement_metadata.rb +182 -0
- data/lib/fern_gusto/types/tax_requirement_metadata_options_item.rb +70 -0
- data/lib/fern_gusto/types/tax_requirement_metadata_rate_type.rb +13 -0
- data/lib/fern_gusto/types/tax_requirement_metadata_type.rb +31 -0
- data/lib/fern_gusto/types/tax_requirement_metadata_validation.rb +81 -0
- data/lib/fern_gusto/types/tax_requirement_metadata_validation_type.rb +11 -0
- data/lib/fern_gusto/types/tax_requirement_set.rb +90 -0
- data/lib/fern_gusto/types/tax_requirements_state.rb +75 -0
- data/lib/fern_gusto/types/time_off_activity.rb +107 -0
- data/lib/fern_gusto/types/time_off_activity_time_off_type.rb +11 -0
- data/lib/fern_gusto/types/time_off_policy.rb +183 -0
- data/lib/fern_gusto/types/time_off_policy_employees_item.rb +53 -0
- data/lib/fern_gusto/types/time_off_policy_policy_type.rb +11 -0
- data/lib/fern_gusto/types/unprocessable_entity_error_body.rb +59 -0
- data/lib/fern_gusto/types/unprocessable_entity_error_body_errors.rb +57 -0
- data/lib/fern_gusto/types/unprocessable_entity_error_body_errors_base_item.rb +72 -0
- data/lib/fern_gusto/types/unprocessable_entity_error_body_item.rb +65 -0
- data/lib/fern_gusto/types/unprocessable_entity_error_body_item_questions_item.rb +69 -0
- data/lib/fern_gusto/types/unprocessable_entity_error_body_item_questions_item_answers_item.rb +72 -0
- data/lib/fern_gusto/types/unprocessable_entity_error_object.rb +63 -0
- data/lib/fern_gusto/types/versionable.rb +57 -0
- data/lib/fern_gusto/types/versionable_required.rb +55 -0
- data/lib/fern_gusto/types/wire_in_request.rb +170 -0
- data/lib/fern_gusto/types/wire_in_request_status.rb +14 -0
- data/lib/fern_gusto/webhooks/client.rb +627 -0
- data/lib/fern_gusto/webhooks/types/webhook_subscription.rb +82 -0
- data/lib/fern_gusto/webhooks/types/webhook_subscription_status.rb +14 -0
- data/lib/fern_gusto/webhooks/types/webhook_subscription_subscription_types_item.rb +25 -0
- data/lib/fern_gusto/webhooks/types/webhooks_create_request_subscription_types_item.rb +25 -0
- data/lib/fern_gusto/webhooks/types/webhooks_update_request_subscription_types_item.rb +25 -0
- data/lib/fern_gusto/wire_in_requests/client.rb +273 -0
- data/lib/fern_gusto.rb +310 -0
- data/lib/gemconfig.rb +13 -0
- data/lib/gusto_legacy.rb +19 -0
- data/lib/requests.rb +206 -0
- data/lib/types_export.rb +461 -0
- metadata +671 -0
@@ -0,0 +1,162 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative "ach_transaction_payment_event_type"
|
3
|
+
require_relative "ach_transaction_recipient_type"
|
4
|
+
require_relative "ach_transaction_payment_status"
|
5
|
+
require_relative "ach_transaction_payment_direction"
|
6
|
+
require "ostruct"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
module Gusto
|
10
|
+
# Representation of an ACH transaction
|
11
|
+
class AchTransaction
|
12
|
+
# @return [String] Unique identifier of an ACH transaction
|
13
|
+
attr_reader :uuid
|
14
|
+
# @return [String] Unique identifier of the company to which the ACH transaction belongs
|
15
|
+
attr_reader :company_uuid
|
16
|
+
# @return [Gusto::AchTransactionPaymentEventType] The type of payment event associated with the ACH transaction
|
17
|
+
attr_reader :payment_event_type
|
18
|
+
# @return [String] Unique identifier for the payment event associated with the ACH transaction
|
19
|
+
attr_reader :payment_event_uuid
|
20
|
+
# @return [Gusto::AchTransactionRecipientType] The type of recipient associated with the ACH transaction
|
21
|
+
attr_reader :recipient_type
|
22
|
+
# @return [String] Unique identifier for the recipient associated with the ACH transaction
|
23
|
+
attr_reader :recipient_uuid
|
24
|
+
# @return [String] The error code associated with the ACH transaction, if any. If there is no error
|
25
|
+
# on the ACH transaction, this field will be nil. See [this
|
26
|
+
# le](https://engineering.gusto.com/how-ach-works-a-developer-perspective-part-2/)
|
27
|
+
# for a complete list of ACH return codes.
|
28
|
+
attr_reader :error_code
|
29
|
+
# @return [String] The type of transaction associated with the ACH transaction
|
30
|
+
attr_reader :transaction_type
|
31
|
+
# @return [Gusto::AchTransactionPaymentStatus] The status of the ACH transaction
|
32
|
+
attr_reader :payment_status
|
33
|
+
# @return [Gusto::AchTransactionPaymentDirection] The direction of the payment
|
34
|
+
attr_reader :payment_direction
|
35
|
+
# @return [String] The date of the payment event check associated with the ACH transaction
|
36
|
+
attr_reader :payment_event_check_date
|
37
|
+
# @return [String] The date of the payment associated with the ACH transaction
|
38
|
+
attr_reader :payment_date
|
39
|
+
# @return [String] The amount of money moved by the ACH transaction. This amount is always
|
40
|
+
# non-negative.
|
41
|
+
attr_reader :amount
|
42
|
+
# @return [String] The description of the ACH transaction. Can be used to identify the ACH
|
43
|
+
# transaction on the recipient's bank statement.
|
44
|
+
attr_reader :description
|
45
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
46
|
+
attr_reader :additional_properties
|
47
|
+
# @return [Object]
|
48
|
+
attr_reader :_field_set
|
49
|
+
protected :_field_set
|
50
|
+
|
51
|
+
OMIT = Object.new
|
52
|
+
|
53
|
+
# @param uuid [String] Unique identifier of an ACH transaction
|
54
|
+
# @param company_uuid [String] Unique identifier of the company to which the ACH transaction belongs
|
55
|
+
# @param payment_event_type [Gusto::AchTransactionPaymentEventType] The type of payment event associated with the ACH transaction
|
56
|
+
# @param payment_event_uuid [String] Unique identifier for the payment event associated with the ACH transaction
|
57
|
+
# @param recipient_type [Gusto::AchTransactionRecipientType] The type of recipient associated with the ACH transaction
|
58
|
+
# @param recipient_uuid [String] Unique identifier for the recipient associated with the ACH transaction
|
59
|
+
# @param error_code [String] The error code associated with the ACH transaction, if any. If there is no error
|
60
|
+
# on the ACH transaction, this field will be nil. See [this
|
61
|
+
# le](https://engineering.gusto.com/how-ach-works-a-developer-perspective-part-2/)
|
62
|
+
# for a complete list of ACH return codes.
|
63
|
+
# @param transaction_type [String] The type of transaction associated with the ACH transaction
|
64
|
+
# @param payment_status [Gusto::AchTransactionPaymentStatus] The status of the ACH transaction
|
65
|
+
# @param payment_direction [Gusto::AchTransactionPaymentDirection] The direction of the payment
|
66
|
+
# @param payment_event_check_date [String] The date of the payment event check associated with the ACH transaction
|
67
|
+
# @param payment_date [String] The date of the payment associated with the ACH transaction
|
68
|
+
# @param amount [String] The amount of money moved by the ACH transaction. This amount is always
|
69
|
+
# non-negative.
|
70
|
+
# @param description [String] The description of the ACH transaction. Can be used to identify the ACH
|
71
|
+
# transaction on the recipient's bank statement.
|
72
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
73
|
+
# @return [Gusto::AchTransaction]
|
74
|
+
def initialize(uuid:, company_uuid: OMIT, payment_event_type: OMIT, payment_event_uuid: OMIT, recipient_type: OMIT, recipient_uuid: OMIT, error_code: OMIT, transaction_type: OMIT, payment_status: OMIT, payment_direction: OMIT, payment_event_check_date: OMIT, payment_date: OMIT, amount: OMIT, description: OMIT, additional_properties: nil)
|
75
|
+
@uuid = uuid
|
76
|
+
@company_uuid = company_uuid if company_uuid != OMIT
|
77
|
+
@payment_event_type = payment_event_type if payment_event_type != OMIT
|
78
|
+
@payment_event_uuid = payment_event_uuid if payment_event_uuid != OMIT
|
79
|
+
@recipient_type = recipient_type if recipient_type != OMIT
|
80
|
+
@recipient_uuid = recipient_uuid if recipient_uuid != OMIT
|
81
|
+
@error_code = error_code if error_code != OMIT
|
82
|
+
@transaction_type = transaction_type if transaction_type != OMIT
|
83
|
+
@payment_status = payment_status if payment_status != OMIT
|
84
|
+
@payment_direction = payment_direction if payment_direction != OMIT
|
85
|
+
@payment_event_check_date = payment_event_check_date if payment_event_check_date != OMIT
|
86
|
+
@payment_date = payment_date if payment_date != OMIT
|
87
|
+
@amount = amount if amount != OMIT
|
88
|
+
@description = description if description != OMIT
|
89
|
+
@additional_properties = additional_properties
|
90
|
+
@_field_set = { "uuid": uuid, "company_uuid": company_uuid, "payment_event_type": payment_event_type, "payment_event_uuid": payment_event_uuid, "recipient_type": recipient_type, "recipient_uuid": recipient_uuid, "error_code": error_code, "transaction_type": transaction_type, "payment_status": payment_status, "payment_direction": payment_direction, "payment_event_check_date": payment_event_check_date, "payment_date": payment_date, "amount": amount, "description": description }.reject do | _k, v |
|
91
|
+
v == OMIT
|
92
|
+
end
|
93
|
+
end
|
94
|
+
# Deserialize a JSON object to an instance of AchTransaction
|
95
|
+
#
|
96
|
+
# @param json_object [String]
|
97
|
+
# @return [Gusto::AchTransaction]
|
98
|
+
def self.from_json(json_object:)
|
99
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
100
|
+
parsed_json = JSON.parse(json_object)
|
101
|
+
uuid = parsed_json["uuid"]
|
102
|
+
company_uuid = parsed_json["company_uuid"]
|
103
|
+
payment_event_type = parsed_json["payment_event_type"]
|
104
|
+
payment_event_uuid = parsed_json["payment_event_uuid"]
|
105
|
+
recipient_type = parsed_json["recipient_type"]
|
106
|
+
recipient_uuid = parsed_json["recipient_uuid"]
|
107
|
+
error_code = parsed_json["error_code"]
|
108
|
+
transaction_type = parsed_json["transaction_type"]
|
109
|
+
payment_status = parsed_json["payment_status"]
|
110
|
+
payment_direction = parsed_json["payment_direction"]
|
111
|
+
payment_event_check_date = parsed_json["payment_event_check_date"]
|
112
|
+
payment_date = parsed_json["payment_date"]
|
113
|
+
amount = parsed_json["amount"]
|
114
|
+
description = parsed_json["description"]
|
115
|
+
new(
|
116
|
+
uuid: uuid,
|
117
|
+
company_uuid: company_uuid,
|
118
|
+
payment_event_type: payment_event_type,
|
119
|
+
payment_event_uuid: payment_event_uuid,
|
120
|
+
recipient_type: recipient_type,
|
121
|
+
recipient_uuid: recipient_uuid,
|
122
|
+
error_code: error_code,
|
123
|
+
transaction_type: transaction_type,
|
124
|
+
payment_status: payment_status,
|
125
|
+
payment_direction: payment_direction,
|
126
|
+
payment_event_check_date: payment_event_check_date,
|
127
|
+
payment_date: payment_date,
|
128
|
+
amount: amount,
|
129
|
+
description: description,
|
130
|
+
additional_properties: struct
|
131
|
+
)
|
132
|
+
end
|
133
|
+
# Serialize an instance of AchTransaction to a JSON object
|
134
|
+
#
|
135
|
+
# @return [String]
|
136
|
+
def to_json
|
137
|
+
@_field_set&.to_json
|
138
|
+
end
|
139
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
140
|
+
# hash and check each fields type against the current object's property
|
141
|
+
# definitions.
|
142
|
+
#
|
143
|
+
# @param obj [Object]
|
144
|
+
# @return [Void]
|
145
|
+
def self.validate_raw(obj:)
|
146
|
+
obj.uuid.is_a?(String) != false || raise("Passed value for field obj.uuid is not the expected type, validation failed.")
|
147
|
+
obj.company_uuid&.is_a?(String) != false || raise("Passed value for field obj.company_uuid is not the expected type, validation failed.")
|
148
|
+
obj.payment_event_type&.is_a?(Gusto::AchTransactionPaymentEventType) != false || raise("Passed value for field obj.payment_event_type is not the expected type, validation failed.")
|
149
|
+
obj.payment_event_uuid&.is_a?(String) != false || raise("Passed value for field obj.payment_event_uuid is not the expected type, validation failed.")
|
150
|
+
obj.recipient_type&.is_a?(Gusto::AchTransactionRecipientType) != false || raise("Passed value for field obj.recipient_type is not the expected type, validation failed.")
|
151
|
+
obj.recipient_uuid&.is_a?(String) != false || raise("Passed value for field obj.recipient_uuid is not the expected type, validation failed.")
|
152
|
+
obj.error_code&.is_a?(String) != false || raise("Passed value for field obj.error_code is not the expected type, validation failed.")
|
153
|
+
obj.transaction_type&.is_a?(String) != false || raise("Passed value for field obj.transaction_type is not the expected type, validation failed.")
|
154
|
+
obj.payment_status&.is_a?(Gusto::AchTransactionPaymentStatus) != false || raise("Passed value for field obj.payment_status is not the expected type, validation failed.")
|
155
|
+
obj.payment_direction&.is_a?(Gusto::AchTransactionPaymentDirection) != false || raise("Passed value for field obj.payment_direction is not the expected type, validation failed.")
|
156
|
+
obj.payment_event_check_date&.is_a?(String) != false || raise("Passed value for field obj.payment_event_check_date is not the expected type, validation failed.")
|
157
|
+
obj.payment_date&.is_a?(String) != false || raise("Passed value for field obj.payment_date is not the expected type, validation failed.")
|
158
|
+
obj.amount&.is_a?(String) != false || raise("Passed value for field obj.amount is not the expected type, validation failed.")
|
159
|
+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "ostruct"
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Gusto
|
6
|
+
class Address
|
7
|
+
# @return [String]
|
8
|
+
attr_reader :street1
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :street2
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :city
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :state
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :zip
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :country
|
19
|
+
# @return [Boolean] The status of the location. Inactive locations have been deleted, but may still
|
20
|
+
# have historical data associated with them.
|
21
|
+
attr_reader :active
|
22
|
+
# @return [String] The current version of the object. See the [versioning
|
23
|
+
# guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information
|
24
|
+
# on how to use this field.
|
25
|
+
attr_reader :version
|
26
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
+
attr_reader :additional_properties
|
28
|
+
# @return [Object]
|
29
|
+
attr_reader :_field_set
|
30
|
+
protected :_field_set
|
31
|
+
|
32
|
+
OMIT = Object.new
|
33
|
+
|
34
|
+
# @param street1 [String]
|
35
|
+
# @param street2 [String]
|
36
|
+
# @param city [String]
|
37
|
+
# @param state [String]
|
38
|
+
# @param zip [String]
|
39
|
+
# @param country [String]
|
40
|
+
# @param active [Boolean] The status of the location. Inactive locations have been deleted, but may still
|
41
|
+
# have historical data associated with them.
|
42
|
+
# @param version [String] The current version of the object. See the [versioning
|
43
|
+
# guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information
|
44
|
+
# on how to use this field.
|
45
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
46
|
+
# @return [Gusto::Address]
|
47
|
+
def initialize(street1: OMIT, street2: OMIT, city: OMIT, state: OMIT, zip: OMIT, country: OMIT, active: OMIT, version: OMIT, additional_properties: nil)
|
48
|
+
@street1 = street1 if street1 != OMIT
|
49
|
+
@street2 = street2 if street2 != OMIT
|
50
|
+
@city = city if city != OMIT
|
51
|
+
@state = state if state != OMIT
|
52
|
+
@zip = zip if zip != OMIT
|
53
|
+
@country = country if country != OMIT
|
54
|
+
@active = active if active != OMIT
|
55
|
+
@version = version if version != OMIT
|
56
|
+
@additional_properties = additional_properties
|
57
|
+
@_field_set = { "street_1": street1, "street_2": street2, "city": city, "state": state, "zip": zip, "country": country, "active": active, "version": version }.reject do | _k, v |
|
58
|
+
v == OMIT
|
59
|
+
end
|
60
|
+
end
|
61
|
+
# Deserialize a JSON object to an instance of Address
|
62
|
+
#
|
63
|
+
# @param json_object [String]
|
64
|
+
# @return [Gusto::Address]
|
65
|
+
def self.from_json(json_object:)
|
66
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
67
|
+
parsed_json = JSON.parse(json_object)
|
68
|
+
street1 = parsed_json["street_1"]
|
69
|
+
street2 = parsed_json["street_2"]
|
70
|
+
city = parsed_json["city"]
|
71
|
+
state = parsed_json["state"]
|
72
|
+
zip = parsed_json["zip"]
|
73
|
+
country = parsed_json["country"]
|
74
|
+
active = parsed_json["active"]
|
75
|
+
version = parsed_json["version"]
|
76
|
+
new(
|
77
|
+
street1: street1,
|
78
|
+
street2: street2,
|
79
|
+
city: city,
|
80
|
+
state: state,
|
81
|
+
zip: zip,
|
82
|
+
country: country,
|
83
|
+
active: active,
|
84
|
+
version: version,
|
85
|
+
additional_properties: struct
|
86
|
+
)
|
87
|
+
end
|
88
|
+
# Serialize an instance of Address to a JSON object
|
89
|
+
#
|
90
|
+
# @return [String]
|
91
|
+
def to_json
|
92
|
+
@_field_set&.to_json
|
93
|
+
end
|
94
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
95
|
+
# hash and check each fields type against the current object's property
|
96
|
+
# definitions.
|
97
|
+
#
|
98
|
+
# @param obj [Object]
|
99
|
+
# @return [Void]
|
100
|
+
def self.validate_raw(obj:)
|
101
|
+
obj.street1&.is_a?(String) != false || raise("Passed value for field obj.street1 is not the expected type, validation failed.")
|
102
|
+
obj.street2&.is_a?(String) != false || raise("Passed value for field obj.street2 is not the expected type, validation failed.")
|
103
|
+
obj.city&.is_a?(String) != false || raise("Passed value for field obj.city is not the expected type, validation failed.")
|
104
|
+
obj.state&.is_a?(String) != false || raise("Passed value for field obj.state is not the expected type, validation failed.")
|
105
|
+
obj.zip&.is_a?(String) != false || raise("Passed value for field obj.zip is not the expected type, validation failed.")
|
106
|
+
obj.country&.is_a?(String) != false || raise("Passed value for field obj.country is not the expected type, validation failed.")
|
107
|
+
obj.active&.is_a?(Boolean) != false || raise("Passed value for field obj.active is not the expected type, validation failed.")
|
108
|
+
obj.version&.is_a?(String) != false || raise("Passed value for field obj.version is not the expected type, validation failed.")
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "ostruct"
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Gusto
|
6
|
+
|
7
|
+
class Authentication
|
8
|
+
# @return [String] A new access token that can be used for subsequent authenticated requests
|
9
|
+
attr_reader :access_token
|
10
|
+
# @return [String] The literal string 'bearer'
|
11
|
+
attr_reader :token_type
|
12
|
+
# @return [Float] The TTL of this token. After this amount of time, you must hit the refresh token
|
13
|
+
# endpoint to continue making authenticated requests.
|
14
|
+
attr_reader :expires_in
|
15
|
+
# @return [String] A token that must be passed to the refresh token endpoint to get a new
|
16
|
+
# authenticated token.
|
17
|
+
attr_reader :refresh_token
|
18
|
+
# @return [String] Datetime for when the new access token is created.
|
19
|
+
attr_reader :created_at
|
20
|
+
# @return [String] All of the scopes for which the access token provides access.
|
21
|
+
attr_reader :scope
|
22
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
23
|
+
attr_reader :additional_properties
|
24
|
+
# @return [Object]
|
25
|
+
attr_reader :_field_set
|
26
|
+
protected :_field_set
|
27
|
+
|
28
|
+
OMIT = Object.new
|
29
|
+
|
30
|
+
# @param access_token [String] A new access token that can be used for subsequent authenticated requests
|
31
|
+
# @param token_type [String] The literal string 'bearer'
|
32
|
+
# @param expires_in [Float] The TTL of this token. After this amount of time, you must hit the refresh token
|
33
|
+
# endpoint to continue making authenticated requests.
|
34
|
+
# @param refresh_token [String] A token that must be passed to the refresh token endpoint to get a new
|
35
|
+
# authenticated token.
|
36
|
+
# @param created_at [String] Datetime for when the new access token is created.
|
37
|
+
# @param scope [String] All of the scopes for which the access token provides access.
|
38
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
39
|
+
# @return [Gusto::Authentication]
|
40
|
+
def initialize(access_token: OMIT, token_type: OMIT, expires_in: OMIT, refresh_token: OMIT, created_at: OMIT, scope: OMIT, additional_properties: nil)
|
41
|
+
@access_token = access_token if access_token != OMIT
|
42
|
+
@token_type = token_type if token_type != OMIT
|
43
|
+
@expires_in = expires_in if expires_in != OMIT
|
44
|
+
@refresh_token = refresh_token if refresh_token != OMIT
|
45
|
+
@created_at = created_at if created_at != OMIT
|
46
|
+
@scope = scope if scope != OMIT
|
47
|
+
@additional_properties = additional_properties
|
48
|
+
@_field_set = { "access_token": access_token, "token_type": token_type, "expires_in": expires_in, "refresh_token": refresh_token, "created_at": created_at, "scope": scope }.reject do | _k, v |
|
49
|
+
v == OMIT
|
50
|
+
end
|
51
|
+
end
|
52
|
+
# Deserialize a JSON object to an instance of Authentication
|
53
|
+
#
|
54
|
+
# @param json_object [String]
|
55
|
+
# @return [Gusto::Authentication]
|
56
|
+
def self.from_json(json_object:)
|
57
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
58
|
+
parsed_json = JSON.parse(json_object)
|
59
|
+
access_token = parsed_json["access_token"]
|
60
|
+
token_type = parsed_json["token_type"]
|
61
|
+
expires_in = parsed_json["expires_in"]
|
62
|
+
refresh_token = parsed_json["refresh_token"]
|
63
|
+
created_at = parsed_json["created_at"]
|
64
|
+
scope = parsed_json["scope"]
|
65
|
+
new(
|
66
|
+
access_token: access_token,
|
67
|
+
token_type: token_type,
|
68
|
+
expires_in: expires_in,
|
69
|
+
refresh_token: refresh_token,
|
70
|
+
created_at: created_at,
|
71
|
+
scope: scope,
|
72
|
+
additional_properties: struct
|
73
|
+
)
|
74
|
+
end
|
75
|
+
# Serialize an instance of Authentication to a JSON object
|
76
|
+
#
|
77
|
+
# @return [String]
|
78
|
+
def to_json
|
79
|
+
@_field_set&.to_json
|
80
|
+
end
|
81
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
82
|
+
# hash and check each fields type against the current object's property
|
83
|
+
# definitions.
|
84
|
+
#
|
85
|
+
# @param obj [Object]
|
86
|
+
# @return [Void]
|
87
|
+
def self.validate_raw(obj:)
|
88
|
+
obj.access_token&.is_a?(String) != false || raise("Passed value for field obj.access_token is not the expected type, validation failed.")
|
89
|
+
obj.token_type&.is_a?(String) != false || raise("Passed value for field obj.token_type is not the expected type, validation failed.")
|
90
|
+
obj.expires_in&.is_a?(Float) != false || raise("Passed value for field obj.expires_in is not the expected type, validation failed.")
|
91
|
+
obj.refresh_token&.is_a?(String) != false || raise("Passed value for field obj.refresh_token is not the expected type, validation failed.")
|
92
|
+
obj.created_at&.is_a?(String) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
93
|
+
obj.scope&.is_a?(String) != false || raise("Passed value for field obj.scope is not the expected type, validation failed.")
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative "child_support_data_agencies_item"
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module Gusto
|
7
|
+
# Child Support agency data
|
8
|
+
class ChildSupportData
|
9
|
+
# @return [Array<Gusto::ChildSupportDataAgenciesItem>] State child support agencies
|
10
|
+
attr_reader :agencies
|
11
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
12
|
+
attr_reader :additional_properties
|
13
|
+
# @return [Object]
|
14
|
+
attr_reader :_field_set
|
15
|
+
protected :_field_set
|
16
|
+
|
17
|
+
OMIT = Object.new
|
18
|
+
|
19
|
+
# @param agencies [Array<Gusto::ChildSupportDataAgenciesItem>] State child support agencies
|
20
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
21
|
+
# @return [Gusto::ChildSupportData]
|
22
|
+
def initialize(agencies: OMIT, additional_properties: nil)
|
23
|
+
@agencies = agencies if agencies != OMIT
|
24
|
+
@additional_properties = additional_properties
|
25
|
+
@_field_set = { "agencies": agencies }.reject do | _k, v |
|
26
|
+
v == OMIT
|
27
|
+
end
|
28
|
+
end
|
29
|
+
# Deserialize a JSON object to an instance of ChildSupportData
|
30
|
+
#
|
31
|
+
# @param json_object [String]
|
32
|
+
# @return [Gusto::ChildSupportData]
|
33
|
+
def self.from_json(json_object:)
|
34
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
35
|
+
parsed_json = JSON.parse(json_object)
|
36
|
+
agencies = parsed_json["agencies"]&.map do | item |
|
37
|
+
item = item.to_json
|
38
|
+
Gusto::ChildSupportDataAgenciesItem.from_json(json_object: item)
|
39
|
+
end
|
40
|
+
new(agencies: agencies, additional_properties: struct)
|
41
|
+
end
|
42
|
+
# Serialize an instance of ChildSupportData to a JSON object
|
43
|
+
#
|
44
|
+
# @return [String]
|
45
|
+
def to_json
|
46
|
+
@_field_set&.to_json
|
47
|
+
end
|
48
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
49
|
+
# hash and check each fields type against the current object's property
|
50
|
+
# definitions.
|
51
|
+
#
|
52
|
+
# @param obj [Object]
|
53
|
+
# @return [Void]
|
54
|
+
def self.validate_raw(obj:)
|
55
|
+
obj.agencies&.is_a?(Array) != false || raise("Passed value for field obj.agencies is not the expected type, validation failed.")
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative "child_support_data_agencies_item_fips_codes_item"
|
3
|
+
require_relative "child_support_data_agencies_item_required_attributes_item"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module Gusto
|
8
|
+
class ChildSupportDataAgenciesItem
|
9
|
+
# @return [String] Two letter state abbreviation
|
10
|
+
attr_reader :state
|
11
|
+
# @return [String] Name of state child support agency
|
12
|
+
attr_reader :name
|
13
|
+
# @return [Boolean] Specifies if remitting payment to the agency is required outside of Gusto. If
|
14
|
+
# true, Gusto includes garnishment amounts for this agency in payroll calculation,
|
15
|
+
# but does not debit for or remit payment to the agency automatically. As of
|
16
|
+
# September 2024, only garnishments for South Carolina Integrated Child Support
|
17
|
+
# Services require manual payment.
|
18
|
+
attr_reader :manual_payment_required
|
19
|
+
# @return [Array<Gusto::ChildSupportDataAgenciesItemFipsCodesItem>] FIPS codes for state or county child support orders
|
20
|
+
attr_reader :fips_codes
|
21
|
+
# @return [Array<Gusto::ChildSupportDataAgenciesItemRequiredAttributesItem>] Describes which child support case identifying attributes are required for this
|
22
|
+
# agency. While most agencies only require a single identifier, some (e.g. OH)
|
23
|
+
# require multiple identifiers.
|
24
|
+
attr_reader :required_attributes
|
25
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
+
attr_reader :additional_properties
|
27
|
+
# @return [Object]
|
28
|
+
attr_reader :_field_set
|
29
|
+
protected :_field_set
|
30
|
+
|
31
|
+
OMIT = Object.new
|
32
|
+
|
33
|
+
# @param state [String] Two letter state abbreviation
|
34
|
+
# @param name [String] Name of state child support agency
|
35
|
+
# @param manual_payment_required [Boolean] Specifies if remitting payment to the agency is required outside of Gusto. If
|
36
|
+
# true, Gusto includes garnishment amounts for this agency in payroll calculation,
|
37
|
+
# but does not debit for or remit payment to the agency automatically. As of
|
38
|
+
# September 2024, only garnishments for South Carolina Integrated Child Support
|
39
|
+
# Services require manual payment.
|
40
|
+
# @param fips_codes [Array<Gusto::ChildSupportDataAgenciesItemFipsCodesItem>] FIPS codes for state or county child support orders
|
41
|
+
# @param required_attributes [Array<Gusto::ChildSupportDataAgenciesItemRequiredAttributesItem>] Describes which child support case identifying attributes are required for this
|
42
|
+
# agency. While most agencies only require a single identifier, some (e.g. OH)
|
43
|
+
# require multiple identifiers.
|
44
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
45
|
+
# @return [Gusto::ChildSupportDataAgenciesItem]
|
46
|
+
def initialize(state: OMIT, name: OMIT, manual_payment_required: OMIT, fips_codes: OMIT, required_attributes: OMIT, additional_properties: nil)
|
47
|
+
@state = state if state != OMIT
|
48
|
+
@name = name if name != OMIT
|
49
|
+
@manual_payment_required = manual_payment_required if manual_payment_required != OMIT
|
50
|
+
@fips_codes = fips_codes if fips_codes != OMIT
|
51
|
+
@required_attributes = required_attributes if required_attributes != OMIT
|
52
|
+
@additional_properties = additional_properties
|
53
|
+
@_field_set = { "state": state, "name": name, "manual_payment_required": manual_payment_required, "fips_codes": fips_codes, "required_attributes": required_attributes }.reject do | _k, v |
|
54
|
+
v == OMIT
|
55
|
+
end
|
56
|
+
end
|
57
|
+
# Deserialize a JSON object to an instance of ChildSupportDataAgenciesItem
|
58
|
+
#
|
59
|
+
# @param json_object [String]
|
60
|
+
# @return [Gusto::ChildSupportDataAgenciesItem]
|
61
|
+
def self.from_json(json_object:)
|
62
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
63
|
+
parsed_json = JSON.parse(json_object)
|
64
|
+
state = parsed_json["state"]
|
65
|
+
name = parsed_json["name"]
|
66
|
+
manual_payment_required = parsed_json["manual_payment_required"]
|
67
|
+
fips_codes = parsed_json["fips_codes"]&.map do | item |
|
68
|
+
item = item.to_json
|
69
|
+
Gusto::ChildSupportDataAgenciesItemFipsCodesItem.from_json(json_object: item)
|
70
|
+
end
|
71
|
+
required_attributes = parsed_json["required_attributes"]&.map do | item |
|
72
|
+
item = item.to_json
|
73
|
+
Gusto::ChildSupportDataAgenciesItemRequiredAttributesItem.from_json(json_object: item)
|
74
|
+
end
|
75
|
+
new(
|
76
|
+
state: state,
|
77
|
+
name: name,
|
78
|
+
manual_payment_required: manual_payment_required,
|
79
|
+
fips_codes: fips_codes,
|
80
|
+
required_attributes: required_attributes,
|
81
|
+
additional_properties: struct
|
82
|
+
)
|
83
|
+
end
|
84
|
+
# Serialize an instance of ChildSupportDataAgenciesItem to a JSON object
|
85
|
+
#
|
86
|
+
# @return [String]
|
87
|
+
def to_json
|
88
|
+
@_field_set&.to_json
|
89
|
+
end
|
90
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
91
|
+
# hash and check each fields type against the current object's property
|
92
|
+
# definitions.
|
93
|
+
#
|
94
|
+
# @param obj [Object]
|
95
|
+
# @return [Void]
|
96
|
+
def self.validate_raw(obj:)
|
97
|
+
obj.state&.is_a?(String) != false || raise("Passed value for field obj.state is not the expected type, validation failed.")
|
98
|
+
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
99
|
+
obj.manual_payment_required&.is_a?(Boolean) != false || raise("Passed value for field obj.manual_payment_required is not the expected type, validation failed.")
|
100
|
+
obj.fips_codes&.is_a?(Array) != false || raise("Passed value for field obj.fips_codes is not the expected type, validation failed.")
|
101
|
+
obj.required_attributes&.is_a?(Array) != false || raise("Passed value for field obj.required_attributes is not the expected type, validation failed.")
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "ostruct"
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Gusto
|
6
|
+
class ChildSupportDataAgenciesItemFipsCodesItem
|
7
|
+
# @return [String] FIPS code for state or county
|
8
|
+
attr_reader :code
|
9
|
+
# @return [String] Name of county in the state for the corresponding FIPS code. When `null` the
|
10
|
+
# FIPS code applies state wide.
|
11
|
+
attr_reader :county
|
12
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
13
|
+
attr_reader :additional_properties
|
14
|
+
# @return [Object]
|
15
|
+
attr_reader :_field_set
|
16
|
+
protected :_field_set
|
17
|
+
|
18
|
+
OMIT = Object.new
|
19
|
+
|
20
|
+
# @param code [String] FIPS code for state or county
|
21
|
+
# @param county [String] Name of county in the state for the corresponding FIPS code. When `null` the
|
22
|
+
# FIPS code applies state wide.
|
23
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
+
# @return [Gusto::ChildSupportDataAgenciesItemFipsCodesItem]
|
25
|
+
def initialize(code: OMIT, county: OMIT, additional_properties: nil)
|
26
|
+
@code = code if code != OMIT
|
27
|
+
@county = county if county != OMIT
|
28
|
+
@additional_properties = additional_properties
|
29
|
+
@_field_set = { "code": code, "county": county }.reject do | _k, v |
|
30
|
+
v == OMIT
|
31
|
+
end
|
32
|
+
end
|
33
|
+
# Deserialize a JSON object to an instance of
|
34
|
+
# ChildSupportDataAgenciesItemFipsCodesItem
|
35
|
+
#
|
36
|
+
# @param json_object [String]
|
37
|
+
# @return [Gusto::ChildSupportDataAgenciesItemFipsCodesItem]
|
38
|
+
def self.from_json(json_object:)
|
39
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
40
|
+
parsed_json = JSON.parse(json_object)
|
41
|
+
code = parsed_json["code"]
|
42
|
+
county = parsed_json["county"]
|
43
|
+
new(
|
44
|
+
code: code,
|
45
|
+
county: county,
|
46
|
+
additional_properties: struct
|
47
|
+
)
|
48
|
+
end
|
49
|
+
# Serialize an instance of ChildSupportDataAgenciesItemFipsCodesItem to a JSON
|
50
|
+
# object
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
def to_json
|
54
|
+
@_field_set&.to_json
|
55
|
+
end
|
56
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
57
|
+
# hash and check each fields type against the current object's property
|
58
|
+
# definitions.
|
59
|
+
#
|
60
|
+
# @param obj [Object]
|
61
|
+
# @return [Void]
|
62
|
+
def self.validate_raw(obj:)
|
63
|
+
obj.code&.is_a?(String) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
64
|
+
obj.county&.is_a?(String) != false || raise("Passed value for field obj.county is not the expected type, validation failed.")
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|