Class: Moov::Models::Components::BankAccountException

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/bankaccountexception.rb

Overview

Reason for, and details related to, an ‘errored` or `verificationFailed` bank account status.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(description:, ach_return_code: nil, rtp_rejection_code: nil, fednow_rejection_code: nil) ⇒ BankAccountException

Returns a new instance of BankAccountException.



73
74
75
76
77
78
# File 'lib/moov/models/components/bankaccountexception.rb', line 73

def initialize(description:, ach_return_code: nil, rtp_rejection_code: nil, fednow_rejection_code: nil)
  @description = description
  @ach_return_code = ach_return_code
  @rtp_rejection_code = rtp_rejection_code
  @fednow_rejection_code = fednow_rejection_code
end

Instance Method Details

#==(other) ⇒ Object



81
82
83
84
85
86
87
88
# File 'lib/moov/models/components/bankaccountexception.rb', line 81

def ==(other)
  return false unless other.is_a? self.class
  return false unless @description == other.description
  return false unless @ach_return_code == other.ach_return_code
  return false unless @rtp_rejection_code == other.rtp_rejection_code
  return false unless @fednow_rejection_code == other.fednow_rejection_code
  true
end