Class: GustoEmbedded::Models::Shared::EmployeeSection603HighEarnerStatus

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/employee_section603_high_earner_status.rb

Overview

The representation of an employee’s Section 603 high earner status for a specific year. Section 603 of the SECURE 2.0 Act requires employees aged 50 or older whose prior-year FICA wages exceed the IRS threshold to have their catch-up contributions to pre-tax retirement benefits designated as post-tax contributions.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(id:, effective_year:, is_high_earner: nil) ⇒ EmployeeSection603HighEarnerStatus

Returns a new instance of EmployeeSection603HighEarnerStatus.



23
24
25
26
27
# File 'lib/gusto_embedded/models/shared/employee_section603_high_earner_status.rb', line 23

def initialize(id:, effective_year:, is_high_earner: nil)
  @id = id
  @effective_year = effective_year
  @is_high_earner = is_high_earner
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/employee_section603_high_earner_status.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @effective_year == other.effective_year
  return false unless @is_high_earner == other.is_high_earner
  true
end