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

Inherits:
BaseModel
  • Object
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

Constructor Details

#initialize(amount: nil, attributes: nil, currency: nil, name: nil, type: nil) ⇒ EmployerContribution

Returns a new instance of EmployerContribution.

Parameters:



7
# File 'lib/finch-api/models/hris/pay_statement.rb', line 7

def initialize(amount: nil, attributes: nil, currency: nil, name: nil, type: nil, **) = super

Instance Attribute Details

#amountInteger?

The contribution amount in cents.

Returns:

  • (Integer, nil)


315
# File 'lib/finch-api/models/hris/pay_statement.rb', line 315

optional :amount, Integer, nil?: true

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



320
321
322
# File 'lib/finch-api/models/hris/pay_statement.rb', line 320

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

#currencyString?

The contribution currency.

Returns:

  • (String, nil)


328
# File 'lib/finch-api/models/hris/pay_statement.rb', line 328

optional :currency, String, nil?: true

#nameString?

The contribution name from the pay statement.

Returns:

  • (String, nil)


334
# File 'lib/finch-api/models/hris/pay_statement.rb', line 334

optional :name, String, nil?: true

#typeSymbol, ...

Type of benefit.

Returns:



340
# File 'lib/finch-api/models/hris/pay_statement.rb', line 340

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