Class: GustoEmbedded::Models::Shared::CompanyBankAccount

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

Overview

The company bank account

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, company_uuid: nil, account_type: nil, routing_number: nil, hidden_account_number: nil, verification_status: nil, verification_type: nil, name: nil, plaid_status: nil, last_cached_balance: nil, balance_fetched_date: nil, reverse_wire_enabled: nil) ⇒ CompanyBankAccount

Returns a new instance of CompanyBankAccount.



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

def initialize(uuid:, company_uuid: nil, account_type: nil, routing_number: nil, hidden_account_number: nil, verification_status: nil, verification_type: nil, name: nil, plaid_status: nil, last_cached_balance: nil, balance_fetched_date: nil, reverse_wire_enabled: nil)
  @uuid = uuid
  @company_uuid = company_uuid
  @account_type = 
  @routing_number = routing_number
  @hidden_account_number = 
  @verification_status = verification_status
  @verification_type = verification_type
  @name = name
  @plaid_status = plaid_status
  @last_cached_balance = last_cached_balance
  @balance_fetched_date = balance_fetched_date
  @reverse_wire_enabled = reverse_wire_enabled
end

Instance Method Details

#==(other) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/gusto_embedded/models/shared/company_bank_account.rb', line 66

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @company_uuid == other.company_uuid
  return false unless @account_type == other.
  return false unless @routing_number == other.routing_number
  return false unless @hidden_account_number == other.
  return false unless @verification_status == other.verification_status
  return false unless @verification_type == other.verification_type
  return false unless @name == other.name
  return false unless @plaid_status == other.plaid_status
  return false unless @last_cached_balance == other.last_cached_balance
  return false unless @balance_fetched_date == other.balance_fetched_date
  return false unless @reverse_wire_enabled == other.reverse_wire_enabled
  true
end