Class: FinchAPI::Models::HRIS::BenefitContribution

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

Defined Under Namespace

Modules: Type

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_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!

Constructor Details

#initialize(amount: nil, type: nil) ⇒ Object

Parameters:

  • amount (Integer, nil) (defaults to: nil)

    Contribution amount in cents (if ‘fixed`) or basis points (if `percent`).

  • type (Symbol, FinchAPI::HRIS::BenefitContribution::Type, nil) (defaults to: nil)

    Contribution type.



# File 'lib/finch_api/models/hris/benefit_contribution.rb', line 19

Instance Attribute Details

#amountInteger?

Contribution amount in cents (if ‘fixed`) or basis points (if `percent`).

Returns:

  • (Integer, nil)


11
# File 'lib/finch_api/models/hris/benefit_contribution.rb', line 11

optional :amount, Integer, nil?: true

#typeSymbol, ...

Contribution type.

Returns:

  • (Symbol, FinchAPI::HRIS::BenefitContribution::Type, nil)


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

optional :type, enum: -> { FinchAPI::HRIS::BenefitContribution::Type }, nil?: true