Class: FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction

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, pre_tax: nil, type: nil) ⇒ EmployeeDeduction

Returns a new instance of EmployeeDeduction.

Parameters:



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

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

Instance Attribute Details

#amountInteger?

The deduction amount in cents.

Returns:

  • (Integer, nil)


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

optional :amount, Integer, nil?: true

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



230
231
232
# File 'lib/finch-api/models/hris/pay_statement.rb', line 230

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

#currencyString?

The deduction currency.

Returns:

  • (String, nil)


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

optional :currency, String, nil?: true

#nameString?

The deduction name from the pay statement.

Returns:

  • (String, nil)


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

optional :name, String, nil?: true

#pre_taxBoolean?

Boolean indicating if the deduction is pre-tax.

Returns:

  • (Boolean, nil)


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

optional :pre_tax, FinchAPI::BooleanModel, nil?: true

#typeSymbol, ...

Type of benefit.

Returns:



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

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