Class: FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::EmployerContribution

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

Returns a new instance of EmployerContribution.

Parameters:



7
# File 'lib/finch-api/models/sandbox/payment_create_params.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)


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

optional :amount, Integer, nil?: true

#currencyString?

The contribution currency.

Returns:

  • (String, nil)


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

optional :currency, String, nil?: true

#nameString?

The contribution name from the pay statement.

Returns:

  • (String, nil)


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

optional :name, String, nil?: true

#typeSymbol, ...

Type of benefit.

Returns:



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

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