Class: FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/finch-api/models/sandbox/payment_create_params.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/sandbox/payment_create_params.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)


277
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 277

optional :amount, Integer, nil?: true

#attributesFinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployeeDeduction::Attributes?



282
283
284
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 282

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

#currencyString?

The deduction currency.

Returns:

  • (String, nil)


290
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 290

optional :currency, String, nil?: true

#nameString?

The deduction name from the pay statement.

Returns:

  • (String, nil)


296
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 296

optional :name, String, nil?: true

#pre_taxBoolean?

Boolean indicating if the deduction is pre-tax.

Returns:

  • (Boolean, nil)


302
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 302

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

#typeSymbol, ...

Type of benefit.

Returns:



308
# File 'lib/finch-api/models/sandbox/payment_create_params.rb', line 308

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