Class: Moov::Models::Components::ACHFees

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

Overview

A detailed breakdown of ACH fees.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(standard_credit:, same_day_credit:, debits:, return_:, unauthorized_return:, notice_of_change:, bank_account_verification:, total:) ⇒ ACHFees

Returns a new instance of ACHFees.



33
34
35
36
37
38
39
40
41
42
# File 'lib/moov/models/components/achfees.rb', line 33

def initialize(standard_credit:, same_day_credit:, debits:, return_:, unauthorized_return:, notice_of_change:, bank_account_verification:, total:)
  @standard_credit = standard_credit
  @same_day_credit = same_day_credit
  @debits = debits
  @return_ = return_
  @unauthorized_return = unauthorized_return
  @notice_of_change = notice_of_change
  @bank_account_verification = 
  @total = total
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/moov/models/components/achfees.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @standard_credit == other.standard_credit
  return false unless @same_day_credit == other.same_day_credit
  return false unless @debits == other.debits
  return false unless @return_ == other.return_
  return false unless @unauthorized_return == other.unauthorized_return
  return false unless @notice_of_change == other.notice_of_change
  return false unless @bank_account_verification == other.
  return false unless @total == other.total
  true
end