Class: FinchAPI::Models::HRIS::CompanyBenefit

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/hris/company_benefit.rb

Overview

Defined Under Namespace

Classes: CompanyContribution

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(benefit_id: , description: , frequency: , type: , company_contribution: nil) ⇒ Object

Parameters:



# File 'lib/finch_api/models/hris/company_benefit.rb', line 37

Instance Attribute Details

#benefit_idString

The id of the benefit.

Returns:

  • (String)


12
# File 'lib/finch_api/models/hris/company_benefit.rb', line 12

required :benefit_id, String

#company_contributionFinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution?

The company match for this benefit.



35
# File 'lib/finch_api/models/hris/company_benefit.rb', line 35

optional :company_contribution, -> { FinchAPI::HRIS::CompanyBenefit::CompanyContribution }, nil?: true

#descriptionString?

Returns:

  • (String, nil)


17
# File 'lib/finch_api/models/hris/company_benefit.rb', line 17

required :description, String, nil?: true

#frequencySymbol, ...

The frequency of the benefit deduction/contribution.



23
# File 'lib/finch_api/models/hris/company_benefit.rb', line 23

required :frequency, enum: -> { FinchAPI::HRIS::BenefitFrequency }, nil?: true

#typeSymbol, ...

Type of benefit.

Returns:



29
# File 'lib/finch_api/models/hris/company_benefit.rb', line 29

required :type, enum: -> { FinchAPI::HRIS::BenefitType }, nil?: true