Class: GustoEmbedded::Models::Shared::FederalTaxDetails

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(version: nil, taxable_as_scorp: nil, filing_form: nil, has_ein: nil, ein_verified: nil, ein_verification: nil, legal_name: nil, effective_date: nil, deposit_schedule: nil, tax_payer_type: nil) ⇒ FederalTaxDetails

Returns a new instance of FederalTaxDetails.



56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/gusto_embedded/models/shared/federal_tax_details.rb', line 56

def initialize(version: nil, taxable_as_scorp: nil, filing_form: nil, has_ein: nil, ein_verified: nil, ein_verification: nil, legal_name: nil, effective_date: nil, deposit_schedule: nil, tax_payer_type: nil)
  @version = version
  @taxable_as_scorp = taxable_as_scorp
  @filing_form = filing_form
  @has_ein = has_ein
  @ein_verified = ein_verified
  @ein_verification = ein_verification
  @legal_name = legal_name
  @effective_date = effective_date
  @deposit_schedule = deposit_schedule
  @tax_payer_type = tax_payer_type
end

Instance Method Details

#==(other) ⇒ Object



70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/gusto_embedded/models/shared/federal_tax_details.rb', line 70

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @taxable_as_scorp == other.taxable_as_scorp
  return false unless @filing_form == other.filing_form
  return false unless @has_ein == other.has_ein
  return false unless @ein_verified == other.ein_verified
  return false unless @ein_verification == other.ein_verification
  return false unless @legal_name == other.legal_name
  return false unless @effective_date == other.effective_date
  return false unless @deposit_schedule == other.deposit_schedule
  return false unless @tax_payer_type == other.tax_payer_type
  true
end