Class: FinchAPI::Models::HRIS::PayStatement::EmployerContribution

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

Defined Under Namespace

Classes: Attributes

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, attributes: nil, currency: nil, name: nil, type: nil) ⇒ Object

Parameters:

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

    The contribution amount in cents.

  • attributes (FinchAPI::HRIS::PayStatement::EmployerContribution::Attributes, nil) (defaults to: nil)
  • currency (String, nil) (defaults to: nil)

    The contribution currency.

  • name (String, nil) (defaults to: nil)

    The contribution name from the pay statement.

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

    Type of benefit.



# File 'lib/finch_api/models/hris/pay_statement.rb', line 320

Instance Attribute Details

#amountInteger?

The contribution amount in cents.

Returns:

  • (Integer, nil)


291
# File 'lib/finch_api/models/hris/pay_statement.rb', line 291

optional :amount, Integer, nil?: true

#attributesFinchAPI::HRIS::PayStatement::EmployerContribution::Attributes?

Returns:

  • (FinchAPI::HRIS::PayStatement::EmployerContribution::Attributes, nil)


296
297
298
299
300
# File 'lib/finch_api/models/hris/pay_statement.rb', line 296

optional :attributes,
-> {
  FinchAPI::HRIS::PayStatement::EmployerContribution::Attributes
},
nil?: true

#currencyString?

The contribution currency.

Returns:

  • (String, nil)


306
# File 'lib/finch_api/models/hris/pay_statement.rb', line 306

optional :currency, String, nil?: true

#nameString?

The contribution name from the pay statement.

Returns:

  • (String, nil)


312
# File 'lib/finch_api/models/hris/pay_statement.rb', line 312

optional :name, String, nil?: true

#typeSymbol, ...

Type of benefit.

Returns:



318
# File 'lib/finch_api/models/hris/pay_statement.rb', line 318

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