Class: GustoEmbedded::Models::Operations::PutV1EmployeesEmployeeIdFederalTaxesRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(version:, w4_data_type:, filing_status:, two_jobs: nil, dependents_amount: nil, other_income: nil, deductions: nil, extra_withholding: nil, federal_withholding_allowance: nil, additional_withholding: nil) ⇒ PutV1EmployeesEmployeeIdFederalTaxesRequestBody

Returns a new instance of PutV1EmployeesEmployeeIdFederalTaxesRequestBody.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/operations/put_v1_employees_employee_id_federal_taxes_requestbody.rb', line 37

def initialize(version:, w4_data_type:, filing_status:, two_jobs: nil, dependents_amount: nil, other_income: nil, deductions: nil, extra_withholding: nil, federal_withholding_allowance: nil, additional_withholding: nil)
  @version = version
  @w4_data_type = w4_data_type
  @filing_status = filing_status
  @two_jobs = two_jobs
  @dependents_amount = dependents_amount
  @other_income = other_income
  @deductions = deductions
  @extra_withholding = extra_withholding
  @federal_withholding_allowance = federal_withholding_allowance
  @additional_withholding = additional_withholding
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/gusto_embedded/models/operations/put_v1_employees_employee_id_federal_taxes_requestbody.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @w4_data_type == other.w4_data_type
  return false unless @filing_status == other.filing_status
  return false unless @two_jobs == other.two_jobs
  return false unless @dependents_amount == other.dependents_amount
  return false unless @other_income == other.other_income
  return false unless @deductions == other.deductions
  return false unless @extra_withholding == other.extra_withholding
  return false unless @federal_withholding_allowance == other.federal_withholding_allowance
  return false unless @additional_withholding == other.additional_withholding
  true
end